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:
parent
1da4330780
commit
17c28e5ebe
8 changed files with 260 additions and 119 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue