diff --git a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js index bce54a4c95..8164243cb4 100644 --- a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js +++ b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js @@ -981,6 +981,12 @@ export class PostgresStorageAdapter { } else { return count; } + }).catch((error) => { + if (error.code === PostgresRelationDoesNotExistError) { + // Don't delete anything if doesn't exist + } else { + throw error; + } }); } // Return value not currently well specified.