Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F41647129
20190315101315_create_registrations.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
731 B
Referenced Files
None
Subscribers
None
20190315101315_create_registrations.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.CreateRegistrations
do
use
Ecto.Migration
def
change
do
create_if_not_exists
table
(
:registrations
,
primary_key
:
false
)
do
add
(
:id
,
:uuid
,
primary_key
:
true
)
add
(
:user_id
,
references
(
:users
,
type
:
:uuid
,
on_delete
:
:delete_all
))
add
(
:provider
,
:string
)
add
(
:uid
,
:string
)
add
(
:info
,
:map
,
default
:
%{})
timestamps
()
end
create_if_not_exists
(
unique_index
(
:registrations
,
[
:provider
,
:uid
]))
create_if_not_exists
(
unique_index
(
:registrations
,
[
:user_id
,
:provider
,
:uid
]))
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Feb 15, 4:38 AM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1031248
Default Alt Text
20190315101315_create_registrations.exs (731 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment