Fix a bug in DB migration

Tento commit je obsažen v:
lawl 2021-04-05 14:37:37 +02:00
rodič 163429138c
revize baa0d58a47

Zobrazit soubor

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