Add a file to collect blog notes and migrations
This commit is contained in:
parent
a61ae7b65c
commit
1a4e30c5c2
12
BLOG.md
Normal file
12
BLOG.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Migrations
|
||||
|
||||
All migrations go into a single file I'll creatively call `migrations`:
|
||||
|
||||
-- 1 up
|
||||
CREATE TABLE IF NOT EXISTS pastes (
|
||||
paste_id SERIAL PRIMARY KEY,
|
||||
paste_body TEXT
|
||||
);
|
||||
|
||||
-- 1 down
|
||||
DROP TABLE pastes;
|
8
migrations
Normal file
8
migrations
Normal file
|
@ -0,0 +1,8 @@
|
|||
-- 1 up
|
||||
CREATE TABLE IF NOT EXISTS pastes (
|
||||
paste_id SERIAL PRIMARY KEY,
|
||||
paste_body TEXT
|
||||
);
|
||||
|
||||
-- 1 down
|
||||
DROP TABLE pastes;
|
Loading…
Reference in a new issue