summaryrefslogtreecommitdiffstats
path: root/migrations/2018-09-19-231843_create_quotes
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-09-21 00:21:43 +0200
committerJokler <jokler.contact@gmail.com>2018-09-21 00:21:43 +0200
commit625ca41cf54bac0268f7bde9d7ad9017c03d5919 (patch)
treeae32e4e08972488904027d3b57ed9ec9f97f871e /migrations/2018-09-19-231843_create_quotes
parent448b52d250c61fb719477c01c633593c3da68fba (diff)
downloadfrippy-625ca41cf54bac0268f7bde9d7ad9017c03d5919.tar.gz
frippy-625ca41cf54bac0268f7bde9d7ad9017c03d5919.zip
Quote: Add initial quote plugin
Diffstat (limited to 'migrations/2018-09-19-231843_create_quotes')
-rw-r--r--migrations/2018-09-19-231843_create_quotes/down.sql1
-rw-r--r--migrations/2018-09-19-231843_create_quotes/up.sql9
2 files changed, 10 insertions, 0 deletions
diff --git a/migrations/2018-09-19-231843_create_quotes/down.sql b/migrations/2018-09-19-231843_create_quotes/down.sql
new file mode 100644
index 0000000..b9d0f8b
--- /dev/null
+++ b/migrations/2018-09-19-231843_create_quotes/down.sql
@@ -0,0 +1 @@
+DROP TABLE quotes
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)
+)