Skip to content

Commit

Permalink
Set default for teams.allow_next_upgrade_override schema column
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldar committed Nov 11, 2024
1 parent 98bc3e7 commit c92cde3
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule Plausible.Repo.Migrations.SetTeamsAllowNextUpgradeOverrideDefault do
use Ecto.Migration

@disable_ddl_transaction true
@disable_migration_lock true

def change do
execute """
ALTER TABLE teams ALTER COLUMN allow_next_upgrade_override SET DEFAULT false;
""",
"""
ALTER TABLE teams ALTER COLUMN allow_next_upgrade_override DROP DEFAULT;
"""
end
end

0 comments on commit c92cde3

Please sign in to comment.