mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-03-06 06:38:13 +00:00
Put unique index on participants urls
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ecf7bb1fef
commit
042d09b8cb
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
defmodule Mobilizon.Storage.Repo.Migrations.PutUniqueIndexOnParticipantsUrls do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
create_if_not_exists(unique_index("participants", [:url]))
|
||||
end
|
||||
|
||||
def down do
|
||||
drop_if_exists(index("participants", [:url]))
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue