Skip to content

Commit

Permalink
site_id can't be null on clock tables anymore (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn authored Jan 1, 2024
1 parent da71b51 commit 45cde47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/corrosion/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async fn process_cli(cli: Cli) -> eyre::Result<()> {

for table in tables {
let n = conn.execute(
&format!("UPDATE \"{table}\" SET site_id = NULL WHERE site_id = ?"),
&format!("UPDATE \"{table}\" SET site_id = 0 WHERE site_id = ?"),
[ordinal],
)?;
info!("Updated {n} rows in {table}");
Expand Down

0 comments on commit 45cde47

Please sign in to comment.