Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
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-mod_pdfannotator
Commits
c65b6b41
Commit
c65b6b41
authored
6 years ago
by
Friederike Schwager
Committed by
Friederike Schwager
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfix db-update useprintcomments
parent
94b1cd11
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/upgrade.php
+15
-0
15 additions, 0 deletions
db/upgrade.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
16 additions
and
1 deletion
db/upgrade.php
+
15
−
0
View file @
c65b6b41
...
@@ -560,5 +560,20 @@ function xmldb_pdfannotator_upgrade($oldversion) {
...
@@ -560,5 +560,20 @@ function xmldb_pdfannotator_upgrade($oldversion) {
upgrade_mod_savepoint
(
true
,
2019060300
,
'pdfannotator'
);
upgrade_mod_savepoint
(
true
,
2019060300
,
'pdfannotator'
);
}
}
if
(
$oldversion
<
2019070100
)
{
// Define field useprintcomments to be added to pdfannotator.
$table
=
new
xmldb_table
(
'pdfannotator'
);
$field
=
new
xmldb_field
(
'useprintcomments'
,
XMLDB_TYPE_INTEGER
,
'2'
,
null
,
XMLDB_NOTNULL
,
null
,
'0'
,
'useprint'
);
// Conditionally launch add field useprintcomments.
if
(
!
$dbman
->
field_exists
(
$table
,
$field
))
{
$dbman
->
add_field
(
$table
,
$field
);
}
// Pdfannotator savepoint reached.
upgrade_mod_savepoint
(
true
,
2019030100
,
'pdfannotator'
);
}
return
true
;
return
true
;
}
}
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
c65b6b41
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
component
=
'mod_pdfannotator'
;
// Full name of the plugin (used for diagnostics).
$plugin
->
component
=
'mod_pdfannotator'
;
// Full name of the plugin (used for diagnostics).
$plugin
->
version
=
20190
603
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
version
=
20190
701
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
release
=
'PDF Annotator v1.1 release 1'
;
$plugin
->
release
=
'PDF Annotator v1.1 release 1'
;
$plugin
->
requires
=
2016112900
;
// Requires this Moodle version.
$plugin
->
requires
=
2016112900
;
// Requires this Moodle version.
$plugin
->
cron
=
0
;
// Period for cron to check this module (secs).
$plugin
->
cron
=
0
;
// Period for cron to check this module (secs).
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