diff --git a/classes/migration/upgrade/v3_5_0/I9937_EditorialTeamToEditorialHistory.php b/classes/migration/upgrade/v3_5_0/I9937_EditorialTeamToEditorialHistory.php new file mode 100644 index 00000000000..62c1206dc8c --- /dev/null +++ b/classes/migration/upgrade/v3_5_0/I9937_EditorialTeamToEditorialHistory.php @@ -0,0 +1,48 @@ +getContextSettingsTable()) + ->where('setting_name', '=', 'editorialTeam') + ->update(['setting_name' => 'editorialHistory']); + + // Because of the foreign keys constrains it is enough to + // only remove the entries from the table navigation_menu_items. + DB::table('navigation_menu_items') + ->where('type', 'NMI_TYPE_EDITORIAL_TEAM') + ->delete(); + } + + /** + * Reverse the migration + */ + public function down(): void + { + throw new DowngradeNotSupportedException(); + } +}