Fixes #13776: Fixed setting precision and scale for decimal columns in MSSQL

This commit is contained in:
Artur Fursa
2017-03-16 18:38:56 +02:00
committed by Alexander Makarov
parent 3c1f3e20cf
commit 1b322f519f
3 changed files with 7 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
Schema::TYPE_BIGINT => 'bigint',
Schema::TYPE_FLOAT => 'float',
Schema::TYPE_DOUBLE => 'float',
Schema::TYPE_DECIMAL => 'decimal',
Schema::TYPE_DECIMAL => 'decimal(18,0)',
Schema::TYPE_DATETIME => 'datetime',
Schema::TYPE_TIMESTAMP => 'datetime',
Schema::TYPE_TIME => 'time',