mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Simplify postgres uuid-ossp stirng
This commit is contained in:
		
							parent
							
								
									e9adfcd678
								
							
						
					
					
						commit
						9e3318ca27
					
				
							
								
								
									
										2
									
								
								db.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								db.go
									
									
									
									
									
								
							| @ -28,7 +28,7 @@ func (h *Headscale) initDB() error { | |||||||
| 	h.db = db | 	h.db = db | ||||||
| 
 | 
 | ||||||
| 	if h.dbType == Postgres { | 	if h.dbType == Postgres { | ||||||
| 		db.Exec("create extension if not exists \"uuid-ossp\";") | 		db.Exec(`create extension if not exists "uuid-ossp";`) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	_ = db.Migrator().RenameColumn(&Machine{}, "ip_address", "ip_addresses") | 	_ = db.Migrator().RenameColumn(&Machine{}, "ip_address", "ip_addresses") | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user