Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for game_users (0.08 sec)

  1. tests/migrate_test.go

    	}
    
    	DB.Migrator().DropTable(&GameUser{})
    	err := DB.AutoMigrate(&GameUser{})
    	AssertEqual(t, nil, err)
    
    	err = DB.Table("game_users").AutoMigrate(&GameUser1{})
    	AssertEqual(t, nil, err)
    
    	_, err = findColumnType(&GameUser{}, "stat_ab_ground_destroy_count")
    	AssertEqual(t, nil, err)
    
    	_, err = findColumnType(&GameUser{}, "rate_ground_rb_ground_destroy_count")
    	AssertEqual(t, nil, err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/count_test.go

    		t.Fatalf("Count should be 3, but got count: %v err %v", count10, err)
    	}
    
    	var count11 int64
    	sameUsers := make([]*User, 0)
    	for i := 0; i < 3; i++ {
    		sameUsers = append(sameUsers, GetUser("count-4", Config{}))
    	}
    	DB.Create(sameUsers)
    
    	if err := DB.Model(&User{}).Where("name = ?", "count-4").Group("name").Count(&count11).Error; err != nil || count11 != 1 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top