mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 13:58:41 +00:00
Merge branch 'generate-unset-user-keys-migration' into 'develop'
Fix GenerateUnsetUserKeys migration See merge request pleroma/pleroma!3976
This commit is contained in:
commit
35774d44b2
2 changed files with 9 additions and 1 deletions
0
changelog.d/generate-unset-user-keys-migration.skip
Normal file
0
changelog.d/generate-unset-user-keys-migration.skip
Normal file
|
@ -2,12 +2,20 @@
|
||||||
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# 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
|
defmodule Pleroma.Repo.Migrations.GenerateUnsetUserKeys do
|
||||||
use Ecto.Migration
|
use Ecto.Migration
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
alias Pleroma.Keys
|
alias Pleroma.Keys
|
||||||
alias Pleroma.Repo
|
alias Pleroma.Repo
|
||||||
alias Pleroma.User
|
|
||||||
|
|
||||||
def change do
|
def change do
|
||||||
query =
|
query =
|
||||||
|
|
Loading…
Reference in a new issue