2022-07-15 07:09:04 +12:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources9 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
|
|
|
add(:argument_index, :bigint)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:file, :text)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:guides) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:category, :text, default: "Topics")
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:functions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:file, :text)
|
|
|
|
add(:line, :bigint)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:dsls) do
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:imports, {:array, :text})
|
|
|
|
add(:links, :map)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:dsls) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:links)
|
|
|
|
remove(:imports)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:functions) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:line)
|
|
|
|
remove(:file)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:guides) do
|
2022-09-30 05:56:07 +13:00
|
|
|
modify(:category, :text, default: "Guides")
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:file)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
alter table(:options) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:argument_index)
|
2022-07-15 07:09:04 +12:00
|
|
|
end
|
|
|
|
end
|
2022-09-30 05:56:07 +13:00
|
|
|
end
|