Skip to content

Commit 5ef6b1d

Browse files
authored
Merge branch 'alpha' into idempotency
2 parents 222fa3d + 5e363ea commit 5ef6b1d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const PostgresRelationDoesNotExistError = '42P01';
1515
const PostgresDuplicateRelationError = '42P07';
1616
const PostgresDuplicateColumnError = '42701';
1717
const PostgresMissingColumnError = '42703';
18-
const PostgresDuplicateObjectError = '42710';
1918
const PostgresUniqueIndexViolationError = '23505';
2019
const logger = require('../../../logger');
2120

@@ -906,15 +905,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
906905
'CREATE TABLE IF NOT EXISTS "_SCHEMA" ( "className" varChar(120), "schema" jsonb, "isParseClass" bool, PRIMARY KEY ("className") )'
907906
)
908907
.catch(error => {
909-
if (
910-
error.code === PostgresDuplicateRelationError ||
911-
error.code === PostgresUniqueIndexViolationError ||
912-
error.code === PostgresDuplicateObjectError
913-
) {
914-
// Table already exists, must have been created by a different request. Ignore error.
915-
} else {
916-
throw error;
917-
}
908+
throw error;
918909
});
919910
}
920911

0 commit comments

Comments
 (0)