Skip to content

Commit

Permalink
Change checkpoint's table DDL, set column measured_by_atum_agent to h…
Browse files Browse the repository at this point in the history
…ave NOT NULL constraint with DEFAULT FALSE #242

Made changes:
1. Changed the value of measured_by_atum_agent in Checkpoints DDL to NOT NULL.
2. Changed the value of measured_by_atum_agent in Checkpoints DDL to DEFAULT FALSE.
3. Changed the value of measured_by_atum_agent in Write Checkpoints to DEFAULT FALSE.
4. Changed the tests to accommodate this change, it has been tested successfully.
5. Made changes to the WriteCheckpoint.scala files.
  • Loading branch information
ABLL526 committed Feb 21, 2025
1 parent 9b43abc commit b02fdc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class WriteCheckpoint(implicit schema: DBSchema, dbEngine: DoobieEngine[Task])
fr"${values.processStartTime}",
fr"${values.processEndTime}",
fr"${values.measurements.toList.map(_.asJson)}",
fr"${values.measuredByAtumAgent}",
fr"${values.author}"
fr"${values.author}",
fr"${values.measuredByAtumAgent}"
)
)
with StandardStatusHandling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class WriteCheckpointV2(implicit schema: DBSchema, dbEngine: DoobieEngine[Task])
fr"${args.checkpointV2DTO.processStartTime}",
fr"${args.checkpointV2DTO.processEndTime}",
fr"${args.checkpointV2DTO.measurements.toList.map(_.asJson)}",
fr"${args.checkpointV2DTO.measuredByAtumAgent}",
fr"${args.checkpointV2DTO.author}"
fr"${args.checkpointV2DTO.author}",
fr"${args.checkpointV2DTO.measuredByAtumAgent}"
),
Some("write_checkpoint")
)
Expand Down

0 comments on commit b02fdc0

Please sign in to comment.