tükörképe a:
				https://github.com/quitesimpleorg/hs9001.git
				synced 2025-10-31 04:19:30 +01:00 
			
		
		
		
	Fix a bug in DB migration
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 lawl
					lawl