WIP fixing dock problems
This commit is contained in:
parent
5262e8c77e
commit
ffcad4e4e2
12 changed files with 234 additions and 137 deletions
|
@ -12,7 +12,6 @@ use crate::connection::Connection;
|
|||
impl Connection {
|
||||
pub fn migrate(&self, domain: &'static str, migrations: &[&'static str]) -> Result<()> {
|
||||
self.with_savepoint("migrating", || {
|
||||
println!("Processing domain");
|
||||
// Setup the migrations table unconditionally
|
||||
self.exec(indoc! {"
|
||||
CREATE TABLE IF NOT EXISTS migrations (
|
||||
|
@ -44,13 +43,11 @@ impl Connection {
|
|||
{}", domain, index, completed_migration, migration}));
|
||||
} else {
|
||||
// Migration already run. Continue
|
||||
println!("Migration already run");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
self.exec(migration)?()?;
|
||||
println!("Ran migration");
|
||||
store_completed_migration((domain, index, *migration))?;
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,6 @@ impl<M: Migrator> ThreadSafeConnectionBuilder<M> {
|
|||
.with_savepoint("thread_safe_multi_migration", || M::migrate(connection));
|
||||
|
||||
if migration_result.is_ok() {
|
||||
println!("Migration succeded");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue