r/programminghelp • u/Capable_Square7319 • 17d ago
JavaScript BEGINNER CODER: Stuck with a migrations error
Hi,
I'm working on an adonisjs project and I'm having issues with migrations. I don't think I'm using the wrong command. I'm doing:
node ace make:migration (migration name here)
Then:
node ace migration:run
My project is on github. Apologies the migrations folder is a little cluttered. The ones with issues are the "item" and "item_comments" ones:
https://github.com/Ajaz754/adonisjs-project-22-.git
The error is:
C:\Windows\System32\adonis22>node ace migration:run
❯ error database/migrations/1794008714673_alter_item_comments_table
[ error ] INSERT INTO "_knex_temp_alter555" SELECT * FROM "item_comments"; - no such table: main.item
Please correct me if I'm wrong but I thinks its saying my "item" table doesnt exist which doesnt make sense since its clearly my 'schema.ts'. It said the same error before for the "user" table aswell.
Any help would be much appreciated
TIA