0.2.0 cleaning script (#2403)
* Update cleaning script to run on old schema * Add boundaries parameter * Stop requesting data for each workspace/table * Stop checking same as seed if not requested * Minor update * Minor update * Minor update * Minor update * Minor update * Simplify result * Simplify result * Simplify result * Delete updates * Fix issues * Update logs * Remove throw when schema does not exist * Remove missing table in old schema * Remove boundaries parameter * Remove useless trycatch
This commit is contained in:
@@ -127,7 +127,8 @@ export class DataSourceService implements OnModuleInit, OnModuleDestroy {
|
||||
const schemaAlreadyExists = await queryRunner.hasSchema(schemaName);
|
||||
|
||||
if (!schemaAlreadyExists) {
|
||||
throw new Error(`Schema ${schemaName} does not exist`);
|
||||
await queryRunner.release();
|
||||
return;
|
||||
}
|
||||
|
||||
await queryRunner.dropSchema(schemaName, true, true);
|
||||
|
||||
Reference in New Issue
Block a user