set precision when scale isn't default numeric types

fixes  #184
This commit is contained in:
Kononnable 2019-08-09 19:40:01 +02:00
parent 139aac0fac
commit b81b54f57f

View File

@ -106,15 +106,12 @@ function removeColumnDefaultProperties(
if (
column.options.precision &&
defVal.precision &&
column.options.precision === defVal.precision
) {
column.options.precision = undefined;
}
if (
column.options.precision === defVal.precision &&
column.options.scale &&
defVal.scale &&
column.options.scale === defVal.scale
) {
column.options.precision = undefined;
column.options.scale = undefined;
}
if (