mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 18:52:38 +03:00
Set NOT NULL on teams.allow_next_upgrade_override
This commit is contained in:
parent
fbafa9534f
commit
77ea26e108
@ -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