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

Add time from u64 #849

Merged
merged 1 commit into from
Jul 8, 2022
Merged

Add time from u64 #849

merged 1 commit into from
Jul 8, 2022

Conversation

Sytten
Copy link
Contributor

@Sytten Sytten commented Jul 7, 2022

PR Info

I migrated our codebase to using time and I had a compilation error on my model:

pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    #[sea_orm(primary_key, auto_increment = false)]
    pub time: TimeDateTimeWithTimeZone,
    #[sea_orm(column_type = "Text")]
    pub ip: String,
    #[sea_orm(column_type = "Text")]
    pub version: String,
    #[sea_orm(column_type = "Text")]
    pub platform: String,
}

Fixes

  • Adds missing TryFromU64 for time objects

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! @Sytten

@billy1624 billy1624 merged commit d0aeda7 into SeaQL:master Jul 8, 2022
@Sytten Sytten deleted the feat/time-from-u64 branch December 12, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants