neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
add interval migrations whoops
4ca6d0b · gmorell · 2023-07-28 04:12
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