2022-08-04 01:53:59 +12:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources15 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
|
|
|
modify(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:library_versions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_version, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:guides) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:functions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:extensions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: false)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:dsls) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :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
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:extensions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:functions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:guides) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:library_versions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_version, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:options) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:sanitized_name, :text, null: true)
|
2022-08-04 01:53:59 +12:00
|
|
|
end
|
|
|
|
end
|
2022-09-30 05:56:07 +13:00
|
|
|
end
|