From ca3ade956dd9c9041c07cef048136fa91f5faca2 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Thu, 7 Aug 2025 09:57:52 +0200 Subject: fix in sql in down path of migrations, re #5313, re #5770 Merge request studip/studip!4416 --- db/migrations/5.3.29_add_index_blubber_comments_mkdate.php | 2 +- db/migrations/5.5.33_add_index_wikipages_parentid.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php b/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php index 1d7ed7a..70c6655 100644 --- a/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php +++ b/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php @@ -15,6 +15,6 @@ class AddIndexBlubberCommentsMkdate extends Migration public function down() { - DBManager::get()->exec("ALTER TABLE `blubber_comments` DROP INDEX (`mkdate`)"); + DBManager::get()->exec("ALTER TABLE `blubber_comments` DROP INDEX `mkdate`"); } } diff --git a/db/migrations/5.5.33_add_index_wikipages_parentid.php b/db/migrations/5.5.33_add_index_wikipages_parentid.php index bcbda7e..d9926b6 100644 --- a/db/migrations/5.5.33_add_index_wikipages_parentid.php +++ b/db/migrations/5.5.33_add_index_wikipages_parentid.php @@ -15,6 +15,6 @@ class AddIndexWikipagesParentid extends Migration public function down() { - DBManager::get()->exec("ALTER TABLE `wiki_pages` DROP INDEX (`parent_id`)"); + DBManager::get()->exec("ALTER TABLE `wiki_pages` DROP INDEX `parent_id`"); } } -- cgit v1.0