summaryrefslogtreecommitdiff
path: root/migrations/2021-04-18-102936_create_posts/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2021-04-18-102936_create_posts/up.sql')
-rw-r--r--migrations/2021-04-18-102936_create_posts/up.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2021-04-18-102936_create_posts/up.sql b/migrations/2021-04-18-102936_create_posts/up.sql
new file mode 100644
index 0000000..ac26995
--- /dev/null
+++ b/migrations/2021-04-18-102936_create_posts/up.sql
@@ -0,0 +1,7 @@
+-- Your SQL goes here
+CREATE TABLE posts (
+ id INTEGER PRIMARY KEY NOT NULL,
+ title VARCHAR NOT NULL,
+ body TEXT NOT NULL,
+ published BOOLEAN NOT NULL DEFAULT 'f'
+)