diff --git a/ccm-cms/src/main/resources/db/migrations/org/librecms/ccm_cms/pgsql/V7_0_0_37__remove_localized_value_from_primary_key_of_localized_string_tables.sql b/ccm-cms/src/main/resources/db/migrations/org/librecms/ccm_cms/pgsql/V7_0_0_37__remove_localized_value_from_primary_key_of_localized_string_tables.sql index 8cc5b6251..dcab82c4d 100644 --- a/ccm-cms/src/main/resources/db/migrations/org/librecms/ccm_cms/pgsql/V7_0_0_37__remove_localized_value_from_primary_key_of_localized_string_tables.sql +++ b/ccm-cms/src/main/resources/db/migrations/org/librecms/ccm_cms/pgsql/V7_0_0_37__remove_localized_value_from_primary_key_of_localized_string_tables.sql @@ -1,34 +1,34 @@ alter table ccm_cms.binary_asset_descriptions_aud drop constraint binary_asset_descriptions_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, asset_id, locale); alter table ccm_cms.bookmark_descriptions_aud drop constraint bookmark_descriptions_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, asset_id, locale); alter table ccm_cms.contact_entry_key_labels_aud drop constraint contact_entry_key_labels_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, key_id, locale); alter table ccm_cms.legal_metadata_rights_aud drop constraint legal_metadata_rights_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, asset_id, locale); alter table ccm_cms.side_note_texts_aud drop constraint side_note_texts_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, side_note_id_id, locale); alter table ccm_cms.asset_titles_aud drop constraint asset_titles_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, asset_id, locale); alter table ccm_cms.attachment_list_captions_aud drop constraint attachment_list_captions_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, list_id, locale); alter table ccm_cms.attachment_list_descriptions_aud drop constraint attachment_list_descriptions_aud_pkey, - add primary key (rev, object_id, locale); + add primary key (rev, list_id, locale); alter table ccm_cms.content_item_names_aud drop constraint content_item_names_aud_pkey, @@ -62,8 +62,8 @@ alter table ccm_cms.mpa_section_titles_aud drop constraint mpa_section_titles_aud_pkey, add primary key (rev, object_id, locale); -alter table ccm_cms.mpa_section_text_aud - drop constraint mpa_section_text_aud_pkey, +alter table ccm_cms.mpa_section_texts_aud + drop constraint mpa_section_texts_aud_pkey, add primary key (rev, object_id, locale); alter table ccm_cms.news_texts_aud