Skip to content

Commit

Permalink
rearrange methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jan 18, 2025
1 parent 97385d1 commit 9bbd3da
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/QueryBuilder/AbstractColumnDefinitionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,6 @@ public function buildAlter(ColumnInterface $column): string
return $this->build($column);
}

/**
* Check if the database column type allow scale specification.
*/
protected function isAllowScale(string $dbType): bool
{
return in_array(strtolower($dbType), static::TYPES_WITH_SCALE, true);
}

/**
* Check if the database column type allow size specification.
*/
protected function isAllowSize(string $dbType): bool
{
return in_array(strtolower($dbType), static::TYPES_WITH_SIZE, true);
}

/**
* Builds the auto increment clause for the column.
*
Expand Down Expand Up @@ -321,4 +305,20 @@ protected function getDefaultUuidExpression(): string
{
return '';
}

/**
* Check if the database column type allow scale specification.
*/
protected function isAllowScale(string $dbType): bool
{
return in_array(strtolower($dbType), static::TYPES_WITH_SCALE, true);
}

/**
* Check if the database column type allow size specification.
*/
protected function isAllowSize(string $dbType): bool
{
return in_array(strtolower($dbType), static::TYPES_WITH_SIZE, true);
}
}

0 comments on commit 9bbd3da

Please sign in to comment.