2018-11-12 23:36:51 +01:00
|
|
|
defmodule Mobilizon.Repo.Migrations.RevertAlterEventTimestampsToDateTimeWithTimeZone do
|
2018-07-04 14:29:17 +02:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
2018-11-12 23:36:51 +01:00
|
|
|
alter table(:events) do
|
2019-02-22 14:18:52 +01:00
|
|
|
modify(:inserted_at, :timestamptz)
|
|
|
|
modify(:updated_at, :timestamptz)
|
2018-07-04 14:29:17 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
2018-11-12 23:36:51 +01:00
|
|
|
alter table(:events) do
|
2019-02-22 14:18:52 +01:00
|
|
|
modify(:inserted_at, :utc_datetime)
|
|
|
|
modify(:updated_at, :utc_datetime)
|
2018-07-04 14:29:17 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|