From bd73df5dcf68a6425dcfe381b235e311396b58ee Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sat, 18 May 2024 13:39:02 -0400 Subject: [PATCH] Fix MySQL version check for check constraints. --- framework/db/mysql/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/mysql/Schema.php b/framework/db/mysql/Schema.php index 50da4699c05..21cca273ab1 100644 --- a/framework/db/mysql/Schema.php +++ b/framework/db/mysql/Schema.php @@ -207,7 +207,7 @@ protected function loadTableChecks($tableName) { // check version MySQL >= 8.0.16 if (version_compare($this->db->getSlavePdo()->getAttribute(\PDO::ATTR_SERVER_VERSION), '8.0.16', '<')) { - $this->markTestSkipped('MySQL < 8.0.16 does not support CHECK constraints.'); + throw new NotSupportedException('MySQL < 8.0.16 does not support check constraints.'); } $checks = [];