Baseline Schema changes.

This commit is contained in:
Patrick Fic
2019-12-04 20:08:10 -07:00
parent eb41701987
commit 25d434ef10
76 changed files with 5997 additions and 25 deletions

View File

@@ -0,0 +1,3 @@
- args:
sql: DROP TABLE "public"."associations"
type: run_sql

View File

@@ -0,0 +1,11 @@
- args:
sql: CREATE TABLE "public"."associations"("bodyshop" uuid NOT NULL, "user" uuid
NOT NULL, "active" boolean NOT NULL DEFAULT false, PRIMARY KEY ("bodyshop","user")
, FOREIGN KEY ("bodyshop") REFERENCES "public"."bodyshops"("id") ON UPDATE restrict
ON DELETE restrict, FOREIGN KEY ("user") REFERENCES "public"."users"("id") ON
UPDATE restrict ON DELETE restrict);
type: run_sql
- args:
name: associations
schema: public
type: add_existing_table_or_view