From 776be7d205f4cce3daafc44cb1fdfee1895f5c52 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Tue, 7 Jan 2025 15:36:07 +0000 Subject: [PATCH] fix: reverse geocoding data import don't use unlogged tables (#15136) --- server/src/repositories/map.repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/repositories/map.repository.ts b/server/src/repositories/map.repository.ts index 348736a33d4..b9d17686a15 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[] = []; 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();