From 4535b7124ca3ecd256c006945342d3faf983ca85 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Mon, 11 Nov 2024 15:19:08 +0800 Subject: [PATCH 1/3] Avoid errors in the database where a TEXT type can't have a default value. --- src/DB/Table/AttributeMappingRulesTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DB/Table/AttributeMappingRulesTable.php b/src/DB/Table/AttributeMappingRulesTable.php index f088f84588..972dd467b8 100644 --- a/src/DB/Table/AttributeMappingRulesTable.php +++ b/src/DB/Table/AttributeMappingRulesTable.php @@ -28,7 +28,7 @@ protected function get_install_query(): string { `attribute` varchar(255) NOT NULL, `source` varchar(100) NOT NULL, `category_condition_type` varchar(10) NOT NULL, - `categories` text DEFAULT '', + `categories` text NOT NULL, PRIMARY KEY `id` (`id`) ) {$this->get_collation()}; SQL; From e75eb99e409fce2395cd549c9c0d1adaa8dfb229 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Mon, 11 Nov 2024 15:20:59 +0800 Subject: [PATCH 2/3] Temporarily add WordPress 6.7-RC3 to the test matrix of PHP Unit Tests. --- .github/workflows/php-unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php-unit-tests.yml b/.github/workflows/php-unit-tests.yml index 7db7006448..f8012ec22e 100644 --- a/.github/workflows/php-unit-tests.yml +++ b/.github/workflows/php-unit-tests.yml @@ -65,7 +65,7 @@ jobs: strategy: matrix: php: [ 8.2 ] - wp-version: [ latest ] + wp-version: [ latest, '6.7-RC3' ] wc-versions: ${{ fromJson(needs.GetMatrix.outputs.wc-versions) }} include: - php: 8.3 From a29a0310a4b4978f6f63426d9c21ec1a08911c96 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Mon, 11 Nov 2024 15:40:58 +0800 Subject: [PATCH 3/3] Revert "Temporarily add WordPress 6.7-RC3 to the test matrix of PHP Unit Tests." This reverts commit e75eb99e409fce2395cd549c9c0d1adaa8dfb229. --- .github/workflows/php-unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php-unit-tests.yml b/.github/workflows/php-unit-tests.yml index f8012ec22e..7db7006448 100644 --- a/.github/workflows/php-unit-tests.yml +++ b/.github/workflows/php-unit-tests.yml @@ -65,7 +65,7 @@ jobs: strategy: matrix: php: [ 8.2 ] - wp-version: [ latest, '6.7-RC3' ] + wp-version: [ latest ] wc-versions: ${{ fromJson(needs.GetMatrix.outputs.wc-versions) }} include: - php: 8.3