High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: reverse geocoding data import don't use unlogged tables (#15136)
Zack Pollard776be7d205f4
diff --git a/server/src/repositories/map.repository.ts b/server/src/repositories/map.repository.tsindex 348736a33d..b9d17686a1 100644--- a/server/src/repositories/map.repository.ts+++ b/server/src/repositories/map.repository.ts@@ -178,7 +178,7 @@ export class MapRepository implements IMapRepository {await this.dataSource.query('DROP TABLE IF EXISTS naturalearth_countries_tmp');await this.dataSource.query(- 'CREATE UNLOGGED TABLE naturalearth_countries_tmp (LIKE naturalearth_countries INCLUDING ALL EXCLUDING INDEXES)',+ 'CREATE TABLE naturalearth_countries_tmp (LIKE naturalearth_countries INCLUDING ALL EXCLUDING INDEXES)',);const entities: Omit<NaturalEarthCountriesTempEntity, 'id'>[] = [];for (const feature of geoJSONData.features) {@@ -216,7 +216,7 @@ export class MapRepository implements IMapRepository {await this.dataSource.query('DROP TABLE IF EXISTS geodata_places_tmp');await this.dataSource.query(- 'CREATE UNLOGGED TABLE geodata_places_tmp (LIKE geodata_places INCLUDING ALL EXCLUDING INDEXES)',+ 'CREATE TABLE geodata_places_tmp (LIKE geodata_places INCLUDING ALL EXCLUDING INDEXES)',);await this.loadCities500(admin1, admin2);await this.createGeodataIndices();