Renamed migration struct to avoid conflicts
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c4baaf40e2
commit
d39667a121
|
@ -22,11 +22,11 @@ import (
|
|||
)
|
||||
|
||||
// Used for rollback
|
||||
type tasksReminderDate struct {
|
||||
type tasksReminderDateMigration20190324205606 struct {
|
||||
ReminderUnix int64 `xorm:"int(11) INDEX"`
|
||||
}
|
||||
|
||||
func (tasksReminderDate) TableName() string {
|
||||
func (tasksReminderDateMigration20190324205606) TableName() string {
|
||||
return "tasks"
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ func init() {
|
|||
return dropTableColum(tx, "tasks", "reminder_unix")
|
||||
},
|
||||
Rollback: func(tx *xorm.Engine) error {
|
||||
return tx.Sync2(tasksReminderDate{})
|
||||
return tx.Sync2(tasksReminderDateMigration20190324205606{})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue