Skip to content

Commit

Permalink
Update github workflows to add multiple postgres dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Jul 30, 2024
1 parent f29eecd commit 28818b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:
env:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
POSTGRES_MULTIPLE_DATABASES: tests,drizzle

# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
volumes:
- ${{ github.workspace }}/scripts/pg-init-scripts:/docker-entrypoint-initdb.d

steps:
- name: checkout code repository
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
env:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
POSTGRES_MULTIPLE_DATABASES: tests,drizzle

# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
volumes:
- ${{ github.workspace }}/scripts/pg-init-scripts:/docker-entrypoint-initdb.d

strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-drizzle/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export type QueryForRelatedConnection<
DBQueryConfig<'many', false, Types['DrizzleRelationSchema'], Table>,
'orderBy' | 'limit' | 'offset' | 'columns' | 'extra' | 'with'
> & {
orderBy: ConnectionOrderBy | ((columns: Table['columns']) => ConnectionOrderBy);
orderBy?: ConnectionOrderBy | ((columns: Table['columns']) => ConnectionOrderBy);
} extends infer QueryConfig
? QueryConfig | ((args: Args, context: Types['Context']) => QueryConfig)
: never;
Expand All @@ -444,7 +444,7 @@ export type QueryForDrizzleConnection<
DBQueryConfig<'many', false, Types['DrizzleRelationSchema'], Table>,
'orderBy' | 'limit' | 'offset'
> & {
orderBy: ConnectionOrderBy | ((columns: Table['columns']) => ConnectionOrderBy);
orderBy?: ConnectionOrderBy | ((columns: Table['columns']) => ConnectionOrderBy);
};

export type ListRelation<T extends TableRelationalConfig> = {
Expand Down

0 comments on commit 28818b7

Please sign in to comment.