Skip to content

Commit

Permalink
Improve column schema classes (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Nov 16, 2024
1 parent 4e93adc commit 154c05c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Provider/QueryBuilderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,12 @@ public static function buildColumnDefinition(): array
$values['comment(null)'][0] = 'nvarchar(255)';
$values["defaultValue('value')"][0] = "nvarchar(255) DEFAULT 'value'";
$values["defaultValue('')"][0] = "nvarchar(255) DEFAULT ''";
$values['defaultValue(null)'][0] = 'nvarchar(255)';
$values['defaultValue(null)'][0] = 'nvarchar(255) DEFAULT NULL';
$values['defaultValue($expression)'][0] = 'nvarchar(255) DEFAULT expression';
$values["integer()->defaultValue('')"][0] = 'int';
$values['notNull()->defaultValue(null)'][0] = 'nvarchar(255) NOT NULL';
$values["integer()->defaultValue('')"][0] = 'int DEFAULT NULL';
$values['notNull()'][0] = 'nvarchar(255) NOT NULL';
$values['null()'][0] = 'nvarchar(255) NULL';
$values['integer()->primaryKey()'][0] = 'int PRIMARY KEY';
$values['size(10)'][0] = 'nvarchar(10)';
$values['unique()'][0] = 'nvarchar(255) UNIQUE';
Expand Down

0 comments on commit 154c05c

Please sign in to comment.