This commit is contained in:
parent
bc9ea818eb
commit
b41f005d9e
9 changed files with 110 additions and 92 deletions
|
|
@ -34,8 +34,8 @@ defmodule Mv.Repo.Migrations.AddJoinRequests do
|
|||
|
||||
def down do
|
||||
drop_if_exists unique_index(:join_requests, [:confirmation_token_hash],
|
||||
name: "join_requests_unique_confirmation_token_hash_index"
|
||||
)
|
||||
name: "join_requests_unique_confirmation_token_hash_index"
|
||||
)
|
||||
|
||||
drop table(:join_requests)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
defmodule Mv.Repo.Migrations.AlterJoinRequestsSchemaVersionToInteger do
|
||||
@moduledoc """
|
||||
Aligns schema_version with Ash attribute type :integer (concept review).
|
||||
"""
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:join_requests) do
|
||||
modify :schema_version, :integer, null: false
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:join_requests) do
|
||||
modify :schema_version, :bigint, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue