ash_hq/priv/repo/migrations/20220714162036_migrate_resources9.exs
Zach Daniel 6eacce8515 improvement: render default_guide, ignore extension moduledocs
improvement: new dsl link types
improvement: comment sections to ignore in ash-hq
2022-07-14 15:09:04 -04:00

57 lines
No EOL
1 KiB
Elixir

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
add :argument_index, :bigint
end
alter table(:modules) do
add :file, :text
end
alter table(:guides) do
modify :category, :text, default: "Topics"
end
alter table(:functions) do
add :file, :text
add :line, :bigint
end
alter table(:dsls) do
add :imports, {:array, :text}
add :links, :map
end
end
def down do
alter table(:dsls) do
remove :links
remove :imports
end
alter table(:functions) do
remove :line
remove :file
end
alter table(:guides) do
modify :category, :text, default: "Guides"
end
alter table(:modules) do
remove :file
end
alter table(:options) do
remove :argument_index
end
end
end