File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Nullable } from '../components/Common/utils/tsUtils' ;
2
- import { Table , Relationship , CheckConstraint , BaseTable } from './types' ;
3
1
import { isEqual } from '../components/Common/utils/jsUtils' ;
2
+ import { Nullable } from '../components/Common/utils/tsUtils' ;
4
3
import { QualifiedTable } from '../metadata/types' ;
5
4
import { FixMe } from '../types' ;
5
+ import { BaseTable , CheckConstraint , Relationship , Table } from './types' ;
6
6
7
7
export type Operations = 'insert' | 'select' | 'update' | 'delete' ;
8
8
export const QUERY_TYPES : Operations [ ] = [
@@ -61,7 +61,9 @@ export const getTrackedTables = (tables: Table[]) => {
61
61
} ;
62
62
63
63
export const getUntrackedTables = ( tables : Table [ ] ) => {
64
- return tables . filter ( t => ! t . is_table_tracked ) ;
64
+ return tables
65
+ . filter ( t => ! t . is_table_tracked )
66
+ . sort ( ( a , b ) => ( a . table_name > b . table_name ? 1 : - 1 ) ) ;
65
67
} ;
66
68
67
69
export const getTableColumnNames = ( table : Table ) => {
You can’t perform that action at this time.
0 commit comments