[#3213] Removed PK from hashtags_objects table. Improved hashtags_transfer mix task...
[akkoma] / priv / repo / migrations / 20201221203824_create_hashtags_objects.exs
index b2649b4fbea7154a1fa052b3da3132a3e01c3470..214ea81c335dfb042726ed540bf24d4f08587058 100644 (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