remove bogus logic
db-migrate always runs a migration in a transaction. so no volume was created in case of a failure
This commit is contained in:
@@ -21,11 +21,6 @@ exports.up = async function(db) {
|
|||||||
const apps = await db.runSql('SELECT * FROM apps WHERE dataDir IS NOT NULL');
|
const apps = await db.runSql('SELECT * FROM apps WHERE dataDir IS NOT NULL');
|
||||||
|
|
||||||
for (const app of apps) {
|
for (const app of apps) {
|
||||||
if (app.storageVolumeId) {
|
|
||||||
console.log(`data-dir (${app.id}): app was migrated in 7.2.4`);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const allVolumes = await db.runSql('SELECT * FROM volumes');
|
const allVolumes = await db.runSql('SELECT * FROM volumes');
|
||||||
|
|
||||||
console.log(`data-dir (${app.id}): migrating data dir ${app.dataDir}`);
|
console.log(`data-dir (${app.id}): migrating data dir ${app.dataDir}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user