2022-10-11 10:52:05 +13:00
|
|
|
defmodule AshHq.Repo.Migrations.MigrateResources29 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(:users) do
|
2022-10-26 17:53:18 +13:00
|
|
|
add(:encrypted_name, :binary)
|
|
|
|
add(:encrypted_address, :binary)
|
|
|
|
add(:shirt_size, :text)
|
2022-10-11 10:52:05 +13:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:users) do
|
2022-10-26 17:53:18 +13:00
|
|
|
remove(:shirt_size)
|
|
|
|
remove(:encrypted_address)
|
|
|
|
remove(:encrypted_name)
|
2022-10-11 10:52:05 +13:00
|
|
|
end
|
|
|
|
end
|
2022-10-26 17:53:18 +13:00
|
|
|
end
|