Skip to content
Snippets Groups Projects
Unverified Commit bcf6a097 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Added db table for subplugin info

parent 3002c42c
No related branches found
No related tags found
No related merge requests found
...@@ -14,5 +14,18 @@ ...@@ -14,5 +14,18 @@
<KEY NAME="courseid_fk" TYPE="unique" FIELDS="courseid" COMMENT="Foreign key on course table"/> <KEY NAME="courseid_fk" TYPE="unique" FIELDS="courseid" COMMENT="Foreign key on course table"/>
</KEYS> </KEYS>
</TABLE> </TABLE>
<TABLE NAME="tool_cleanupcourses_subplugin" COMMENT="Subplugins for the cleanup courses">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="name" TYPE="char" LENGTH="50" NOTNULL="true" SEQUENCE="false" COMMENT="name of the subplugin"/>
<FIELD NAME="type" TYPE="char" LENGTH="50" NOTNULL="true" SEQUENCE="false" COMMENT="subplugin type of the subplugin"/>
<FIELD NAME="enabled" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="tells if the subplugin is enabled"/>
<FIELD NAME="followedby" TYPE="int" LENGTH="3" NOTNULL="false" SEQUENCE="false" COMMENT="tells which subplugin follows this one in the cleanup process"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
<KEY NAME="unique subplugin" TYPE="unique" FIELDS="name, type"/>
</KEYS>
</TABLE>
</TABLES> </TABLES>
</XMLDB> </XMLDB>
\ No newline at end of file
...@@ -26,5 +26,8 @@ defined('MOODLE_INTERNAL') || die(); ...@@ -26,5 +26,8 @@ defined('MOODLE_INTERNAL') || die();
function xmldb_tool_cleanupcourses_upgrade($oldversion) { function xmldb_tool_cleanupcourses_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager(); // loads ddl manager and xmldb classes
return true; return true;
} }
\ No newline at end of file
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
defined('MOODLE_INTERNAL') || die; defined('MOODLE_INTERNAL') || die;
$plugin->version = 2017050901; $plugin->version = 2017051003;
$plugin->component = 'tool_cleanupcourses'; $plugin->component = 'tool_cleanupcourses';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment