Skip to content

Commit ca17a11

Browse files
committed
fix(tests): cast onboardingState to jsonb in migration test
- Updated the SQL query in the onboarding migration test to explicitly cast the onboardingState to jsonb, ensuring proper data type handling during the update process.
1 parent e72e498 commit ca17a11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/backend/prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const postMigration = async (sql: Sql, ctx: Awaited<ReturnType<typeof pre
2929
};
3030
await sql`
3131
UPDATE "Project"
32-
SET "onboardingState" = ${sql.json(onboardingState)}
32+
SET "onboardingState" = ${sql.json(onboardingState)}::jsonb
3333
WHERE "id" = ${ctx.projectId}
3434
`;
3535

0 commit comments

Comments
 (0)