Skip to content

Commit

Permalink
fix(cli): dont connect to default keyspace on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Oct 20, 2023
1 parent bb24c4b commit 2113b1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scyllax-cli/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2113b1a

Please sign in to comment.