Skip to content

Commit 1525e3f

Browse files
authored
Merge pull request #369 from snehaljha-sf/GAN_truncate_fix
fix: already migrate gan truncate
2 parents d69436b + 5e3c1b5 commit 1525e3f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/migration/globalautonumber.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ export class GlobalAutoNumberMigrationTool extends BaseMigrationTool implements
4646
}
4747

4848
public async truncate(): Promise<void> {
49-
// Perform pre-migration checks before truncation
50-
await this.performPreMigrationChecks();
49+
try {
50+
// Perform pre-migration checks before truncation
51+
await this.performPreMigrationChecks();
52+
} catch (error) {
53+
Logger.logVerbose(error);
54+
return;
55+
}
5156
this.globalAutoNumberSettings = await this.getAllGlobalAutoNumberSettings();
5257
if (this.globalAutoNumberSettings.length > 0) {
5358
await super.truncate(GlobalAutoNumberMigrationTool.OMNI_GLOBAL_AUTO_NUMBER_NAME);

0 commit comments

Comments
 (0)