From 2113b1ad3a7b44893aabe404956370f8beddbdcc Mon Sep 17 00:00:00 2001 From: Carter Himmel Date: Thu, 19 Oct 2023 22:59:35 -0600 Subject: [PATCH] fix(cli): dont connect to default keyspace on init --- scyllax-cli/src/migrate.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scyllax-cli/src/migrate.rs b/scyllax-cli/src/migrate.rs index 18f4b10..c024956 100644 --- a/scyllax-cli/src/migrate.rs +++ b/scyllax-cli/src/migrate.rs @@ -132,11 +132,7 @@ create table if not exists scyllax_migrations.migration ( primary key (bucket, version) );"#; - let session = create_session( - connect_opts.scylla_nodes.split(','), - Some(connect_opts.keyspace), - ) - .await?; + let session = create_session(connect_opts.scylla_nodes.split(','), None::<&str>).await?; for query in [create_keyspace, create_table] { let prepared_query = Query::new(query);