File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/go-sql-driver/mysql v1.7.0
7
- gorm.io/gorm v1.25.7-0.20240204074919-46816ad31dde
7
+ gorm.io/gorm v1.25.7
8
8
)
Original file line number Diff line number Diff line change @@ -4,11 +4,5 @@ github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD
4
4
github.com/jinzhu/inflection v1.0.0 /go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc =
5
5
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ =
6
6
github.com/jinzhu/now v1.1.5 /go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8 =
7
- gorm.io/gorm v1.25.1 h1:nsSALe5Pr+cM3V1qwwQ7rOkw+6UeLrX5O4v3llhHa64 =
8
- gorm.io/gorm v1.25.1 /go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k =
9
- gorm.io/gorm v1.25.2-0.20230530020048-26663ab9bf55 h1:sC1Xj4TYrLqg1n3AN10w871An7wJM0gzgcm8jkIkECQ =
10
- gorm.io/gorm v1.25.2-0.20230530020048-26663ab9bf55 /go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k =
11
- gorm.io/gorm v1.25.6-0.20231115133256-3207ad6033aa h1:cGDODlWbAjO6jreDwDD34SsdQVhuFE5KjXO1LmpKZYQ =
12
- gorm.io/gorm v1.25.6-0.20231115133256-3207ad6033aa /go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8 =
13
- gorm.io/gorm v1.25.7-0.20240204074919-46816ad31dde h1:9DShaph9qhkIYw7QF91I/ynrr4cOO2PZra2PFD7Mfeg =
14
- gorm.io/gorm v1.25.7-0.20240204074919-46816ad31dde /go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8 =
7
+ gorm.io/gorm v1.25.7 h1:VsD6acwRjz2zFxGO50gPO6AkNs7KKnvfzUjHQhZDz/A =
8
+ gorm.io/gorm v1.25.7 /go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8 =
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ func (dialector Dialector) getSchemaStringType(field *schema.Field) string {
412
412
}
413
413
414
414
func (dialector Dialector ) getSchemaTimeType (field * schema.Field ) string {
415
- if ! dialector .DisableDatetimePrecision && field .Precision == 0 {
415
+ if ! dialector .DisableDatetimePrecision && field .Precision == 0 && field . TagSettings [ "PRECISION" ] == "" {
416
416
field .Precision = * dialector .DefaultDatetimePrecision
417
417
}
418
418
You can’t perform that action at this time.
0 commit comments