fix(mage): scaffold new migrations with partialSync

address pr-swarm finding: the make-migration template still emitted plain
tx.Sync, regenerating the index-wipe pattern for the next contributor
This commit is contained in:
kolaente
2026-07-26 13:42:33 +00:00
committed by kolaente
parent 79c25a94a1
commit ec9e6cfcc7
+1 -1
View File
@@ -1184,7 +1184,7 @@ func init() {
ID: "` + date + `",
Description: "",
Migrate: func(tx *xorm.Engine) error {
return tx.Sync(` + str + date + `{})
return partialSync(tx, ` + str + date + `{})
},
Rollback: func(tx *xorm.Engine) error {
return nil