mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 13:23:38 +12:00
6eacce8515
improvement: new dsl link types improvement: comment sections to ignore in ash-hq
57 lines
No EOL
1 KiB
Elixir
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 |