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