Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85197716
20200401030751_users_add_public_key.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
524 B
Referenced Files
None
Subscribers
None
20200401030751_users_add_public_key.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Repo.Migrations.UsersAddPublicKey
do
use
Ecto.Migration
def
up
do
alter
table
(
:users
)
do
add_if_not_exists
(
:public_key
,
:text
)
end
execute
(
"UPDATE users SET public_key = source_data->'publicKey'->>'publicKeyPem'"
)
end
def
down
do
alter
table
(
:users
)
do
remove_if_exists
(
:public_key
,
:text
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Mon, Jun 29, 9:32 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1631260
Default Alt Text
20200401030751_users_add_public_key.exs (524 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment