mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
Use Google Maps feature IDs for place map links
This commit is contained in:
@@ -3054,6 +3054,14 @@ function runMigrations(db: Database.Database): void {
|
||||
if (!err.message?.includes('duplicate column name')) throw err;
|
||||
}
|
||||
},
|
||||
// Store Google Maps feature IDs separately from real Google Places API IDs.
|
||||
() => {
|
||||
try {
|
||||
db.exec('ALTER TABLE places ADD COLUMN google_ftid TEXT');
|
||||
} catch (err: any) {
|
||||
if (!err.message?.includes('duplicate column name')) throw err;
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
if (currentVersion < migrations.length) {
|
||||
|
||||
@@ -138,6 +138,7 @@ function createTables(db: Database.Database): void {
|
||||
notes TEXT,
|
||||
image_url TEXT,
|
||||
google_place_id TEXT,
|
||||
google_ftid TEXT,
|
||||
website TEXT,
|
||||
phone TEXT,
|
||||
transport_mode TEXT DEFAULT 'walking',
|
||||
|
||||
Reference in New Issue
Block a user