High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
refactor: rename geodata pk constraint to match runtime constraint name (#19856)
Zack Pollard39c95f12800e
diff --git a/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.ts b/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.tsnew file mode 100644index 0000000000..686791e201--- /dev/null+++ b/server/src/schema/migrations/1752161055253-RenameGeodataPKConstraint.ts@@ -0,0 +1,9 @@+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" ADD CONSTRAINT "geodata_places_pkey" PRIMARY KEY ("id");`.execute(db);+}++export async function down(): Promise<void> {}diff --git a/server/src/schema/tables/geodata-places.table.ts b/server/src/schema/tables/geodata-places.table.tsindex abdc213e7c..eec2b240d0 100644--- a/server/src/schema/tables/geodata-places.table.ts+++ b/server/src/schema/tables/geodata-places.table.ts@@ -1,6 +1,6 @@import { Column, Index, PrimaryColumn, Table, Timestamp } from 'src/sql-tools';-@Table({ name: 'geodata_places' })+@Table({ name: 'geodata_places', primaryConstraintName: 'geodata_places_pkey' })@Index({name: 'idx_geodata_places_alternate_names',using: 'gin',