Don't fail hard if the location_history metadata db migration script fails

This commit is contained in:
Fabio Manganiello 2025-04-18 22:48:22 +02:00
parent 0fa13d6ec2
commit 24743d55aa
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -25,7 +25,11 @@ async function removeLocationHistoryColumns(query: { context: any }) {
const addMetadataToLocationPoints = {
up: async (query: { context: any }) => {
await addLocationHistoryColumns({ context: query.context });
try {
await addLocationHistoryColumns({ context: query.context });
} catch (error) {
console.warn('Error adding metadata columns to location points:', error);
}
},
down: async (query: { context: any }) => {