diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-14 14:42:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-14 14:42:19 -0700 |
commit | 5dfe6818c13c67a5fa62c2ff0c3ccc7044ae16f6 (patch) | |
tree | 46fe620f476ad735144ef8d694a8e6d6a36f85bd /rust/migrations/2018-05-12-001226_init/down.sql | |
parent | b61f15156a000c3f156af3d0fc809ca32912af34 (diff) | |
download | fatcat-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.sql | 29 |
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; |