1
0
réplica de https://github.com/quitesimpleorg/hs9001.git sincronizado 2025-02-16 16:22:33 +01:00

Fix a bug in DB migration

Este cometimento está contido em:
lawl 2021-04-05 14:37:37 +02:00
ascendente 163429138c
cometimento baa0d58a47

Ver ficheiro

@ -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) {