File tree Expand file tree Collapse file tree 4 files changed +13
-59
lines changed Expand file tree Collapse file tree 4 files changed +13
-59
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 100
100
<KEY NAME =" page" TYPE =" foreign" FIELDS =" pageid" REFTABLE =" customcert_pages" REFFIELDS =" id" />
101
101
</KEYS >
102
102
</TABLE >
103
- <TABLE NAME =" customcert_email_task_prgrs" COMMENT =" to track email task progress" >
104
- <FIELDS >
105
- <FIELD NAME =" id" TYPE =" int" LENGTH =" 10" NOTNULL =" true" SEQUENCE =" true" />
106
- <FIELD NAME =" taskname" TYPE =" char" LENGTH =" 255" NOTNULL =" true" DEFAULT =" email_certificate_task" SEQUENCE =" false" />
107
- <FIELD NAME =" last_processed" TYPE =" int" LENGTH =" 20" NOTNULL =" true" DEFAULT =" 0" SEQUENCE =" false" />
108
- <FIELD NAME =" total_certificate_to_process" TYPE =" int" LENGTH =" 20" NOTNULL =" true" DEFAULT =" 0" SEQUENCE =" false" COMMENT =" to store the total count of certificates that should be processed" />
109
- </FIELDS >
110
- <KEYS >
111
- <KEY NAME =" primary" TYPE =" primary" FIELDS =" id" />
112
- </KEYS >
113
- </TABLE >
114
103
</TABLES >
115
104
</XMLDB >
Original file line number Diff line number Diff line change @@ -286,5 +286,17 @@ function xmldb_customcert_upgrade($oldversion) {
286
286
upgrade_mod_savepoint (true , 2023042411 , 'customcert ' );
287
287
}
288
288
289
+ if ($ oldversion < 2023042413 ) {
290
+ // Drop unused table customcert_email_task_prgrs.
291
+ $ table = new xmldb_table ('customcert_email_task_prgrs ' );
292
+
293
+ if ($ dbman ->table_exists ($ table )) {
294
+ $ dbman ->drop_table ($ table );
295
+ }
296
+
297
+ // Customcert savepoint reached.
298
+ upgrade_mod_savepoint (true , 2023042413 , 'customcert ' );
299
+ }
300
+
289
301
return true ;
290
302
}
Original file line number Diff line number Diff line change 24
24
25
25
defined ('MOODLE_INTERNAL ' ) || die ('Direct access to this script is forbidden. ' );
26
26
27
- $ plugin ->version = 2023042412 ; // The current module version (Date: YYYYMMDDXX).
27
+ $ plugin ->version = 2023042413 ; // The current module version (Date: YYYYMMDDXX).
28
28
$ plugin ->requires = 2023042400 ; // Requires this Moodle version (4.2).
29
29
$ plugin ->cron = 0 ; // Period for cron to check this module (secs).
30
30
$ plugin ->component = 'mod_customcert ' ;
You can’t perform that action at this time.
0 commit comments