Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
2f093db0
Commit
2f093db0
authored
May 01, 2017
by
lain
Browse files
Ensure we have no duplicate ap ids.
parent
d187a496
Changes
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20170501124823_add_id_contraints_to_activities_and_objects.exs
0 → 100644
View file @
2f093db0
defmodule
Pleroma
.
Repo
.
Migrations
.
AddIdContraintsToActivitiesAndObjects
do
use
Ecto
.
Migration
def
change
do
create
index
(
:objects
,
[
"(data->>
\"
id
\"
)"
],
name:
:objects_unique_apid_index
)
create
index
(
:activities
,
[
"(data->>
\"
id
\"
)"
],
name:
:activities_unique_apid_index
)
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment