mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: geodata_places pkey migration failing for certain upgrade paths (#20177)
This commit is contained in:
parent
aa2828ab33
commit
977c9b96ba
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { Kysely, sql } from 'kysely';
|
|||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await sql`ALTER TABLE "geodata_places" DROP CONSTRAINT IF EXISTS "PK_c29918988912ef4036f3d7fbff4";`.execute(db);
|
||||
await sql`ALTER TABLE "geodata_places" DROP CONSTRAINT IF EXISTS "geodata_places_pkey"`.execute(db);
|
||||
await sql`ALTER TABLE "geodata_places" DROP CONSTRAINT IF EXISTS "geodata_places_tmp_pkey"`.execute(db);
|
||||
await sql`ALTER TABLE "geodata_places" ADD CONSTRAINT "geodata_places_pkey" PRIMARY KEY ("id");`.execute(db);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue