Fix tests

This commit is contained in:
Chris Tsang 2022-05-09 14:44:12 +08:00
parent e0d7d2bc78
commit c466e46ae0
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ clap = { version = "^2.33.3" }
dotenv = { version = "^0.15" } dotenv = { version = "^0.15" }
async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] } async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] }
sea-orm-codegen = { version = "^0.7.0", path = "../sea-orm-codegen", optional = true } sea-orm-codegen = { version = "^0.7.0", path = "../sea-orm-codegen", optional = true }
sea-schema = { git = "https://github.com/SeaQL/sea-schema", branch = "remove-migration", default-features = false, features = [ sea-schema = { git = "https://github.com/SeaQL/sea-schema", branch = "master", default-features = false, features = [
"debug-print", "debug-print",
"sqlx-mysql", "sqlx-mysql",
"sqlx-sqlite", "sqlx-sqlite",

View File

@ -117,7 +117,7 @@ pub async fn run_generate_command(matches: &ArgMatches<'_>) -> Result<(), Box<dy
.collect() .collect()
} }
"sqlite" => { "sqlite" => {
use sea_schema::sqlite::SchemaDiscovery; use sea_schema::sqlite::discovery::SchemaDiscovery;
use sqlx::Sqlite; use sqlx::Sqlite;
let connection = connect::<Sqlite>(max_connections, url.as_str()).await?; let connection = connect::<Sqlite>(max_connections, url.as_str()).await?;