Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F41647163
20190315101315_create_registrations.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
565 B
Referenced Files
None
Subscribers
None
20190315101315_create_registrations.exs
View Options
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 (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1084605
Default Alt Text
20190315101315_create_registrations.exs (565 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment