Update 20250419004044_secret-reminder-recipients.ts

This commit is contained in:
Daniel Hougaard
2025-04-19 07:07:45 +04:00
parent 9982ade219
commit b8db15563a

View File

@@ -21,7 +21,7 @@ export async function up(knex: Knex): Promise<void> {
table.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
table.index("secretId");
table.unique(["secretId", "userId", "projectId"]);
table.unique(["secretId", "userId"]);
});
await createOnUpdateTrigger(knex, TableName.SecretReminderRecipients);