test: test mysql only
This commit is contained in:
		
							parent
							
								
									c42089d0b0
								
							
						
					
					
						commit
						23f194ad59
					
				@ -659,6 +659,10 @@ func TestMigrateWithSpecialName(t *testing.T) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestUniqueColumn(t *testing.T) {
 | 
					func TestUniqueColumn(t *testing.T) {
 | 
				
			||||||
 | 
						if DB.Dialector.Name() != "mysql" {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	type UniqueTest struct {
 | 
						type UniqueTest struct {
 | 
				
			||||||
		ID   string `gorm:"primary_key"`
 | 
							ID   string `gorm:"primary_key"`
 | 
				
			||||||
		Name string `gorm:"unique"`
 | 
							Name string `gorm:"unique"`
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user