aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-02-25 18:54:16 +0100
committerJokler <jokler.contact@gmail.com>2018-02-25 18:54:16 +0100
commit92668ad4c53edcc1a317a16aa5ea30ca502f54ee (patch)
tree4a93dad53b06f2b4dccfaf0282e8e9ee94b3a070 /migrations
parent76461addd2fb7ec383123b1efc4368b7662eea04 (diff)
downloadfrippy-92668ad4c53edcc1a317a16aa5ea30ca502f54ee.tar.gz
frippy-92668ad4c53edcc1a317a16aa5ea30ca502f54ee.zip
Add Mysql as a possible database to the Tell plugin
Diffstat (limited to 'migrations')
-rw-r--r--migrations/2018-02-25-154922_create_tells/down.sql1
-rw-r--r--migrations/2018-02-25-154922_create_tells/up.sql7
2 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2018-02-25-154922_create_tells/down.sql b/migrations/2018-02-25-154922_create_tells/down.sql
new file mode 100644
index 0000000..73c9b9b
--- /dev/null
+++ b/migrations/2018-02-25-154922_create_tells/down.sql
@@ -0,0 +1 @@
+DROP TABLE tells
diff --git a/migrations/2018-02-25-154922_create_tells/up.sql b/migrations/2018-02-25-154922_create_tells/up.sql
new file mode 100644
index 0000000..9de037c
--- /dev/null
+++ b/migrations/2018-02-25-154922_create_tells/up.sql
@@ -0,0 +1,7 @@
+CREATE TABLE tells (
+ id SERIAL PRIMARY KEY,
+ sender VARCHAR(32) NOT NULL,
+ receiver VARCHAR(32) NOT NULL,
+ time TIMESTAMP NOT NULL,
+ message VARCHAR(512) NOT NULL
+)