Skip to content

Commit

Permalink
update constraint name
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Sep 27, 2023
1 parent f22662c commit 8f903be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export async function up(db: Kysely<unknown>, dialect: Dialect): Promise<void> {
.addColumn('token', 'varchar', (col) => col.notNull())
.addColumn('requestedAt', timestamp, (col) => col.notNull())
.addPrimaryKeyConstraint('email_token_pkey', ['purpose', 'did'])
.addUniqueConstraint('email_token_token_unique', ['purpose', 'token'])
.addUniqueConstraint('email_token_purpose_token_unique', [
'purpose',
'token',
])
.execute()

await db.schema
Expand Down

0 comments on commit 8f903be

Please sign in to comment.