Added migration
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
2495986872
commit
a91b881d58
|
@ -21,6 +21,15 @@ import (
|
|||
"src.techknowlogick.com/xormigrate"
|
||||
)
|
||||
|
||||
// Used for rollback
|
||||
type tasksReminderDate struct {
|
||||
ReminderUnix int64 `xorm:"int(11) INDEX"`
|
||||
}
|
||||
|
||||
func (tasksReminderDate) TableName() string {
|
||||
return "tasks"
|
||||
}
|
||||
|
||||
func init() {
|
||||
migrations = append(migrations, &xormigrate.Migration{
|
||||
ID: "20190324205606",
|
||||
|
@ -29,8 +38,7 @@ func init() {
|
|||
return dropTableColum(tx, "tasks", "reminder_unix")
|
||||
},
|
||||
Rollback: func(tx *xorm.Engine) error {
|
||||
|
||||
return nil
|
||||
return tx.Sync2(tasksReminderDate{})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue