Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
bcf6a097
Unverified
Commit
bcf6a097
authored
8 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Added db table for subplugin info
parent
3002c42c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
db/install.xml
+13
-0
13 additions, 0 deletions
db/install.xml
db/upgrade.php
+3
-0
3 additions, 0 deletions
db/upgrade.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
17 additions
and
1 deletion
db/install.xml
+
13
−
0
View file @
bcf6a097
...
@@ -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
This diff is collapsed.
Click to expand it.
db/upgrade.php
+
3
−
0
View file @
bcf6a097
...
@@ -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
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
bcf6a097
...
@@ -23,5 +23,5 @@
...
@@ -23,5 +23,5 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
;
defined
(
'MOODLE_INTERNAL'
)
||
die
;
$plugin
->
version
=
201705
0901
;
$plugin
->
version
=
201705
1003
;
$plugin
->
component
=
'tool_cleanupcourses'
;
$plugin
->
component
=
'tool_cleanupcourses'
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment