Skip to content

Commit

Permalink
10.5: [Database/Schema] Fixed an issue in the database schema checker…
Browse files Browse the repository at this point in the history
… where `smallint` didn't have its length ignored like the other int types.
  • Loading branch information
jstanden committed Oct 3, 2024
1 parent deaeb46 commit ac7b5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/devblocks/api/services/bootstrap/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function($column) {
$column['null'] = strval($column['null']);

// Normalize ints by removing length (MySQL 8+)
if(DevblocksPlatform::strStartsWith($column['type'], ['tinyint(','int(','mediumint(','bigint('])) {
if(DevblocksPlatform::strStartsWith($column['type'], ['tinyint(','smallint(','int(','mediumint(','bigint('])) {
$column['type'] = preg_replace('#\(\d+\)#', '', $column['type']);
}

Expand Down

0 comments on commit ac7b5fb

Please sign in to comment.