From 6ed8ab5d2f02118bc982adc5dbe588a4498660cf Mon Sep 17 00:00:00 2001 From: Tigrov Date: Wed, 11 Dec 2024 17:31:57 +0700 Subject: [PATCH] Add `ColumnDefinitionBuilder::getDefaultUuidExpression()` method --- src/Column/ColumnDefinitionBuilder.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Column/ColumnDefinitionBuilder.php b/src/Column/ColumnDefinitionBuilder.php index 737bc161..831126bd 100644 --- a/src/Column/ColumnDefinitionBuilder.php +++ b/src/Column/ColumnDefinitionBuilder.php @@ -14,8 +14,6 @@ final class ColumnDefinitionBuilder extends AbstractColumnDefinitionBuilder { protected const AUTO_INCREMENT_KEYWORD = 'IDENTITY'; - protected const GENERATE_UUID_EXPRESSION = 'newid()'; - protected const TYPES_WITH_SIZE = [ 'decimal', 'numeric', @@ -103,4 +101,9 @@ protected function getDbType(ColumnSchemaInterface $column): string default => $dbType, }; } + + protected function getDefaultUuidExpression(): string + { + return 'newid()'; + } }