File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
adminforth/dataConnectors Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,17 @@ 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(' ) || baseType == 'decimal' ) {
32
+ } else if ( baseType . includes ( 'decimal(' ) ) {
33
33
field . type = AdminForthDataTypes . DECIMAL ;
34
34
field . _underlineType = 'decimal' ;
35
35
const [ precision , scale ] = baseType . match ( / \d + / g) ;
36
36
field . precision = parseInt ( precision ) ;
37
37
field . scale = parseInt ( scale ) ;
38
+ } else if ( baseType === 'decimal' ) {
39
+ field . type = AdminForthDataTypes . DECIMAL ;
40
+ field . _underlineType = 'decimal' ;
41
+ field . precision = 10 ;
42
+ field . scale = 2 ;
38
43
} else if ( baseType == 'real' ) {
39
44
field . type = AdminForthDataTypes . FLOAT ; //8-byte IEEE floating point number. It
40
45
field . _underlineType = 'real' ;
You can’t perform that action at this time.
0 commit comments