Steven
21 ديسمبر 2025، 7:03ص
6
شكرًا @pfaffman و @JammyDodger ، سأبحث في قاعدة البيانات لمحاولة إصلاح هذا.
باستخدام مستكشف البيانات، لدي قائمة بالصفوف الإشكالية، يمكننا أن نرى أن هذا محدود جدًا في الوقت، ربما كانت مشكلة بسيطة مع المكون الإضافي خلال ذلك الوقت؟
هل رأيت هذا الالتزام (commit) الذي حاول إصلاح مشكلة مماثلة؟
committed 02:21PM - 26 Mar 25 UTC
We are seeing some errors when migrating and adding indexes on `answer_post_id`.…
```
#<StandardError:"An error has occurred, all later migrations canceled:\n\nPG::UniqueViolation: ERROR: could not create unique index \"index_discourse_solved_solved_topics_on_answer_post_id\"\nDETAIL: Key (answer_post_id)=(13006) is duplicated.\n">
```
This PR modifies the earlier migration, and also adds one before the addition of indexes to remove duplicates.
مثير للاهتمام على أي حال. سأحاول إصلاح هذا، سآخذ وقتي لأنه حساس للغاية.
إعجابَين (2)