Forge fsql v1.3.0: Enhanced Schema Inspection and Better Onboarding
New commands for migrations and indexes, improved error handling for missing environment variables, and an updated setup process.
This release adds new inspection commands and improves error reporting during setup.
New Inspection Commands
Version 1.3.0 adds three new commands for database exploration:
.migrations: Lists applied migrations..indexes: Lists all defined indexes..database: Shows the current database connection.
These join the existing suite of commands including .tables, .describe, and .schema.
Improved Onboarding and Error Handling
If FORGE_SQL_WEBTRIGGER is missing from your .env file, fsql now provides a descriptive error message with a link to the documentation and a prompt to rerun fsql-setup to resolve the configuration.
How to Upgrade
To upgrade, update the npm package and run the setup command in your project:
# Upgrade the CLI globally
npm install -g forge-fsql@latest
# Run setup in your project to update the web trigger handler
fsql-setup
The fsql-setup command updates src/fsql.ts and redeploys the project with the latest runtime changes.
Feedback and issues can be reported on GitHub.