From 1a4e30c5c20169980247a829923e0ff3d316fbf8 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 21 Nov 2023 13:37:16 -0500 Subject: [PATCH] Add a file to collect blog notes and migrations --- BLOG.md | 12 ++++++++++++ migrations | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 BLOG.md create mode 100644 migrations 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;