mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-01 03:10:13 -05:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user