diff --git a/BLOG.md b/BLOG.md new file mode 100644 index 0000000..b2e6b50 --- /dev/null +++ b/BLOG.md @@ -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; diff --git a/migrations b/migrations new file mode 100644 index 0000000..6eaa5f3 --- /dev/null +++ b/migrations @@ -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;