Skip to content

Commit

Permalink
fix: constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Oct 27, 2023
1 parent 0e00b13 commit 10f6252
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ public static String getQueryToCreateDefaultRequiredFactorIdsTable(Start start)
+ " PRIMARY KEY (connection_uri_domain, app_id, tenant_id, factor_id),"
+ "CONSTRAINT " + Utils.getConstraintName(schema, tableName, "tenant_id", "fkey")
+ " FOREIGN KEY (connection_uri_domain, app_id, tenant_id)"
+ " REFERENCES " + Config.getConfig(start).getTenantConfigsTable() + " (connection_uri_domain, app_id, tenant_id) ON DELETE CASCADE"
+ " REFERENCES " + Config.getConfig(start).getTenantConfigsTable() + " (connection_uri_domain, app_id, tenant_id) ON DELETE CASCADE,"
+ "CONSTRAINT " + Utils.getConstraintName(schema, tableName, "order_idx", "key")
+ " UNIQUE (connection_uri_domain, app_id, tenant_id, order_idx)"
+ ");";
// @formatter:on
}
Expand Down

0 comments on commit 10f6252

Please sign in to comment.