Repository navigation
Fix renumbering of motions in categories - #3903
Merged
Merged
Conversation
vkrasnovyd
force-pushed
the
fix-motions-renumbering
branch
from
November 26, 2026 15:22
5055890 to
2f4fba4
Compare
vkrasnovyd
requested review from
luisa-beerboom
and removed request for
hjanott
November 30, 2026 15:57
luisa-beerboom
requested changes
Dec 1, 2026
Co-authored-by: luisa-beerboom <101706784+luisa-beerboom@users.noreply.github.com>
…es/migration.py Co-authored-by: luisa-beerboom <101706784+luisa-beerboom@users.noreply.github.com>
luisa-beerboom
requested changes
Dec 1, 2026
luisa-beerboom
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: OpenSlides/OpenSlides#7228
Needs OpenSlides/openslides-meta#651
This PR:
Migrates the indexes and unique constraints to match Remove redundant indexes, make unique deferrable openslides-meta#651.
Resolves naming inconsistency introduces by the initial implementation of migration 100: most of the indexes and unique constraints had names generated by PostgreSQL instead of the names from the schema. Structured examples:
2.1 Unique constraint on regular table:
"meeting_m_external_id_key" UNIQUE CONSTRAINT, btree (external_id) -> rename
2.2 unique together:
"meeting_mediafile_m_mediafile_id_meeting_id_key" UNIQUE CONSTRAINT, btree (mediafile_id, meeting_id)
"mediafile_m_title_parent_id_owner_id_key" UNIQUE CONSTRAINT, btree (title, parent_id, owner_id) NULLS NOT DISTINCT
2.3 sequence_scope
"assignment_m_sequential_number_meeting_id_key" UNIQUE CONSTRAINT, btree (sequential_number, meeting_id)
2.4 1-1 relation:
"idx_meeting_t_default_group_id" btree (default_group_id)
"meeting_m_default_group_id_idx" btree (default_group_id)
"meeting_m_default_group_id_key" UNIQUE CONSTRAINT, btree (default_group_id)
2.5 generic relation
"list_of_speakers_t_pkey" PRIMARY KEY, btree (id)
"idx_list_of_speakers_t_content_object_id_assignment_id" btree (content_object_id_assignment_id)
"idx_list_of_speakers_t_content_object_id_meeting_mediafile_id" btree (content_object_id_meeting_mediafile_id)
"idx_list_of_speakers_t_content_object_id_motion_block_id" btree (content_object_id_motion_block_id)
"idx_list_of_speakers_t_content_object_id_motion_id" btree (content_object_id_motion_id)
"idx_list_of_speakers_t_content_object_id_topic_id" btree (content_object_id_topic_id)
"idx_list_of_speakers_t_meeting_id" btree (meeting_id)
"unique_list_of_speakers_content_object_id_assignment_id" UNIQUE CONSTRAINT, btree (content_object_id_assignment_id)
"unique_list_of_speakers_content_object_id_meeting_mediafile_id" UNIQUE CONSTRAINT, btree (content_object_id_meeting_mediafile_id)
"unique_list_of_speakers_content_object_id_motion_block_id" UNIQUE CONSTRAINT, btree (content_object_id_motion_block_id)
"unique_list_of_speakers_content_object_id_motion_id" UNIQUE CONSTRAINT, btree (content_object_id_motion_id)
"unique_list_of_speakers_content_object_id_topic_id" UNIQUE CONSTRAINT, btree (content_object_id_topic_id)
"unique_list_of_speakers_sequential_number_meeting_id" UNIQUE CONSTRAINT, btree (sequential_number, meeting_id)
2.6 nm: drop + recreate (nm_chat_group_read_group_ids_group_t)
"nm_chat_group_read_group_ids_group_m_pkey" PRIMARY KEY, btree (chat_group_id, group_id)
"nm_chat_group_read_group_ids_group_m_chat_group_id_idx" btree (chat_group_id)
"nm_chat_group_read_group_ids_group_m_group_id_idx" btree (group_id)
2.7 gm: drop + recreate (gm_tag_tagged_ids_t)
"gm_tag_tagged_ids_m_tag_id_idx" btree (tag_id)
"gm_tag_tagged_ids_m_tag_id_tagged_id_key" UNIQUE CONSTRAINT, btree (tag_id, tagged_id)
"gm_tag_tagged_ids_m_tagged_id_agenda_item_id_idx" btree (tagged_id_agenda_item_id)
"gm_tag_tagged_ids_m_tagged_id_assignment_id_idx" btree (tagged_id_assignment_id)
"gm_tag_tagged_ids_m_tagged_id_idx" btree (tagged_id)
"gm_tag_tagged_ids_m_tagged_id_motion_id_idx" btree (tagged_id_motion_id)
openslides_backend/migrations/migrations/mig_0103_update_indexes/indexes.pyis generated by code removed frommigration.pyin 1bb18dc