aboutsummaryrefslogtreecommitdiffstats
path: root/rust/migrations/2018-05-12-001226_init/down.sql
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-14 14:42:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-14 14:42:19 -0700
commit5dfe6818c13c67a5fa62c2ff0c3ccc7044ae16f6 (patch)
tree46fe620f476ad735144ef8d694a8e6d6a36f85bd /rust/migrations/2018-05-12-001226_init/down.sql
parentb61f15156a000c3f156af3d0fc809ca32912af34 (diff)
downloadfatcat-5dfe6818c13c67a5fa62c2ff0c3ccc7044ae16f6.tar.gz
fatcat-5dfe6818c13c67a5fa62c2ff0c3ccc7044ae16f6.zip
flesh out SQL schema
Diffstat (limited to 'rust/migrations/2018-05-12-001226_init/down.sql')
-rw-r--r--rust/migrations/2018-05-12-001226_init/down.sql29
1 files changed, 26 insertions, 3 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/down.sql b/rust/migrations/2018-05-12-001226_init/down.sql
index 6c379b2f..087f02b2 100644
--- a/rust/migrations/2018-05-12-001226_init/down.sql
+++ b/rust/migrations/2018-05-12-001226_init/down.sql
@@ -1,7 +1,30 @@
-DROP TABLE IF EXISTS editor CASCADE;
-DROP TABLE IF EXISTS editgroup CASCADE;
-DROP TABLE IF EXISTS changelog CASCADE;
+-- in opposite order as up.sql
+
+DROP TABLE IF EXISTS release_contrib CASCADE;
+DROP TABLE IF EXISTS release_ref CASCADE;
+DROP TABLE IF EXISTS file_release CASCADE;
+
+DROP TABLE IF EXISTS work_rev CASCADE;
+DROP TABLE IF EXISTS work_ident CASCADE;
+DROP TABLE IF EXISTS work_edit CASCADE;
+
+DROP TABLE IF EXISTS release_rev CASCADE;
+DROP TABLE IF EXISTS release_ident CASCADE;
+DROP TABLE IF EXISTS release_edit CASCADE;
+
+DROP TABLE IF EXISTS file_rev CASCADE;
+DROP TABLE IF EXISTS file_ident CASCADE;
+DROP TABLE IF EXISTS file_edit CASCADE;
+
+DROP TABLE IF EXISTS container_rev CASCADE;
+DROP TABLE IF EXISTS container_ident CASCADE;
+DROP TABLE IF EXISTS container_edit CASCADE;
+
DROP TABLE IF EXISTS creator_rev CASCADE;
DROP TABLE IF EXISTS creator_ident CASCADE;
DROP TABLE IF EXISTS creator_edit CASCADE;
+
+DROP TABLE IF EXISTS editor CASCADE;
+DROP TABLE IF EXISTS editgroup CASCADE;
+DROP TABLE IF EXISTS changelog CASCADE;