aboutsummaryrefslogtreecommitdiff
path: root/migrations/2018-05-04-010249_deletion_record/up.sql
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2018-05-03 22:08:54 -0400
committerNathan Perry <avaglir@gmail.com>2018-05-03 22:11:02 -0400
commita52eae2964e8e86bf3e587f17d607025f07efdbb (patch)
tree4d73278ab811280d57fde01d7635e4b3898b09f2 /migrations/2018-05-04-010249_deletion_record/up.sql
parent652a36f172df43c080d6dc1d3680166ee3045f82 (diff)
support message deletion0.1.4
Diffstat (limited to 'migrations/2018-05-04-010249_deletion_record/up.sql')
-rw-r--r--migrations/2018-05-04-010249_deletion_record/up.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2018-05-04-010249_deletion_record/up.sql b/migrations/2018-05-04-010249_deletion_record/up.sql
new file mode 100644
index 0000000..64f6220
--- /dev/null
+++ b/migrations/2018-05-04-010249_deletion_record/up.sql
@@ -0,0 +1,7 @@
+CREATE TABLE tombstones (
+ id SERIAL PRIMARY KEY,
+ meme_id INTEGER NOT NULL,
+ deleted_by BIGINT NOT NULL,
+ deleted_at TIMESTAMP NOT NULL DEFAULT current_timestamp,
+ metadata_id INTEGER REFERENCES metadata
+);