mirror of https://github.com/go-gitea/gitea.git
Move table drop
This commit is contained in:
parent
614d6f06bc
commit
dfe30fe6a4
|
@ -293,11 +293,6 @@ Please try upgrading to a lower version first (suggested v1.6.4), then upgrade t
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove old version table
|
|
||||||
if err := x.DropTables(new(Version)); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// add migrations that already have been run
|
// add migrations that already have been run
|
||||||
for _, i := range oldMigrationNames[:v-minDBVersion] {
|
for _, i := range oldMigrationNames[:v-minDBVersion] {
|
||||||
if _, err := x.Insert(&xormigrate.Migration{ID: i}); err != nil {
|
if _, err := x.Insert(&xormigrate.Migration{ID: i}); err != nil {
|
||||||
|
@ -305,5 +300,10 @@ Please try upgrading to a lower version first (suggested v1.6.4), then upgrade t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove old version table
|
||||||
|
if err := x.DropTables(new(Version)); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue