Skip to content

type标签无法指定time类型? #6033

Closed
@congjunhua

Description

@congjunhua

通过type标签指定AtTime类型:

type Test struct {
	At string `gorm:"type:time"`
}

AutoMigrate时却使用了datetime类型:

[3.979ms] [rows:0] CREATE TABLE `tests` (`at` datetime(3) NULL)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions