Skip to content

Commit 215aa38

Browse files
committed
used whitelist in one-off sql update
1 parent 54cf958 commit 215aa38

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

liquibase/changes/feat_1125.sql

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
-- Update gbfsendpoint table to set is_feature = false for specific endpoints
22
UPDATE gbfsendpoint
3-
SET is_feature = false
4-
WHERE name IN ('station_information', 'system_hours', 'system_calendar')
5-
AND is_feature = true;
3+
SET is_feature = CASE
4+
WHEN name IN (
5+
'manifest',
6+
'gbfs_versions',
7+
'vehicle_types',
8+
'station_status',
9+
'vehicle_status',
10+
'system_regions',
11+
'system_pricing_plans',
12+
'system_alerts',
13+
'geofencing_zones'
14+
) THEN true
15+
ELSE false
16+
END;

0 commit comments

Comments
 (0)