2023-01-18 15:33:49 +13:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources41 do
|
|
|
|
@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(:library_versions) do
|
2023-01-19 05:22:12 +13:00
|
|
|
add(:hydrated, :boolean, null: false, default: false)
|
2023-01-18 15:33:49 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:libraries) do
|
2023-01-19 05:22:12 +13:00
|
|
|
add(:module_prefixes, {:array, :text}, null: false, default: [])
|
2023-01-18 15:33:49 +13:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:libraries) do
|
2023-01-19 05:22:12 +13:00
|
|
|
remove(:module_prefixes)
|
2023-01-18 15:33:49 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:library_versions) do
|
2023-01-19 05:22:12 +13:00
|
|
|
remove(:hydrated)
|
2023-01-18 15:33:49 +13:00
|
|
|
end
|
|
|
|
end
|
2023-01-19 05:22:12 +13:00
|
|
|
end
|