This commit is contained in:
2026-09-20 18:51:10 +08:00
parent 20a748cf7f
commit 417cbc6363
14 changed files with 551 additions and 12 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ function parseExpected(sql) {
const table = start[2]
const columns = new Set()
for (const line of body) {
const field = line.match(/^\s+`([a-z][a-z0-9_]*)`\s+/i)
const field = line.match(/^\s+(?!(?:PRIMARY|UNIQUE|KEY|CONSTRAINT|CHECK|FOREIGN)\b)`?([a-z][a-z0-9_]*)`?\s+/i)
if (field) columns.add(field[1])
}
if (!columns.size) continue