mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Merge branch 'fix/migration' into 'develop'
Fix `SetNotNullForUsers` migration See merge request pleroma/pleroma!1913
This commit is contained in:
commit
e80f90e9db
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@ defmodule Pleroma.Repo.Migrations.SetNotNullForUsers do
|
|||
execute("UPDATE users SET follower_count = 0 WHERE follower_count IS NULL")
|
||||
|
||||
execute("ALTER TABLE users
|
||||
ALTER COLUMN following SET NOT NULL,
|
||||
ALTER COLUMN local SET NOT NULL,
|
||||
ALTER COLUMN source_data SET NOT NULL,
|
||||
ALTER COLUMN note_count SET NOT NULL,
|
||||
|
@ -27,7 +26,6 @@ defmodule Pleroma.Repo.Migrations.SetNotNullForUsers do
|
|||
|
||||
def down do
|
||||
execute("ALTER TABLE users
|
||||
ALTER COLUMN following DROP NOT NULL,
|
||||
ALTER COLUMN local DROP NOT NULL,
|
||||
ALTER COLUMN source_data DROP NOT NULL,
|
||||
ALTER COLUMN note_count DROP NOT NULL,
|
||||
|
|
Loading…
Reference in a new issue