File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
adminforth/dataConnectors Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class SQLiteConnector extends AdminForthBaseConnector implements IAdminForthData
18
18
rows . forEach ( ( row ) => {
19
19
const field : any = { } ;
20
20
const baseType = row . type . toLowerCase ( ) ;
21
- if ( baseType == 'int' ) {
21
+ if ( baseType == 'int' || baseType == 'integer' ) {
22
22
field . type = AdminForthDataTypes . INTEGER ;
23
23
field . _underlineType = 'int' ;
24
24
} else if ( baseType . includes ( 'varchar(' ) ) {
@@ -29,7 +29,7 @@ class SQLiteConnector extends AdminForthBaseConnector implements IAdminForthData
29
29
} else if ( baseType == 'text' ) {
30
30
field . type = AdminForthDataTypes . TEXT ;
31
31
field . _underlineType = 'text' ;
32
- } else if ( baseType . includes ( 'decimal(' ) ) {
32
+ } else if ( baseType . includes ( 'decimal(' ) || baseType == 'decimal' ) {
33
33
field . type = AdminForthDataTypes . DECIMAL ;
34
34
field . _underlineType = 'decimal' ;
35
35
const [ precision , scale ] = baseType . match ( / \d + / g) ;
You can’t perform that action at this time.
0 commit comments