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 d159b97 commit bc7ee43
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 @@ -16,8 +16,6 @@ final class ColumnDefinitionBuilder extends AbstractColumnDefinitionBuilder
{
protected const AUTO_INCREMENT_KEYWORD = 'GENERATED BY DEFAULT AS IDENTITY';

protected const GENERATE_UUID_EXPRESSION = 'sys_guid()';

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

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

0 comments on commit bc7ee43

Please sign in to comment.