Skip to content

Commit

Permalink
Merge pull request #2667 from woocommerce/tweak/compat-wp-6-7-db
Browse files Browse the repository at this point in the history
WordPress 6.7 Compatibility: Avoid errors in the database where a TEXT type can't have a default value
  • Loading branch information
eason9487 authored Nov 12, 2024
2 parents 0383264 + a29a031 commit 9c35725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DB/Table/AttributeMappingRulesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c35725

Please sign in to comment.