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
1818 rows . forEach ( ( row ) => {
1919 const field : any = { } ;
2020 const baseType = row . type . toLowerCase ( ) ;
21- if ( baseType == 'int' ) {
21+ if ( baseType == 'int' || baseType == 'integer' ) {
2222 field . type = AdminForthDataTypes . INTEGER ;
2323 field . _underlineType = 'int' ;
2424 } else if ( baseType . includes ( 'varchar(' ) ) {
@@ -29,7 +29,7 @@ class SQLiteConnector extends AdminForthBaseConnector implements IAdminForthData
2929 } else if ( baseType == 'text' ) {
3030 field . type = AdminForthDataTypes . TEXT ;
3131 field . _underlineType = 'text' ;
32- } else if ( baseType . includes ( 'decimal(' ) ) {
32+ } else if ( baseType . includes ( 'decimal(' ) || baseType == 'decimal' ) {
3333 field . type = AdminForthDataTypes . DECIMAL ;
3434 field . _underlineType = 'decimal' ;
3535 const [ precision , scale ] = baseType . match ( / \d + / g) ;
You can’t perform that action at this time.
0 commit comments