DB Migrations #67

Merged
konrad merged 44 commits from feature/migrations into master 2019-03-29 17:54:36 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit d39667a121 - Show all commits

View File

@ -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{})
},
})
}