Skip to content

Commit 46e3c40

Browse files
committed
no message
1 parent a46c562 commit 46e3c40

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

SubSonic.Core.DataAccessLayer/src/CodeGenerator/Models/Columns.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ LEFT JOIN ( SELECT KCU.TABLE_SCHEMA, KCU.TABLE_NAME, KCU.ORDINAL_POSITION, KCU.C
3131
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE KCU
3232
JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS TC
3333
ON KCU.CONSTRAINT_NAME = TC.CONSTRAINT_NAME
34-
WHERE TC.CONSTRAINT_TYPE = 'PRIMARY KEY' AND KCU.TABLE_NAME <> '__RefactorLog') [PK] ON
34+
WHERE TC.CONSTRAINT_TYPE = 'PRIMARY KEY') [PK] ON
3535
[PK].TABLE_SCHEMA = COL.TABLE_SCHEMA AND
3636
[PK].TABLE_NAME = [COL].[TABLE_NAME] AND
37-
[PK].ORDINAL_POSITION = [COL].ORDINAL_POSITION
38-
WHERE [COL].[TABLE_NAME] <> '__RefactorLog'";
37+
[PK].ORDINAL_POSITION = [COL].ORDINAL_POSITION";
3938

4039
public string Catalog { get; set; }
4140
public string Schema { get; set; }

SubSonic.Core.DataAccessLayer/src/CodeGenerator/Models/Table.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Table
1212
[Schema] = TABLE_SCHEMA,
1313
[Name] = TABLE_NAME
1414
FROM INFORMATION_SCHEMA.TABLES
15-
WHERE TABLE_TYPE='BASE TABLE' and TABLE_NAME <> '__RefactorLog'";
15+
WHERE TABLE_TYPE='BASE TABLE'";
1616

1717
public Table()
1818
{

0 commit comments

Comments
 (0)