File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ impl MigrateArgs {
8585 let db_result = migrate_database ( & old_db, & new_db, self . dry_run ) . await ?;
8686 println ! ( "✓ Database: {}" , db_result. message) ;
8787
88+ // Reload database connection after copying the file
89+ if !self . dry_run && db_result. bytes_copied > 0 {
90+ os. database = crate :: database:: Database :: new ( ) . await ?;
91+ }
92+
8893 // Migrate settings
8994 let settings_result = migrate_settings ( & old_settings, & new_settings, self . dry_run ) . await ?;
9095 println ! ( "✓ Settings: {}" , settings_result. message) ;
@@ -96,9 +101,7 @@ impl MigrateArgs {
96101 }
97102
98103 if !self . dry_run {
99- os. database = crate :: database:: Database :: new ( ) . await ?;
100104 os. database . set_kiro_migration_completed ( ) ?;
101-
102105 println ! ( "\n ✓ Migration completed successfully!" ) ;
103106 } else {
104107 println ! ( "\n (Dry run - no changes made)" ) ;
You can’t perform that action at this time.
0 commit comments