1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-10 12:56:24 -07:00

Move database schema updating to gochan-migration

This commit is contained in:
Eggbertx 2023-04-07 14:34:28 -07:00
parent 1da4330780
commit 17c28e5ebe
8 changed files with 260 additions and 119 deletions

View file

@ -16,7 +16,7 @@ const (
DBUpToDate
DBModernButAhead
targetDatabaseVersion = 1
targetDatabaseVersion = 2
)
var (
@ -108,7 +108,7 @@ func CheckAndInitializeDatabase(dbType string) error {
if err != nil {
return err
}
return tmpSqlAdjust()
return nil
}
func buildNewDatabase(dbType string) error {