Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
210 stars 16 forks source link

Make new release for SurrealDB 1.4.0 #82

Closed johansmitsnl closed 4 months ago

johansmitsnl commented 5 months ago

Currently it only support Surrealdb 1.3.x and 1.4.0 is available.

matiu2 commented 4 months ago

This may be held up by https://github.com/surrealdb/surrealdb/issues/3871

I got it working locally with this Cargo.toml diff:

diff --git a/Cargo.toml b/Cargo.toml
index 40c2f0f..846cfef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ edition = "2021"
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

 [dependencies]
-chrono = "0.4.37"
+chrono = "0.4.38"
 chrono-human-duration = "0.1.1"
 clap = { version = "4.5.4", features = ["derive"] }
 cli-table = "0.4.7"
@@ -27,10 +27,10 @@ itertools = "0.12.1"
 names = { version = "0.14.0", default-features = false }
 regex = "1.10.4"
 rust-ini = "0.21.0"
-serde = { version = "1.0.197", features = ["derive"] }
-serde_json = "1.0.115"
+serde = { version = "1.0.198", features = ["derive"] }
+serde_json = "1.0.116"
 sqlparser = "0.45.0"
-surrealdb = { version = "1.4.0", features = ["protocol-http", "sql2"] }
+surrealdb = { git = "https://github.com/surrealdb/surrealdb", tag = "v1.4.0-beta.1", features = ["sql2", "protocol-http"] }
 tokio = { version = "1.37.0", features = ["macros"] }

 [dev-dependencies]

Along with:

 export RUSTFLAGS="--cfg surrealdb_unstable"
 cargo build --release
Odonno commented 4 months ago

Hi Johan,

v1.4.0 is now available.