Avoid use of old array syntax (#331)
This commit is contained in:
parent
d5ba284e64
commit
a0bc5ffa04
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, 2019111803, 'customcert');
|
upgrade_mod_savepoint(true, 2019111803, 'customcert');
|
||||||
|
|
Loading…
Reference in a new issue