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
|
2018-07-04 14:29:17 +02:00
|
|
|
modify :inserted_at, :timestamptz
|
|
|
|
modify :updated_at, :timestamptz
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
2018-11-12 23:36:51 +01:00
|
|
|
alter table(:events) do
|
2018-07-04 14:29:17 +02:00
|
|
|
modify :inserted_at, :utc_datetime
|
|
|
|
modify :updated_at, :utc_datetime
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|