1
0
鏡像自 https://github.com/quitesimpleorg/hs9001.git 已同步 2025-07-05 08:13:50 +02:00

Fix a bug in DB migration

此提交包含在:
lawl
2021-04-05 14:37:37 +02:00
父節點 163429138c
當前提交 46d1860ddf

查看文件

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