Skip to content

Commit

Permalink
Add ColumnDefinitionBuilder::getDefaultUuidExpression() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Dec 11, 2024
1 parent 3abe670 commit 4d647f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Column/ColumnDefinitionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ final class ColumnDefinitionBuilder extends AbstractColumnDefinitionBuilder
{
protected const AUTO_INCREMENT_KEYWORD = 'AUTOINCREMENT';

protected const GENERATE_UUID_EXPRESSION = '(randomblob(16))';

protected const TYPES_WITH_SIZE = [
'bit',
'tinyint',
Expand Down Expand Up @@ -99,4 +97,9 @@ protected function getDbType(ColumnSchemaInterface $column): string
default => 'varchar',
};
}

protected function getDefaultUuidExpression(): string
{
return '(randomblob(16))';
}
}

0 comments on commit 4d647f3

Please sign in to comment.