Set NOT NULL on teams.allow_next_upgrade_override

This commit is contained in:
Adrian Gruntkowski 2024-11-12 10:29:04 +01:00 committed by Adam Rutkowski
parent fbafa9534f
commit 77ea26e108

View File

@ -0,0 +1,15 @@
defmodule Plausible.Repo.Migrations.SetNotNullOnTeamsAllowNextUpgradeOverride 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 NOT NULL
""",
"""
ALTER TABLE teams ALTER COLUMN allow_next_upgrade_override DROP NOT NULL
"""
end
end