@@ -32,8 +32,8 @@ public static function dbTypes(): array
3232 ['float ' , ColumnType::FLOAT , DoubleColumn::class],
3333 ['real ' , ColumnType::FLOAT , DoubleColumn::class],
3434 ['double ' , ColumnType::DOUBLE , DoubleColumn::class],
35- ['decimal ' , ColumnType::DECIMAL , DoubleColumn ::class],
36- ['numeric ' , ColumnType::DECIMAL , DoubleColumn ::class],
35+ ['decimal ' , ColumnType::DECIMAL , StringColumn ::class],
36+ ['numeric ' , ColumnType::DECIMAL , StringColumn ::class],
3737 ['char ' , ColumnType::CHAR , StringColumn::class],
3838 ['varchar ' , ColumnType::STRING , StringColumn::class],
3939 ['string ' , ColumnType::STRING , StringColumn::class],
@@ -63,7 +63,7 @@ public static function definitions(): array
6363 $ definitions ['text NOT NULL ' ][1 ] = new StringColumn (ColumnType::TEXT , dbType: 'text ' , notNull: true );
6464 $ definitions ['char(1) ' ][1 ] = new StringColumn (ColumnType::CHAR , dbType: 'char ' , size: 1 );
6565 $ definitions ['string(126)[][] ' ][1 ] = new ArrayColumn (size: 126 , dimension: 2 , column: new StringColumn (size: 126 ));
66-
66+ $ definitions [ ' decimal(10,2) ' ][ 1 ] = new StringColumn (ColumnType:: DECIMAL , dbType: ' decimal ' , scale: 2 , size: 10 );
6767 $ definitions [] = ['bit(1) ' , new BooleanColumn (dbType: 'bit ' , size: 1 )];
6868
6969 return $ definitions ;
0 commit comments