Skip to content

Commit f549187

Browse files
committed
add migration to handle plugin registration issues
1 parent a881242 commit f549187

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
class AddCoursewarePlugin extends Migration
3+
{
4+
5+
function up()
6+
{
7+
DBManager::get()->query("UPDATE plugins
8+
SET plugintype = 'StandardPlugin,StudipModule,SystemPlugin,Courseware\\\\CoursewarePlugin'
9+
WHERE pluginclassname = 'OpenCast'");
10+
11+
SimpleOrMap::expireTableScheme();
12+
}
13+
14+
function down()
15+
{
16+
}
17+
18+
}

0 commit comments

Comments
 (0)