mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 02:27:57 +03:00
Set NOT NULL on teams.allow_next_upgrade_override
(#4807)
This commit is contained in:
parent
fbafa9534f
commit
9004a02f30
@ -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
|
Loading…
Reference in New Issue
Block a user