Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distinguish between schema.Time and tag time #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

black-06
Copy link

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

fix go-gorm/gorm#6033

User Case Description

type Test struct {
    Date time.Time `gorm:"type:date"`
    Time time.Time `gorm:"type:time"`
    DefaultDateTime time.Time
}
CREATE TABLE `tests` (`date` date,`time` time,`default_date_time` datetime)

@black-06 black-06 marked this pull request as draft February 20, 2023 08:16
@black-06 black-06 marked this pull request as ready for review March 14, 2023 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

type标签无法指定time类型?
1 participant