first working instance
This commit is contained in:
commit
cfbeb07f37
13 changed files with 2555 additions and 0 deletions
0
migrations/.gitkeep
Normal file
0
migrations/.gitkeep
Normal file
2
migrations/2020-10-21-144212_create_posts/down.sql
Normal file
2
migrations/2020-10-21-144212_create_posts/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE posts
|
8
migrations/2020-10-21-144212_create_posts/up.sql
Normal file
8
migrations/2020-10-21-144212_create_posts/up.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE posts (
|
||||
id INTEGER PRIMARY KEY,
|
||||
title VARCHAR NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
published BOOLEAN NOT NULL DEFAULT 'f',
|
||||
publish_date TIMESTAMP NOT NULL
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue