aboutsummaryrefslogtreecommitdiffstats
path: root/rust/migrations/2019-01-01-000000_init/down.sql
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:35:08 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:35:08 -0800
commit697c0f5efb75d90aea3403e1069376a4325a4f4c (patch)
tree8363e2115c96a4541a13aefb2b1365a47acba32a /rust/migrations/2019-01-01-000000_init/down.sql
parent88343cad1aba370d4dc8a8313175ba07de0d7a06 (diff)
downloadfatcat-697c0f5efb75d90aea3403e1069376a4325a4f4c.tar.gz
fatcat-697c0f5efb75d90aea3403e1069376a4325a4f4c.zip
rename diesel migrations folder name
Diffstat (limited to 'rust/migrations/2019-01-01-000000_init/down.sql')
-rw-r--r--rust/migrations/2019-01-01-000000_init/down.sql48
1 files changed, 48 insertions, 0 deletions
diff --git a/rust/migrations/2019-01-01-000000_init/down.sql b/rust/migrations/2019-01-01-000000_init/down.sql
new file mode 100644
index 00000000..b2666083
--- /dev/null
+++ b/rust/migrations/2019-01-01-000000_init/down.sql
@@ -0,0 +1,48 @@
+
+-- 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_rev_release CASCADE;
+DROP TABLE IF EXISTS fileset_rev_release CASCADE;
+DROP TABLE IF EXISTS webcapture_rev_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 release_rev_abstract 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 file_rev_url CASCADE;
+
+DROP TABLE IF EXISTS fileset_rev CASCADE;
+DROP TABLE IF EXISTS fileset_ident CASCADE;
+DROP TABLE IF EXISTS fileset_edit CASCADE;
+DROP TABLE IF EXISTS fileset_rev_file CASCADE;
+DROP TABLE IF EXISTS fileset_rev_url CASCADE;
+
+DROP TABLE IF EXISTS webcapture_rev CASCADE;
+DROP TABLE IF EXISTS webcapture_ident CASCADE;
+DROP TABLE IF EXISTS webcapture_edit CASCADE;
+DROP TABLE IF EXISTS webcapture_rev_cdx CASCADE;
+DROP TABLE IF EXISTS webcapture_rev_url 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 abstracts CASCADE;
+DROP TABLE IF EXISTS auth_oidc CASCADE;
+DROP TABLE IF EXISTS editor CASCADE;
+DROP TABLE IF EXISTS editgroup CASCADE;
+DROP TABLE IF EXISTS changelog CASCADE;