@@ -160,7 +160,6 @@ fn migrate(
160160 // with the already applied ones stored in the state. This will throw an error if the
161161 // two sets of migrations don't agree, for example if a new migration has been added
162162 // in between two existing ones.
163− let current_migration = state::current_migration(db)?;
164163 let remaining_migrations = state::remaining_migrations(db, migrations)?;
165164 if remaining_migrations.is_empty() {
166165 println!("No migrations left to apply");
@@ -252,27 +251,14 @@ fn migrate(
252251 state.in_progress(remaining_migrations);
253252 state.save(db).context("failed to save in-progress state")?;
254253
255− // If we started from a blank slate, we can finish the migration immediately
256− if current_migration.is_none() {
257− println!("Automatically completing migrations\n");
258− complete(db, state).context("failed to automatically complete migrations")?;
259−
260− println!("Migrations complete:");
261− println!(
262− " - Run '{}' from your application to use the latest schema",
263− schema_query_for_migration(&target_migration)
264− );
265− } else {
266− println!("Migrations have been applied and the new schema is ready for use:");
267− println!(
268− " - Run '{}' from your application to use the latest schema",
269− schema_query_for_migration(&target_migration)
270− );
271− println!(
272− " - Run 'reshape complete' once your application has been updated and the previous schema is no longer in use"
273− );
274− }
275−
254+ println!("Migrations have been applied and the new schema is ready for use:");
255+ println!(
256+ " - Run '{}' from your application to use the latest schema",
257+ schema_query_for_migration(&target_migration)
258+ );
259+ println!(
260+ " - Run 'reshape complete' once your application has been updated and the previous schema is no longer in use"
261+ );
276262 Ok(())
277263}
278264