diff --git a/cmds/src/create_admin_user.rs b/cmds/src/create_admin_user.rs index 6afea25c..23a5a49c 100644 --- a/cmds/src/create_admin_user.rs +++ b/cmds/src/create_admin_user.rs @@ -12,7 +12,7 @@ async fn main() { let email = args().nth(1).expect("no email given"); let iam = Iam::new(&env::var("IAM_URL").expect("IAM_URL is not set")); - let database = Database::connect("mysql://iam:secret@localhost:3306/iam").await; + let database = Database::connect("postgres://iam:secret@localhost:3306/iam").await; let id = 'id: { if let Ok(user) = User::login(&iam, &email, "test").await { diff --git a/cmds/src/create_iam_app.rs b/cmds/src/create_iam_app.rs index 5c3cd8a2..ed58ff1e 100644 --- a/cmds/src/create_iam_app.rs +++ b/cmds/src/create_iam_app.rs @@ -7,7 +7,7 @@ async fn main() { dotenv().ok(); let name = args().nth(1).expect("no name given"); - let database = Database::connect("mysql://iam:secret@localhost:3306/iam").await; + let database = Database::connect("postgres://iam:secret@localhost:3306/iam").await; let (id, secret) = create_app(&database, &name).await;