mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
Removing dropping of indexes, has problems with running dev/build twice
This commit is contained in:
parent
bd18c0a1f3
commit
fc3df54eab
@ -614,13 +614,6 @@ class MSSQLDatabase extends SS_Database {
|
||||
// drop the index if it exists
|
||||
$alterCol='';
|
||||
|
||||
// drop *ALL* indexes on a table before proceeding
|
||||
// this won't drop primary keys, though
|
||||
$indexes = $this->indexNames($tableName);
|
||||
foreach($indexes as $indexName) {
|
||||
$alterCol = "\nDROP INDEX \"$indexName\" ON \"$tableName\";";
|
||||
}
|
||||
|
||||
$prefix="ALTER TABLE \"" . $tableName . "\" ";
|
||||
|
||||
// Remove the old default prior to adjusting the column.
|
||||
|
Loading…
Reference in New Issue
Block a user