Merge pull request 'updating docs: start akko first, then upgrade frontend' (#486...
[akkoma] / priv / repo / migrations / 20210111172254_create_data_migration_failed_ids.exs
index ba0be98af6212c17408ac7a562e8a6118e26ecae..18afa74acfc31ac4f37983955cd9f02b7bdb2023 100644 (file)
@@ -3,8 +3,8 @@ defmodule Pleroma.Repo.Migrations.CreateDataMigrationFailedIds do
 
   def change do
     create_if_not_exists table(:data_migration_failed_ids, primary_key: false) do
-      add(:data_migration_id, references(:data_migrations), null: false)
-      add(:record_id, :bigint, null: false)
+      add(:data_migration_id, references(:data_migrations), null: false, primary_key: true)
+      add(:record_id, :bigint, null: false, primary_key: true)
     end
 
     create_if_not_exists(