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 3ae2961 commit 6ed8ab5
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 @@ -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',
Expand Down Expand Up @@ -103,4 +101,9 @@ protected function getDbType(ColumnSchemaInterface $column): string
default => $dbType,
};
}

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

0 comments on commit 6ed8ab5

Please sign in to comment.