From 14234e120b7618f3b945cc1e1a45e95b6f0e43d3 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Fri, 15 Nov 2024 13:49:04 +0700 Subject: [PATCH] Improve column schema classes --- tests/Provider/QueryBuilderProvider.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Provider/QueryBuilderProvider.php b/tests/Provider/QueryBuilderProvider.php index da0b2067..d71c7f8f 100644 --- a/tests/Provider/QueryBuilderProvider.php +++ b/tests/Provider/QueryBuilderProvider.php @@ -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';