Removing dropping of indexes, has problems with running dev/build twice

This commit is contained in:
Sean Harvey 2013-04-05 17:23:13 +13:00
parent bd18c0a1f3
commit fc3df54eab

View File

@ -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.