Skip to content

Commit

Permalink
update clean check
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Mar 6, 2024
1 parent ade1290 commit fb0fab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store-sync/src/postgres/cleanDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const schemata = pgSchema("information_schema").table("schemata", {
});

function isMudSchemaName(schemaName: string): boolean {
// address-prefixed schemas like {address}__{namespace} used by decoded postgres tables
// each store address has its own schema used by decoded postgres tables
// optional prefix for schemas created in tests
if (/(^|__)0x[0-9a-f]{40}__/i.test(schemaName)) {
if (/(^|__)0x[0-9a-f]{40}$/i.test(schemaName)) {
return true;
}
// schema for internal tables
Expand Down

0 comments on commit fb0fab1

Please sign in to comment.