Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for null (0.18 sec)

  1. migrator/migrator.go

    		currentDefaultNotNull := field.HasDefaultValue && (field.DefaultValueInterface != nil || !strings.EqualFold(field.DefaultValue, "NULL"))
    		dv, dvNotNull := columnType.DefaultValue()
    		if dvNotNull && !currentDefaultNotNull {
    			// default value -> null
    			alterColumn = true
    		} else if !dvNotNull && currentDefaultNotNull {
    			// null -> default value
    			alterColumn = true
    		} else if currentDefaultNotNull || dvNotNull {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. tests/query_test.go

    	}
    
    	type QueryResetNullValue struct {
    		ID      int
    		Name    string     `gorm:"default:NULL"`
    		Flag    bool       `gorm:"default:NULL"`
    		Number1 int64      `gorm:"default:NULL"`
    		Number2 uint64     `gorm:"default:NULL"`
    		Number3 float64    `gorm:"default:NULL"`
    		Now     *time.Time `gorm:"defalut:NULL"`
    		Item1Id string
    		Item1   *QueryResetItem `gorm:"references:ID"`
    		Item2Id string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top