Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestMigrateDonotAlterColumn (0.12 seconds)

  1. tests/migrate_test.go

    	err := mm.Migrator.AlterColumn(dst, field)
    	if err != nil {
    		return err
    	}
    	return fmt.Errorf("trigger alter column error, field: %s", field)
    }
    
    func TestMigrateDonotAlterColumn(t *testing.T) {
    	wrapMockMigrator := func(m gorm.Migrator) mockMigrator {
    		return mockMigrator{
    			Migrator: m,
    		}
    	}
    	m := DB.Migrator()
    	mockM := wrapMockMigrator(m)
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Aug 20 04:51:17 GMT 2025
    - 65.2K bytes
    - Click Count (0)
Back to Top