Skip to content

Commit

Permalink
Merge pull request #5581 from morozov/issues/5578
Browse files Browse the repository at this point in the history
Filter out the "sysdiagrams" table on SQL Server
  • Loading branch information
morozov committed Aug 10, 2022
2 parents ff1727e + 07671d0 commit 2191acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Schema/SQLServerSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ protected function selectTableColumns(string $databaseName, ?string $tableName =
AND prop.name = 'MS_Description'
SQL;

$conditions = ["obj.type = 'U'"];
// The "sysdiagrams" table must be ignored as it's internal SQL Server table for Database Diagrams
$conditions = ["obj.type = 'U'", "obj.name != 'sysdiagrams'"];
$params = [];

if ($tableName !== null) {
Expand Down

0 comments on commit 2191acb

Please sign in to comment.