Skip to content

Commit

Permalink
Soft migration clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi755 committed Apr 20, 2024
1 parent 27f49b5 commit 7aa8a03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ defmodule Tankste.Station.Repo.Migrations.RemoveOldStationIndexes do
use Ecto.Migration

def up do
execute "ALTER TABLE station_info_areas DROP CONSTRAINT station_areas_station_id_fkey"
execute "ALTER TABLE station_info_open_times DROP CONSTRAINT station_open_times_station_id_fkey"
execute "ALTER TABLE station_info_areas DROP IF EXISTS CONSTRAINT station_areas_station_id_fkey"
execute "ALTER TABLE station_info_open_times DROP IF EXISTS CONSTRAINT station_open_times_station_id_fkey"
end

def down do
Expand Down

0 comments on commit 7aa8a03

Please sign in to comment.