1
0
peilaus alkaen https://github.com/quitesimpleorg/hs9001.git synced 2024-11-25 11:42:37 +01:00

Fix a bug in DB migration

This commit is contained in:
lawl 2021-04-05 14:37:37 +02:00
vanhempi 163429138c
commit baa0d58a47

Näytä tiedosto

@ -57,7 +57,7 @@ func initDatabase(conn *sql.DB) {
func migrateDatabase(conn *sql.DB, currentVersion int) { func migrateDatabase(conn *sql.DB, currentVersion int) {
migrations := []string{ migrations := []string{
"ALTER TABLE history add column workdir varchar(4096)", "ALTER TABLE history add column workdir varchar(4096) DEFAULT ''",
} }
if !(len(migrations) > currentVersion) { if !(len(migrations) > currentVersion) {