Skip to content

Change "time" column to use DATETIME type #1

@mefranklin6

Description

@mefranklin6

The "time" column should probably be using the MySQL "DATETIME" type instead of "VARCHAR(255)" type (storing the date as a string) to improve database queries.

Workaround: cast the "time" column to to date in queries like:

SELECT * FROM sometable
WHERE DATE(STR_TO_DATE(time, '%Y-%m-%dT%H:%i:%s')) = CURDATE();

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions