Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestMigrateMySQLWithCustomizedTypes (0.18 seconds)

  1. tests/migrate_test.go

    	}
    	if !strings.Contains(strings.ToUpper(columnType.DatabaseTypeName()), "BLOB") {
    		t.Fatalf("expected data column to be migrated to BLOB, got: %s", columnType.DatabaseTypeName())
    	}
    }
    
    func TestMigrateMySQLWithCustomizedTypes(t *testing.T) {
    	if DB.Dialector.Name() != "mysql" {
    		t.Skip()
    	}
    
    	type MyTable struct {
    		Def string `gorm:"size:512;index:idx_def,unique"`
    		Abc string `gorm:"size:65000000"`
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 66.3K bytes
    - Click Count (0)
Back to Top