Set NOT NULL on teams.allow_next_upgrade_override (#4807)

This commit is contained in:
Adrian Gruntkowski 2024-11-12 11:04:30 +01:00 committed by GitHub
parent fbafa9534f
commit 9004a02f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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