add interval migrations whoops

4ca6d0b · gmorell · 2023-07-28 04:12

6 files +12 -0

Files changed

added apps/room_sanctum/priv/repo/migrations/20230728041014_st_interval.exs
+12 −0
@@ -0,0 +1,12 @@
1 +defmodule RoomSanctum.Repo.Migrations.StInterval do
2 + use Ecto.Migration
3 +
4 + def change do
5 + execute """
6 + ALTER TABLE gtfs_stop_times
7 + ALTER column departure_time type interval using departure_time::interval;
8 + ALTER TABLE gtfs_stop_times
9 + ALTER column arrival_time type interval using arrival_time::interval;
10 + """
11 + end
12 +end

Parents: 8893dd9