Skip to content

Commit

Permalink
Try restructured sea-query dependency (SeaQL/sea-schema#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Feb 3, 2022
1 parent 603b0ef commit 6955f10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/rocket_example/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "migration"
path = "src/lib.rs"

[dependencies]
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "schema-manager", default-features = false, features = [ "migration", "debug-print" ] }
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "restructure-sea-query-dep", default-features = false, features = [ "migration", "debug-print" ] }
entity = { path = "../entity" }
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use entity::post::*;
use sea_schema::{migration::*, sea_query::*};
use sea_schema::migration::{
sea_query::{self, *},
*,
};

pub struct Migration;

Expand Down
2 changes: 1 addition & 1 deletion sea-orm-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ clap = { version = "^2.33.3" }
dotenv = { version = "^0.15" }
async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] }
sea-orm-codegen = { version = "^0.5.0", path = "../sea-orm-codegen" }
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "schema-manager", default-features = false, features = [
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "restructure-sea-query-dep", default-features = false, features = [
"debug-print",
"sqlx-mysql",
"sqlx-sqlite",
Expand Down
2 changes: 1 addition & 1 deletion sea-orm-cli/template/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ name = "migration"
path = "src/lib.rs"

[dependencies]
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "schema-manager", default-features = false, features = [ "migration", "debug-print" ] }
sea-schema = { git = "https://github.com/SeaQL/sea-schema.git", branch = "restructure-sea-query-dep", default-features = false, features = [ "migration", "debug-print" ] }
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use sea_schema::{migration::*, sea_query::*};
use sea_schema::migration::{
sea_query::{self, *},
*,
};

pub struct Migration;

Expand Down

0 comments on commit 6955f10

Please sign in to comment.