aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'migrations')
-rw-r--r--migrations/2018-05-13-150818_create_events/down.sql1
-rw-r--r--migrations/2018-05-13-150818_create_events/up.sql8
2 files changed, 9 insertions, 0 deletions
diff --git a/migrations/2018-05-13-150818_create_events/down.sql b/migrations/2018-05-13-150818_create_events/down.sql
new file mode 100644
index 0000000..858bcc0
--- /dev/null
+++ b/migrations/2018-05-13-150818_create_events/down.sql
@@ -0,0 +1 @@
+DROP TABLE events
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
+)