Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runcom (0.13 sec)

  1. tests/migrate_test.go

    	}
    }
    
    func TestTiDBMigrateColumns(t *testing.T) {
    	if !isTiDB() {
    		t.Skip()
    	}
    
    	// TiDB can't change column constraint and has auto_random feature
    	type ColumnStruct struct {
    		ID    int `gorm:"primarykey;default:auto_random()"`
    		Name  string
    		Age   int    `gorm:"default:18;comment:my age"`
    		Code  string `gorm:"unique;comment:my code;"`
    		Code2 string
    		Code3 string `gorm:"unique"`
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top