Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kb1ns committed Dec 13, 2023
1 parent 50e41e2 commit 024c0ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.7.0-rc.7
# v0.7.0-rc.8

- online test of migration

Expand Down
2 changes: 1 addition & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async-trait = "0.1.63"
serde_json = "1.0"
rocksdb = "0.21"
flate2 = { version = "1.0", features = ["zlib"], default-features = false }
sqlx = { version = "0.6.2", features = ["mysql", "decimal", "chrono", "runtime-tokio-rustls"], optional = true }
sqlx = { version = "0.6.2", features = ["mysql", "decimal", "chrono", "runtime-tokio-rustls", "time"], optional = true }
tokio = { version = "1", features = ["full"], optional = true }
toml = "0.5"
lazy_static = "1.4"
Expand Down
4 changes: 2 additions & 2 deletions engine/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ mod v1_to_v2 {
.map(|row: sqlx::mysql::MySqlRow| -> (u64, Command, u8) {
let mut cmd: Command = serde_json::from_str(row.get("f_cmd")).unwrap();
cmd.timestamp = Some(
row.get::<sqlx::types::chrono::NaiveDateTime, &str>("f_timestamp")
.timestamp_millis() as u64,
row.get::<sqlx::types::time::OffsetDateTime, &str>("f_timestamp")
.unix_timestamp() as u64,
);
(row.get("f_id"), cmd, row.get("f_status"))
})
Expand Down

0 comments on commit 024c0ea

Please sign in to comment.