Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove --skip-generate flag from prisma db push (removed in Pris…
…ma 7)

Prisma 7 removed the --skip-generate flag from 'prisma db push'. This caused
the testcontainers migration command to fail silently (tinyexec swallows the
error), resulting in empty databases and 'table does not exist' errors in tests.

Also added --url flag to pass the connection string directly to the CLI,
ensuring the correct URL is used regardless of config file resolution.

Co-Authored-By: Eric Allam <eallam@icloud.com>
  • Loading branch information
devin-ai-integration[bot] and ericallam committed Apr 15, 2026
commit f560b7b8df472a6f0edf02c2edbbe86d8dee653f
3 changes: 2 additions & 1 deletion internal-packages/testcontainers/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export async function createPostgresContainer(network: StartedNetwork) {
"push",
"--force-reset",
"--accept-data-loss",
"--skip-generate",
"--schema",
`${databasePath}/prisma/schema.prisma`,
"--url",
container.getConnectionUri(),
],
{
nodeOptions: {
Expand Down
Loading