Skip to content

If 'data_type' is defined on a field it ignores pydantic optional  #1

Description

@bw9ubwo

The Optional definition is ignored if data_type is set.

end: Optional[datetime] = Field(data_type="TIMESTAMP")

It should be translated to:

end TIMESTAMP NULL

but i is:

end TIMESTAMP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions