Added missing foreign key relationships.

This commit is contained in:
Patrick Fic
2019-12-10 14:30:28 -08:00
parent 5d64d18f46
commit 16160c0793
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
- args:
sql: "\n alter table \"public\".\"jobs\" drop constraint \"jobs_vehicleid_fkey\"\n
\ "
type: run_sql

View File

@@ -0,0 +1,6 @@
- args:
sql: "\n alter table \"public\".\"jobs\"\n add constraint
\"jobs_vehicleid_fkey\"\n foreign key (\"vehicleid\")\n references
\"public\".\"vehicles\"\n (\"id\") on update restrict on delete cascade;\n
\ "
type: run_sql

View File

@@ -0,0 +1,4 @@
- args:
sql: "\n alter table \"public\".\"jobs\" drop constraint \"jobs_ownerid_fkey\"\n
\ "
type: run_sql

View File

@@ -0,0 +1,6 @@
- args:
sql: "\n alter table \"public\".\"jobs\"\n add constraint
\"jobs_ownerid_fkey\"\n foreign key (\"ownerid\")\n references
\"public\".\"owners\"\n (\"id\") on update restrict on delete cascade;\n
\ "
type: run_sql