Skip to content

Commit

Permalink
fix: fkey constraint (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc authored Sep 14, 2023
1 parent 1c9ace2 commit 91673ad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ static String getQueryToCreateUsersTable(Start start) {
+ "PRIMARY KEY (app_id, tenant_id, user_id),"
+ "FOREIGN KEY (app_id, tenant_id) REFERENCES " + Config.getConfig(start).getTenantsTable()
+ " (app_id, tenant_id) ON DELETE CASCADE,"
+ "FOREIGN KEY (app_id, primary_or_recipe_user_id) REFERENCES " + Config.getConfig(start).getAppIdToUserIdTable()
+ " (app_id, user_id) ON DELETE CASCADE,"
+ "FOREIGN KEY (app_id, user_id) REFERENCES " + Config.getConfig(start).getAppIdToUserIdTable()
+ " (app_id, user_id) ON DELETE CASCADE"
+ ");";
Expand Down

0 comments on commit 91673ad

Please sign in to comment.