2018-10-11 15:37:39 +00:00
|
|
|
defmodule Mobilizon.Repo.Migrations.MakeActorPublicKeyNullable 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
|
|
|
modify(:public_key, :text, null: true)
|
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
|
|
|
modify(:public_key, :text, null: false)
|
2018-05-30 16:59:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|