This website works better with JavaScript.
Начало
Каталог
lain.church
Помощ
Регистрация
Вход
squeegily
/
pleroma
Наблюдаван
1
Харесван
0
Разклонения
0
Код
Задачи
0
Заявки за сливане
0
Версии
42
Уики
Activity
Преглед на файлове
Migrations: Add unique index to ChatMessageReferences.
1570-levenshtein-distance-user-search
lain
преди 4 години
родител
2591745fc2
ревизия
6413e06a86
променени са
1 файла
, в които са
добавени 14
реда и са
изтрити 0
реда
Разделен изглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
+ 14
- 0
priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
Целия файл
@@ -0,0 +1,14 @@
defmodule Pleroma.Repo.Migrations.BackfillChatMessageReferences do
use Ecto.Migration
alias Pleroma.Chat
alias Pleroma.ChatMessageReference
alias Pleroma.Object
alias Pleroma.Repo
import Ecto.Query
def change do
create(unique_index(:chat_message_references, [:object_id, :chat_id]))
end
end
Write
Preview
Loading…
Отказ
Запис