Store timestamps as strings in the database to fix errors with postgres. Reviewed-on: #1 Co-authored-by: Michael Housh <michael@mhoush.com> Co-committed-by: Michael Housh <michael@mhoush.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -66,8 +66,8 @@ extension ComponentPressureLoss {
|
||||
.id()
|
||||
.field("name", .string, .required)
|
||||
.field("value", .double, .required)
|
||||
.field("createdAt", .datetime)
|
||||
.field("updatedAt", .datetime)
|
||||
.field("createdAt", .string)
|
||||
.field("updatedAt", .string)
|
||||
.field(
|
||||
"projectID", .uuid, .required, .references(ProjectModel.schema, "id", onDelete: .cascade)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user