Skip to content

Commit

Permalink
Fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Dec 18, 2024
1 parent 28bd174 commit c81a347
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,19 @@ CREATE TABLE gtfs_route_networks (
CREATE INDEX ON gtfs_route_networks(feed_version_id);
CREATE INDEX ON gtfs_route_networks(network_id);
CREATE INDEX ON gtfs_route_networks(route_id);

ALTER TABLE gtfs_fare_leg_rules ADD COLUMN from_timeframe_group_id text;
ALTER TABLE gtfs_fare_leg_rules ADD COLUMN to_timeframe_group_id text;
ALTER TABLE gtfs_fare_leg_rules ADD COLUMN rule_priority int;

DROP INDEX gtfs_fare_leg_rules_feed_version_id_network_id_from_area_id_idx;
CREATE INDEX ON gtfs_fare_leg_rules(feed_version_id);

DROP INDEX gtfs_fare_products_feed_version_id_fare_product_id_rider_ca_idx;
CREATE INDEX ON gtfs_fare_products(feed_version_id);

DROP INDEX gtfs_fare_transfer_rules_feed_version_id_from_leg_group_id__idx;
CREATE INDEX on gtfs_fare_transfer_rules(feed_version_id);


COMMIT;

0 comments on commit c81a347

Please sign in to comment.