Skip to content

Commit

Permalink
Pass postgresEnabled in body not headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Sep 9, 2024
1 parent 3269cbf commit d4eda76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/plugin-client-drizzle/test/drizzle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
beforeAll(async () => {
await api.databases.createDatabase({
pathParams: { workspaceId: workspace, dbName: database },
body: { region, branchName: 'main' },
headers: { 'X-Features': 'feat-pgroll-migrations=1' }
body: { region, branchName: 'main', postgresEnabled: true }
});

await waitForReplication();
Expand Down
3 changes: 1 addition & 2 deletions test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ export async function setUpTestEnvironment(

const { databaseName: database } = await api.databases.createDatabase({
pathParams: { workspaceId: workspace, dbName: `sdk-integration-test-${prefix}-${id}` },
body: { region, defaultClusterID: clusterId },
headers: { 'X-Features': 'feat-pgroll-migrations=1' }
body: { region, defaultClusterID: clusterId, postgresEnabled: true }
});

const workspaceUrl = getHostUrl(host, 'workspaces').replace('{workspaceId}', workspace).replace('{region}', region);
Expand Down

0 comments on commit d4eda76

Please sign in to comment.