aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/2018-02-25-154922_create_tells
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2018-02-25-154922_create_tells')
-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
+)