aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-10-30 14:58:18 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-10-30 14:58:18 +0000
commit6e1dcaa6d7572da73ac16c325221704672264bc8 (patch)
tree7432179c7543a20b6fd36de19f757630abc0507c /db
parent6710a2fd4ca7c1c43c3f3f1e5d33f70173df2c54 (diff)
handle migration possibly running twice, fixes #3407issue-3266
Closes #3407 Merge request studip/studip!2316
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.1.52_fix_for_biest3366.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrations/5.1.52_fix_for_biest3366.php b/db/migrations/5.1.52_fix_for_biest3366.php
index 2ff333b..c889844 100644
--- a/db/migrations/5.1.52_fix_for_biest3366.php
+++ b/db/migrations/5.1.52_fix_for_biest3366.php
@@ -9,12 +9,12 @@ class FixForBiest3366 extends Migration
public function up()
{
- DBManager::get()->exec('DROP TABLE `globalsearch_buzzwords`');
+ DBManager::get()->exec('DROP TABLE IF EXISTS `globalsearch_buzzwords`');
}
public function down()
{
- DBManager::get()->exec("CREATE TABLE `globalsearch_buzzwords` (
+ DBManager::get()->exec("CREATE TABLE IF NOT EXISTS `globalsearch_buzzwords` (
`id` CHAR(32) COLLATE latin1_bin NOT NULL,
`rights` ENUM('user','autor','tutor','dozent','admin','root') NOT NULL DEFAULT 'user',
`name` varchar(255) NOT NULL DEFAULT '',