Skip to content

Commit da0b019

Browse files
committed
readd alter table
1 parent 20d6121 commit da0b019

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

migrations/020_add_key_for_accesscontrol.php

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ public function description()
1010
public function up()
1111
{
1212
$db = DBManager::get();
13+
$db->exec("ALTER TABLE `oc_access_control`
14+
DROP INDEX IF EXISTS `PRIMARY`");
15+
1316
$db->exec("ALTER TABLE `oc_access_control`
1417
ADD PRIMARY KEY `id_course_id` (`id`(64), `course_id`(32))");
1518

0 commit comments

Comments
 (0)