Commit 4da3de55 authored by Bill Schaller's avatar Bill Schaller

fix incorrect ordering of columns in clustered indexes on sql server when hydrated from schema info

parent 8e65cdc7
......@@ -893,7 +893,7 @@ class SQLServerPlatform extends AbstractPlatform
JOIN sys.index_columns AS idxcol ON idx.object_id = idxcol.object_id AND idx.index_id = idxcol.index_id
JOIN sys.columns AS col ON idxcol.object_id = col.object_id AND idxcol.column_id = col.column_id
WHERE " . $this->getTableWhereClause($table, 'scm.name', 'tbl.name') . "
ORDER BY idx.index_id ASC, idxcol.index_column_id ASC";
ORDER BY idx.index_id ASC, idxcol.key_ordinal ASC";
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment