-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1.8, 3.3.2, 3.4
-
MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-60167-master -
-
3.4 Sprint 5
The upgrade step in MDL-53492 is not safe in the case of duplicate plugin values
Default exception handler: Error writing to database Debug: ERROR: duplicate key value violates unique constraint \"m_confplug_plunam_uix\"
|
DETAIL: Key (plugin, name)=(hub, site_name_httpsmoodlenet) already exists.
|
UPDATE m_config_plugins SET name = $1 WHERE id=$2
|
[array (
|
'name' => 'site_name_httpsmoodlenet',
|
0 => '1702',
|
)]
|
Error code: dmlwriteexception
|
* line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
|
* line 242 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
|
* line 1095 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
|
* line 1128 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
|
* line 2909 of /lib/db/upgrade.php: call to pgsql_native_moodle_database->update_record()
|
* line 1694 of /lib/upgradelib.php: call to xmldb_main_upgrade()
|
* line 175 of /admin/cli/upgrade.php: call to upgrade_core()
|