Avoid use of old array syntax (#331)
This commit is contained in:
parent
ca1b065b65
commit
de7f9a9bd8
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ function xmldb_customcert_upgrade($oldversion) {
|
||||||
if ($dbman->index_exists($table, $index)) {
|
if ($dbman->index_exists($table, $index)) {
|
||||||
$dbman->drop_index($table, $index);
|
$dbman->drop_index($table, $index);
|
||||||
}
|
}
|
||||||
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id'));
|
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']);
|
||||||
$dbman->add_key($table, $key);
|
$dbman->add_key($table, $key);
|
||||||
|
|
||||||
$table = new xmldb_table('customcert_pages');
|
$table = new xmldb_table('customcert_pages');
|
||||||
|
@ -160,7 +160,7 @@ function xmldb_customcert_upgrade($oldversion) {
|
||||||
if ($dbman->index_exists($table, $index)) {
|
if ($dbman->index_exists($table, $index)) {
|
||||||
$dbman->drop_index($table, $index);
|
$dbman->drop_index($table, $index);
|
||||||
}
|
}
|
||||||
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id'));
|
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']);
|
||||||
$dbman->add_key($table, $key);
|
$dbman->add_key($table, $key);
|
||||||
|
|
||||||
upgrade_mod_savepoint(true, 2019052003, 'customcert');
|
upgrade_mod_savepoint(true, 2019052003, 'customcert');
|
||||||
|
|
Loading…
Reference in a new issue