I read the tracker entries for the other DDL SQL bug but this one looks different:
Debug info: SQLState: 42000<br>
Error Code: 3723<br>
Message: [Microsoft][SQL Server Native Client 10.0][SQL Server]An explicit DROP INDEX is not allowed on index 'mdl_role.mdl_role$mdl_role_nam_uix'. It is being used for UNIQUE KEY constraint enforcement.<br>
DROP INDEX mdl_role.mdl_role$mdl_role_nam_uix
Error code: ddlexecuteerror
Error Code: 3723<br>
Message: [Microsoft][SQL Server Native Client 10.0][SQL Server]An explicit DROP INDEX is not allowed on index 'mdl_role.mdl_role$mdl_role_nam_uix'. It is being used for UNIQUE KEY constraint enforcement.<br>
DROP INDEX mdl_role.mdl_role$mdl_role_nam_uix
Error code: ddlexecuteerror
Stack trace:
- line 432 of \lib\dml\moodle_database.php: ddl_change_structure_exception thrown
- line 258 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
- line 679 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
- line 88 of \lib\ddl\database_manager.php: call to sqlsrv_native_moodle_database->change_database_structure()
- line 77 of \lib\ddl\database_manager.php: call to database_manager->execute_sql()
- line 844 of \lib\ddl\database_manager.php: call to database_manager->execute_sql_arr()
- line 1019 of \lib\db\upgrade.php: call to database_manager->drop_index()
- line 1493 of \lib\upgradelib.php: call to xmldb_main_upgrade()
- line 284 of \admin\index.php: call to upgrade_core()
Suggestions appreciated.
Richard