mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
Modify index function created
This commit is contained in:
parent
c1bbed165d
commit
6352ea3f18
@ -893,6 +893,14 @@ class MSSQLDatabase extends Database {
|
|||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This changes the index name depending on database requirements.
|
||||||
|
* MSSQL requires commas to be replaced with underscores
|
||||||
|
*/
|
||||||
|
function modifyIndex($index){
|
||||||
|
return str_replace('_', ',', $index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user