Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMigrateSerialColumn (0.34 sec)

  1. tests/migrate_test.go

    			t.Fatalf("column order not match struct and ddl, idx %d: %s != %s",
    				i, columnTypes[i].Name(), expectName)
    		}
    	}
    }
    
    // https://github.com/go-gorm/gorm/issues/5047
    func TestMigrateSerialColumn(t *testing.T) {
    	if DB.Dialector.Name() != "postgres" {
    		return
    	}
    
    	type Event struct {
    		ID  uint `gorm:"primarykey"`
    		UID uint32
    	}
    
    	type Event1 struct {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top