Skip to content

Commit

Permalink
Patch Deps + Index Existence Check (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftp authored Jun 11, 2024
1 parent 61b6126 commit 594f569
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/user_database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type UserDatabaseName = ValuesOf<typeof UserDatabaseName>;

export const schemaExistsQuery = `SELECT EXISTS (SELECT FROM information_schema.schemata WHERE schema_name = 'dbos')`;
export const txnOutputTableExistsQuery = `SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema = 'dbos' AND table_name = 'transaction_outputs')`;
export const txnOutputIndexExistsQuery = `SELECT EXISTS (SELECT FROM pg_indexes WHERE schemaname='dbos' AND tablename = 'transaction_outputs' AND indexname = 'transaction_outputs_idx')`;
export const txnOutputIndexExistsQuery = `SELECT EXISTS (SELECT FROM pg_indexes WHERE schemaname='dbos' AND tablename = 'transaction_outputs' AND indexname = 'transaction_outputs_created_at_index')`;

interface ExistenceCheck {
exists: boolean;
Expand Down

0 comments on commit 594f569

Please sign in to comment.