[#3213] Removed PK from hashtags_objects table. Improved hashtags_transfer mix task (logging of failed ids).

This commit is contained in:
Ivan Tashkinov 2021-01-07 12:20:29 +03:00
commit 0d521022fe
3 changed files with 20 additions and 15 deletions

View file

@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.CreateHashtagsObjects do
use Ecto.Migration
def change do
create_if_not_exists table(:hashtags_objects) do
create_if_not_exists table(:hashtags_objects, primary_key: false) do
add(:hashtag_id, references(:hashtags), null: false)
add(:object_id, references(:objects), null: false)
end