ash_postgres/priv/test_repo/tenant_migrations/20240327211149_migrate_resources2.exs

22 lines
552 B
Elixir
Raw Normal View History

defmodule AshPostgres.TestRepo.TenantMigrations.MigrateResources2 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(:multitenant_posts, prefix: prefix()) do
modify(:id, :uuid, default: fragment("gen_random_uuid()"))
end
end
def down do
alter table(:multitenant_posts, prefix: prefix()) do
modify(:id, :uuid, default: fragment("uuid_generate_v4()"))
end
end
end