aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/2018-09-19-231843_create_quotes/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2018-09-19-231843_create_quotes/up.sql')
-rw-r--r--migrations/2018-09-19-231843_create_quotes/up.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/migrations/2018-09-19-231843_create_quotes/up.sql b/migrations/2018-09-19-231843_create_quotes/up.sql
new file mode 100644
index 0000000..357a63a
--- /dev/null
+++ b/migrations/2018-09-19-231843_create_quotes/up.sql
@@ -0,0 +1,9 @@
+CREATE TABLE quotes (
+ quotee VARCHAR(32) NOT NULL,
+ channel VARCHAR(32) NOT NULL,
+ idx INTEGER NOT NULL,
+ content TEXT NOT NULL,
+ author VARCHAR(32) NOT NULL,
+ created TIMESTAMP NOT NULL,
+ PRIMARY KEY (quotee, channel, idx)
+)