Merge f895ac4fc3422bb9f3b5dd2de3781c0f4ac86cfe into 89a726ce5da26da893dd3c2d8475e1d66677fd9c
This commit is contained in:
		
						commit
						8266c7abd0
					
				@ -96,9 +96,9 @@ func (s *mysql) DataTypeOf(field *StructField) string {
 | 
			
		||||
		case reflect.Struct:
 | 
			
		||||
			if _, ok := dataValue.Interface().(time.Time); ok {
 | 
			
		||||
				if _, ok := field.TagSettings["NOT NULL"]; ok {
 | 
			
		||||
					sqlType = "timestamp"
 | 
			
		||||
					sqlType = fmt.Sprintf("timestamp(%d)", size)
 | 
			
		||||
				} else {
 | 
			
		||||
					sqlType = "timestamp NULL"
 | 
			
		||||
					sqlType = fmt.Sprintf("timestamp(%d) NULL", size)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		default:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user