fix(assets): improve error reporting for asset failures

fix(embed): update embedDirectives to return result directly

fix(executor): clean up import order and formatting

fix(syntax_test): change file permission syntax to octal

fix(mysql): update file permission syntax to octal

fix(pgsql): update file permission syntax to octal

fix(sqlex): simplify Walk function parameter handling

fix(transform): adjust identifier comparison logic

fix(template): clean up function formatting and error handling
This commit is contained in:
2026-10-12 22:04:40 +02:00
parent 05466a92b1
commit 1d93255575
17 changed files with 63 additions and 38 deletions
+6 -6
View File
@@ -848,7 +848,7 @@ func adoptableUniqueIndex(table *models.Table, constraint *models.Constraint) st
return ""
}
for i, col := range index.Columns {
if !(col == constraint.Columns[i]) {
if col != constraint.Columns[i] {
return ""
}
}
@@ -1239,21 +1239,21 @@ func constraintsEqual(c1, c2 *models.Constraint) bool {
return false
}
for i, col := range c1.Columns {
if !(col == c2.Columns[i]) {
if col != c2.Columns[i] {
return false
}
}
// For foreign keys, also compare referenced table and columns
if c1.Type == models.ForeignKeyConstraint {
if !(c1.ReferencedTable == c2.ReferencedTable) {
if c1.ReferencedTable != c2.ReferencedTable {
return false
}
if len(c1.ReferencedColumns) != len(c2.ReferencedColumns) {
return false
}
for i, col := range c1.ReferencedColumns {
if !(col == c2.ReferencedColumns[i]) {
if col != c2.ReferencedColumns[i] {
return false
}
}
@@ -1283,7 +1283,7 @@ func indexesEqual(idx1, idx2 *models.Index) bool {
return false
}
for i, col := range idx1.Columns {
if !(col == idx2.Columns[i]) {
if col != idx2.Columns[i] {
return false
}
}
@@ -1365,7 +1365,7 @@ func primaryKeyColumnsMatch(modelTable *models.Table, current *models.Constraint
return false
}
for i, col := range modelCols {
if !(col == current.Columns[i]) {
if col != current.Columns[i] {
return false
}
}