Add invitation_id column to guest_invitations schema (#4811)

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
This commit is contained in:
hq1 2024-11-12 15:27:13 +01:00 committed by GitHub
parent 3809ebf4ba
commit 7cf61c9590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,14 @@
defmodule Plausible.Repo.Migrations.AddInvitationIdToGuestInvitations do
use Ecto.Migration
@disable_ddl_transaction true
@disable_migration_lock true
def change do
alter table(:guest_invitations) do
add :invitation_id, :string
end
create unique_index(:guest_invitations, [:invitation_id])
end
end