2018-10-11 15:37:39 +00:00
|
|
|
defmodule Mobilizon.Repo.Migrations.AddAvatarAndBannerToActor do
|
2018-05-30 16:59:13 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
|
|
|
alter table(:actors) do
|
2019-02-22 13:18:52 +00:00
|
|
|
add(:avatar_url, :string)
|
|
|
|
add(:banner_url, :string)
|
2018-05-30 16:59:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:actors) do
|
2019-02-22 13:18:52 +00:00
|
|
|
remove(:avatar_url)
|
|
|
|
remove(:banner_url)
|
2018-05-30 16:59:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|