High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: geodata_places pkey migration failing for certain upgrade paths (#20177)
Zack Pollard977c9b96ba10
diff --git a/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.ts b/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.tsindex 686791e201..57ce86704e 100644--- a/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.ts+++ b/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.ts@@ -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);}