# Lucid v22\.5\.0 Release: New DB Commands, Column Alias Prefix, Custom Paginator Page Name, and Multiple Fixes

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/bf0e2b28-e286-4949-9335-938fbe815149
Source release or documentation date : 2026-11-19T06:56:04.000Z
Category : release | Developer impact : high
Affected packages : @adonisjs/lucid

The Lucid ORM v22\.5\.0 release introduces new CLI commands \`db:create\` and \`db:drop\` to create and drop databases, a \`columnAliasPrefix\` static property for models to handle column alias conflicts, and support for custom paginator page query parameter names\. It also includes various bug fixes related to migrations, transactions, schema generation, preload performance, and query building\. Additionally, some commands now accept a \`\-\-force\` flag to overwrite files, and internal APIs like \`Adapter\.db\` and \`SeedsRunner\` are exposed for extensibility\.

## What this means for your code

Developers can now manage databases directly via CLI commands, customize pagination query parameters, and avoid column alias conflicts by setting \`columnAliasPrefix\` on models\. Bug fixes improve reliability of migrations, transactions \(including isolation levels\), schema generation, and preload queries\. The \`\-\-force\` flag on make commands helps overwrite existing files safely\. Extending Lucid for multi\-tenancy or other advanced use cases is facilitated by exposing \`Adapter\.db\` and \`SeedsRunner\`\. Some internal API changes \(e\.g\., removal of \`$columns\` from \`ModelAttributes\`\) may require minor code adjustments\.

## Suggested actions

- Use \`node ace db:create\` and \`node ace db:drop\` to manage databases from CLI\.
- Set \`static columnAliasPrefix\` on models to resolve column alias conflicts\.
- Pass a custom page query parameter name as the third argument to \`paginate\(\)\` if needed\.
- Use \`\-\-force\` flag with \`make:\*\` commands to overwrite existing files\.
- Review code using \`$columns\` in model attributes and update accordingly\.
- Test transactions with isolation levels to handle possible serialization failures\.
- Consider extending Lucid using the now exposed \`Adapter\.db\` and \`SeedsRunner\` APIs\.

## Original sources

- [Add db:create and db:drop, columnAliasPrefix, a custom paginator page name, and fixes for migrations, transactions and schema:generate](https://github.com/adonisjs/lucid/releases/tag/v22.5.0)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
