test: only for postgres
This commit is contained in:
		
							parent
							
								
									68c3c24ca4
								
							
						
					
					
						commit
						09f8bd0ad4
					
				@ -577,6 +577,10 @@ func TestMigrateColumnOrder(t *testing.T) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// https://github.com/go-gorm/gorm/issues/5047
 | 
					// https://github.com/go-gorm/gorm/issues/5047
 | 
				
			||||||
func TestMigrateSercialColumn(t *testing.T) {
 | 
					func TestMigrateSercialColumn(t *testing.T) {
 | 
				
			||||||
 | 
						if DB.Dialector.Name() != "postgres" {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	type Event struct {
 | 
						type Event struct {
 | 
				
			||||||
		ID  uint `gorm:"primarykey"`
 | 
							ID  uint `gorm:"primarykey"`
 | 
				
			||||||
		UID uint32
 | 
							UID uint32
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user