From 8f903beb091a17c1aaa7259df27bc27cae9b50bd Mon Sep 17 00:00:00 2001 From: dholms Date: Wed, 27 Sep 2023 17:49:08 -0500 Subject: [PATCH] update constraint name --- .../src/db/migrations/20230926T195532354Z-email-tokens.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/pds/src/db/migrations/20230926T195532354Z-email-tokens.ts b/packages/pds/src/db/migrations/20230926T195532354Z-email-tokens.ts index ce8e6574731..4200e64477b 100644 --- a/packages/pds/src/db/migrations/20230926T195532354Z-email-tokens.ts +++ b/packages/pds/src/db/migrations/20230926T195532354Z-email-tokens.ts @@ -10,7 +10,10 @@ export async function up(db: Kysely, dialect: Dialect): Promise { .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