We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d61638 commit e4f05dbCopy full SHA for e4f05db
migrations/tenant/[email protected]
@@ -0,0 +1,2 @@
1
+CREATE UNIQUE INDEX IF NOT EXISTS note_teams_note_id_user_id_unique_idx
2
+ON public.note_teams (note_id, user_id);
src/repository/storage/postgres/orm/sequelize/teams.ts
@@ -107,7 +107,7 @@ export default class TeamsSequelizeStorage {
107
// Create a unique index on noteId and userId
108
{
109
unique: true,
110
- fields: ['noteId', 'userId'],
+ fields: ['note_id', 'user_id'],
111
},
112
],
113
});
0 commit comments