2022-08-04 01:53:59 +12:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources16 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(:options) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:sanitized_name)
|
2022-08-04 01:53:59 +12:00
|
|
|
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:sanitized_path, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:dsls) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:sanitized_name)
|
2022-08-04 01:53:59 +12:00
|
|
|
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:sanitized_path, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:dsls) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:sanitized_path)
|
|
|
|
add(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:options) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:sanitized_path)
|
|
|
|
add(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
end
|
2022-09-30 05:56:07 +13:00
|
|
|
end
|