mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-04 11:03:50 +08:00
Description When trying to fix migration issues for wrongly ordered posts by running rake posts:reorder_posts, you may encounter errors like: ``` PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "post_timings_unique" ``` This happens if there are PostTiming records without a corresponding Post. Currently, the code does not handle these records, and when updating records to the new order, some values may collide, causing the error. |
||
|---|---|---|
| .. | ||
| assets_precompile_spec.rb | ||
| compatibility_spec.rb | ||
| destroy_spec.rb | ||
| hashtags_spec.rb | ||
| incoming_emails_spec.rb | ||
| posts_spec.rb | ||
| redis_spec.rb | ||
| themes_spec.rb | ||
| topics_spec.rb | ||
| uploads_spec.rb | ||
| users_spec.rb | ||
| version_bump_spec.rb | ||