Fix GenerateUnsetUserKeys migration

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2023-11-13 14:15:19 +01:00
parent a51f3937ee
commit fe776d8b33
2 changed files with 9 additions and 1 deletions

View File

@ -2,12 +2,20 @@
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule User do
use Ecto.Schema
schema "users" do
field(:keys, :string)
field(:local, :boolean, default: true)
end
end
defmodule Pleroma.Repo.Migrations.GenerateUnsetUserKeys do
use Ecto.Migration
import Ecto.Query
alias Pleroma.Keys
alias Pleroma.Repo
alias Pleroma.User
def change do
query =