2022-08-29 00:42:24 +12:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources23 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
|
2022-09-16 10:35:33 +12:00
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
remove(:category_index)
|
2022-09-16 10:35:33 +12:00
|
|
|
end
|
2022-08-29 00:42:24 +12:00
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
2022-09-16 10:35:33 +12:00
|
|
|
alter table(:modules) do
|
2022-09-30 05:56:07 +13:00
|
|
|
add(:category_index, :bigint, null: false, default: 0)
|
2022-09-16 10:35:33 +12:00
|
|
|
end
|
2022-08-29 00:42:24 +12:00
|
|
|
end
|
2022-09-16 10:35:33 +12:00
|
|
|
end
|