[BUG]: drizzle-kit introspect fails on required param that is defined
Problem
What version of `drizzle-orm` are you using? 0.32.1 What version of `drizzle-kit` are you using? 0.23.1 Describe the Bug `drizzle-kit introspect` stops introspection for required param, even though it is defined. Affected version `0.23.1` Working local version: `0.22.8` (did not test other versions) introspect output [code block] config; [code block] env: [code block] env is correct and tested, config works with `0.22.8` Expected behavior Introspect running normally on version `0.22.8`: [code block] Environment & setup OS: `Ubuntu 22.04.4 LTS (Jammy Jellyfish)` PostgreSQL: `16.3 on x86_64-pc-linux-gnu`
Error Output
Error Please provide required params:
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Upgrade drizzle-kit to fix introspection bug
The introspection failure in drizzle-kit version 0.23.1 is likely due to a regression or bug introduced in that version, which affects the handling of required parameters during the introspection process. This issue does not occur in version 0.22.8, indicating that the newer version has an unresolved issue with parameter validation.
Awaiting Verification
Be the first to verify this fix
- 1
Backup your project
Before making any changes, ensure you have a backup of your project files and dependencies to prevent data loss.
bashgit commit -am 'Backup before upgrading drizzle-kit' - 2
Upgrade drizzle-kit
Upgrade drizzle-kit to the latest version to resolve the introspection issue. Run the following command to update the package.
bashnpm install drizzle-kit@latest - 3
Test the introspection
After upgrading, run the introspection command again to verify that the required parameters are now being recognized correctly.
bashnpx drizzle-kit introspect - 4
Check for breaking changes
Review the release notes for drizzle-kit to identify any breaking changes that may affect your project. Adjust your code accordingly.
texthttps://github.com/drizzle-team/drizzle-kit/releases - 5
Rollback if necessary
If the issue persists after upgrading, consider rolling back to the last known working version (0.22.8) using the command below.
bashnpm install drizzle-kit@0.22.8
Validation
Confirm that the introspection command runs successfully without errors related to required parameters. Check the output for expected results and ensure that your application functions correctly with the updated drizzle-kit version.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep