Code Duplication    Length = 6-6 lines in 2 locations

src/Phinx/Db/Adapter/MysqlAdapter.php 1 location

@@ 975-980 (lines=6) @@
972
     */
973
    protected function getColumnSqlDefinition(Column $column)
974
    {
975
        if ($column->getType() instanceof Literal) {
976
            $def = (string)$column->getType();
977
        } else {
978
            $sqlType = $this->getSqlType($column->getType(), $column->getLimit());
979
            $def = strtoupper($sqlType['name']);
980
        }
981
        if ($column->getPrecision() && $column->getScale()) {
982
            $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
983
        } elseif (isset($sqlType['limit'])) {

src/Phinx/Db/Adapter/PostgresAdapter.php 1 location

@@ 906-911 (lines=6) @@
903
        if ($column->isIdentity()) {
904
            $buffer[] = $column->getType() == 'biginteger' ? 'BIGSERIAL' : 'SERIAL';
905
        } else {
906
            if ($column->getType() instanceof Literal) {
907
                $buffer[] = (string)$column->getType();
908
            } else {
909
                $sqlType = $this->getSqlType($column->getType(), $column->getLimit());
910
                $buffer[] = strtoupper($sqlType['name']);
911
            }
912
            // integers cant have limits in postgres
913
            if (static::PHINX_TYPE_DECIMAL === $sqlType['name'] && ($column->getPrecision() || $column->getScale())) {
914
                $buffer[] = sprintf(