Skip to content
Snippets Groups Projects
Commit 6e1dcaa6 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

handle migration possibly running twice, fixes #3407

Closes #3407

Merge request studip/studip!2316
parent 6710a2fd
No related branches found
No related tags found
No related merge requests found
......@@ -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 '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment