Fix #11945: Fix Schema Builder MySQL column definition order

This commit is contained in:
simialbi
2020-02-22 15:17:06 +01:00
committed by GitHub
parent 6e9764b467
commit 79e68767db
3 changed files with 10 additions and 3 deletions

View File

@ -61,10 +61,10 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
$format = '{type}{length}{comment}{check}{append}{pos}';
break;
case self::CATEGORY_NUMERIC:
$format = '{type}{length}{unsigned}{notnull}{unique}{default}{comment}{check}{append}{pos}';
$format = '{type}{length}{unsigned}{notnull}{default}{unique}{comment}{append}{pos}{check}';
break;
default:
$format = '{type}{length}{notnull}{unique}{default}{comment}{check}{append}{pos}';
$format = '{type}{length}{notnull}{default}{unique}{comment}{append}{pos}{check}';
}
return $this->buildCompleteString($format);