diff --git a/src/lib/validations/sql.ts b/src/lib/validations/sql.ts index 151d5763c..75172fad9 100644 --- a/src/lib/validations/sql.ts +++ b/src/lib/validations/sql.ts @@ -378,7 +378,7 @@ const checks: Checks = { "We suggest you search for all 'ENGINE=X' entries and replace them with 'ENGINE=InnoDB'!", }, autoIncrement: { - matcher: /^CREATE TABLE IF NOT EXISTS `?([a-z0-9_]+)`?\s+\(.*?AUTO_INCREMENT.*?\)/i, + matcher: /\s(NOT NULL AUTO_INCREMENT,)/i, matchHandler: ( _, results ) => ( { text: results[ 1 ] } ), outputFormatter: requiredCheckFormatter, results: [],