Now MySQL looks for existing index names. MDL-9256

Merged from MOODLE_18_STABLE
This commit is contained in:
stronk7
2007-04-08 22:59:54 +00:00
parent 362f2ce973
commit 9770914d5f
5 changed files with 38 additions and 6 deletions
@@ -474,7 +474,7 @@ function getSequenceFromDB($xmldb_table) {
* return if such name is currently in use (true) or no (false)
* (invoked from getNameForObject()
*/
function isNameInUse($object_name, $type) {
function isNameInUse($object_name, $type, $table_name) {
switch($type) {
case 'ix':
case 'uix':