Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wrapMockMigrator (0.1 sec)

  1. tests/migrate_test.go

    	}
    	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)
    
    	type NotTriggerUpdate struct {
    		ID  uint
    		F1  uint16
    		F2  uint32
    		F3  int
    		F4  int64
    		F5  string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top