ash_hq/priv/repo/migrations/20220327001537_migrate_resources2.exs

25 lines
578 B
Elixir
Raw Normal View History

2022-03-28 10:26:35 +13:00
defmodule AshHq.Repo.Migrations.MigrateResources2 do
2022-03-26 10:17:01 +13:00
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:options) do
2022-03-28 10:26:35 +13:00
add :extension_id,
references(:extensions, column: :id, name: "options_extension_id_fkey", type: :uuid),
2022-03-26 10:17:01 +13:00
null: false
end
end
def down do
2022-03-28 10:26:35 +13:00
drop constraint(:options, "options_extension_id_fkey")
2022-03-26 10:17:01 +13:00
alter table(:options) do
2022-03-28 10:26:35 +13:00
remove :extension_id
2022-03-26 10:17:01 +13:00
end
end
end