Skip to content

Commit

Permalink
Merge pull request #791 from dcSpark/nico/bump_db_removal
Browse files Browse the repository at this point in the history
Nico/bump db removal
  • Loading branch information
nicarq authored Jan 10, 2025
2 parents f842a60 + 87b5b39 commit 69f9208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ pub fn save_qr_data_to_local_image(qr_data: QRSetupData, name: String) {
}

pub fn print_qr_data_to_console(qr_data: QRSetupData, node_profile: &str) {
let version = env!("CARGO_PKG_VERSION");
let api_key = std::env::var("API_V2_KEY").unwrap_or_else(|_| "Not set".to_string());
// Print qr_data to console in a beautiful way
println!("Please scan the QR code below with your phone to register this device:");
println!("---------------------------------------------------------------");
println!("Node version: {}", version);
println!("API v2 key (Bearer): {}", api_key);
println!("Node registration code: {}", qr_data.registration_code);
println!("Node profile: {}", node_profile);
println!("Node identity type: {}", qr_data.identity_type);
Expand Down
2 changes: 1 addition & 1 deletion shinkai-libs/shinkai-sqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ impl SqliteManager {
// Method to set the version and determine if a global reset is needed
pub fn set_version(&self, version: &str) -> Result<()> {
// Note: add breaking versions here as needed
let breaking_versions = ["0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4"];
let breaking_versions = ["0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5"];

let needs_global_reset = self.get_version().map_or(false, |(current_version, _)| {
breaking_versions
Expand Down

0 comments on commit 69f9208

Please sign in to comment.