db fixes
This commit is contained in:
		
							parent
							
								
									93655b9c42
								
							
						
					
					
						commit
						60b39a5045
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -290,6 +290,7 @@ impl Transactable for Instance { | |||
| //
 | ||||
| 
 | ||||
| #[derive(AsChangeset, Clone, Insertable, Identifiable, Selectable, Queryable, PartialEq, Debug)] | ||||
| #[diesel(table_name = subnets, treat_none_as_default_value = false)] | ||||
| pub struct Subnet { | ||||
|     pub id: i32, | ||||
|     pub name: String, | ||||
|  | @ -467,7 +468,7 @@ impl Transactable for Subnet { | |||
| } | ||||
| 
 | ||||
| #[derive(Clone, Insertable, Identifiable, Selectable, Queryable)] | ||||
| #[diesel(table_name = ssh_keys)] | ||||
| #[diesel(table_name = ssh_keys, treat_none_as_default_value = false)] | ||||
| pub struct SshPubkey { | ||||
|     pub id: i32, | ||||
|     pub algorithm: String, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue