aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/2018-05-13-150818_create_events/up.sql
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-05-14 20:46:59 +0200
committerJokler <jokler.contact@gmail.com>2018-05-14 20:46:59 +0200
commite9799560e033c3de59a99946ad3811dff47c8819 (patch)
treef2584dd5ef943a6d996007d4f56fae59dbf02594 /migrations/2018-05-13-150818_create_events/up.sql
parentbef668bce8dc1022e7dde7b0da65fa64bb472cf4 (diff)
downloadfrippy-e9799560e033c3de59a99946ad3811dff47c8819.tar.gz
frippy-e9799560e033c3de59a99946ad3811dff47c8819.zip
Remind: Add Mysql as a possible database
The bot also responds with the id and time of a reminder after creation to allow the creator to delete them. Furthermore the InvalidCommand message was fixed and the unnecessary dotenv dependency was removed.
Diffstat (limited to 'migrations/2018-05-13-150818_create_events/up.sql')
-rw-r--r--migrations/2018-05-13-150818_create_events/up.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2018-05-13-150818_create_events/up.sql b/migrations/2018-05-13-150818_create_events/up.sql
new file mode 100644
index 0000000..4e6f14e
--- /dev/null
+++ b/migrations/2018-05-13-150818_create_events/up.sql
@@ -0,0 +1,8 @@
+CREATE TABLE events (
+ id SERIAL PRIMARY KEY,
+ receiver VARCHAR(32) NOT NULL,
+ content TEXT NOT NULL,
+ author VARCHAR(32) NOT NULL,
+ time TIMESTAMP NOT NULL,
+ `repeat` BIGINT UNSIGNED NULL
+)