diff options
Diffstat (limited to 'migrations/2017-11-03-164322_create_factoids/up.sql')
| -rw-r--r-- | migrations/2017-11-03-164322_create_factoids/up.sql | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2017-11-03-164322_create_factoids/up.sql b/migrations/2017-11-03-164322_create_factoids/up.sql new file mode 100644 index 0000000..784a3f4 --- /dev/null +++ b/migrations/2017-11-03-164322_create_factoids/up.sql @@ -0,0 +1,8 @@ +CREATE TABLE factoids ( + name VARCHAR(32) NOT NULL, + idx INTEGER NOT NULL, + content TEXT NOT NULL, + author VARCHAR(32) NOT NULL, + created TIMESTAMP NOT NULL, + PRIMARY KEY (name, idx) +) |
