mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
migration fix
This commit is contained in:
parent
962af4d29b
commit
247dde9a5b
1 changed files with 6 additions and 0 deletions
|
@ -31,5 +31,11 @@ defmodule Philomena.Repo.Migrations.AddApprovalQueue do
|
|||
)
|
||||
|
||||
create index(:reports, [:system], where: "system = true")
|
||||
|
||||
execute("update images set approved = true;")
|
||||
execute("update posts set approved = true;")
|
||||
execute("update comments set approved = true;")
|
||||
execute("update messages set approved = true;")
|
||||
execute("update users set verified = true where created_at < '2022-03-01';")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue