From f9976c45eff0fda8818a72cd00a2bff2a4ea2968 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Wed, 8 Jan 2025 16:32:10 +0700 Subject: [PATCH] Test `ColumnBuilder::string()->primaryKey()` (#916) --- tests/Provider/QueryBuilderProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Provider/QueryBuilderProvider.php b/tests/Provider/QueryBuilderProvider.php index 78726f552..bd7afa51c 100644 --- a/tests/Provider/QueryBuilderProvider.php +++ b/tests/Provider/QueryBuilderProvider.php @@ -1678,6 +1678,7 @@ public static function buildColumnDefinition(): array 'notNull()' => ['varchar(255) NOT NULL', ColumnBuilder::string()->notNull()], 'null()' => ['varchar(255) NULL', ColumnBuilder::string()->null()], 'integer()->primaryKey()' => ['integer PRIMARY KEY', ColumnBuilder::integer()->primaryKey()], + 'string()->primaryKey()' => ['varchar(255) PRIMARY KEY', ColumnBuilder::string()->primaryKey()], 'size(10)' => ['varchar(10)', ColumnBuilder::string()->size(10)], 'unique()' => ['varchar(255) UNIQUE', ColumnBuilder::string()->unique()], 'unsigned()' => ['integer UNSIGNED', ColumnBuilder::integer()->unsigned()],