Migrations

Lucid migrations in this starter kit. Convention here is **edit the existing `create_<table>_table.ts` migration + run `migration:fresh`**, not layering `alter_table` migrations on top — this is a starter kit, no production data. Migration paths are declared per module in `config/database.ts`. `app/core/database/schema.ts` is auto-generated but **committed** (models import from it, so ace cannot boot without it). Use when adding a column, adjusting an index, bootstrapping a new module's DB, or debugging migration issues. Trigger on: "add column", "migration", "alter table", "create table", "schema".

filipebraida b06090d 7.4 KB Updated

File contents

filipebraida/adonisjs-starter-kit/tree/main/packages/skills/migrations commit b06090de02

Frequently asked questions

npx skillmds@latest add filipebraida/migrations