Skip to content

Commit 8876d20

Browse files
authored
Update upgrade.php
As per mdjnelson#681 (review)
1 parent c293119 commit 8876d20

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

db/upgrade.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -316,24 +316,5 @@ function xmldb_customcert_upgrade($oldversion) {
316316
upgrade_plugin_savepoint(true, 2024042210, 'mod', 'customcert');
317317
}
318318

319-
if ($oldversion < 2025041401) {
320-
$table = new xmldb_table('customcert');
321-
322-
// Add 'usecustomfilename' field.
323-
$field = new xmldb_field('usecustomfilename', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '0', 'deliveryoption');
324-
if (!$dbman->field_exists($table, $field)) {
325-
$dbman->add_field($table, $field);
326-
}
327-
328-
// Add 'customfilenamepattern' field.
329-
$field = new xmldb_field('customfilenamepattern', XMLDB_TYPE_TEXT, null, null, null, null, null, 'usecustomfilename');
330-
if (!$dbman->field_exists($table, $field)) {
331-
$dbman->add_field($table, $field);
332-
}
333-
334-
// Savepoint reached.
335-
upgrade_mod_savepoint(true, 2025041401, 'customcert');
336-
}
337-
338319
return true;
339-
}
320+
}

0 commit comments

Comments
 (0)