migration fix

This commit is contained in:
Luna D 2022-03-24 18:11:02 +01:00
parent 962af4d29b
commit 247dde9a5b
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -31,5 +31,11 @@ defmodule Philomena.Repo.Migrations.AddApprovalQueue do
) )
create index(:reports, [:system], where: "system = true") 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
end end