Skip to content

Commit

Permalink
Fix MySQL version check for check constraints.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 18, 2024
1 parent 4996fd3 commit bd73df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/db/mysql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit bd73df5

Please sign in to comment.