Migrations are locked

#1

i’m using “adonis migration:run” to generate table in MySQL then have error is:

RuntimeException: Migrations are locked. Make sure you are not multiple migration scripts or delete adonis_schema_lock table manually
at Function.migrationsAreLocked (D:\Learn-adonisjs\web-adonisjs\node_modules@adonisjs\lucid\src\Exceptions\index.js:110:12)
at Migration._checkForLock (D:\Learn-adonisjs\web-adonisjs\node_modules@adonisjs\lucid\src\Migration\index.js:132:33)

I can’t fix issue above. Plaese help me or give me anything idea. Thank you so much.

0 Likes

#2

If it is possible, you can share the content of your migration files here.

0 Likes

#3

I had solve it. I had delete table “adonis_chema_lock” in MySQL and “adonis migration:run” had worked normally. Thank you.

2 Likes