-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finish init up migration and add reversion
- Loading branch information
1 parent
e6946a7
commit 8d3b872
Showing
2 changed files
with
97 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
-- This file should undo anything in `up.sql` | ||
DROP EXTENSION IF EXISTS pg_jsonschema; | ||
|
||
DROP TYPE IF EXISTS "billing_status"; | ||
|
||
DROP TABLE IF EXISTS "bill_recipient"; | ||
|
||
DROP TYPE IF EXISTS "organization_transparency_status"; | ||
|
||
DROP TABLE IF EXISTS "organization"; | ||
|
||
DROP TYPE IF EXISTS "entity_class"; | ||
|
||
DROP TABLE IF EXISTS "entity"; | ||
|
||
DROP TABLE IF EXISTS "person"; | ||
|
||
DROP TABLE IF EXISTS "group"; | ||
|
||
DROP TABLE IF EXISTS "group_membership"; | ||
|
||
DROP TABLE IF EXISTS "machine"; | ||
|
||
DROP TABLE IF EXISTS "account"; | ||
|
||
DROP FUNCTION IF EXISTS check_json_schema_validity; | ||
|
||
-- Schema | ||
DROP TABLE IF EXISTS "project_type_schema"; | ||
|
||
-- create the trigger to call the function before insert or update | ||
DROP TRIGGER IF EXISTS json_schema_validation_trigger; | ||
|
||
-- for custom project types | ||
DROP TABLE IF EXISTS "project_type"; | ||
|
||
DROP TABLE IF EXISTS "project"; | ||
|
||
-- create the function to check json schema compliance | ||
DROP FUNCTION IF EXISTS check_project_json_schema_compliance; | ||
|
||
-- create the trigger to call the function before insert or update | ||
DROP TRIGGER IF EXISTS json_schema_compliance_trigger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters