adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.08k stars 195 forks source link

V6: Migration process not finish when using postgres with replicas #1045

Closed GustavoSabel closed 4 months ago

GustavoSabel commented 4 months ago

Package version

21.1.0

Describe the bug

I have a project using AdonisV6 with PostgreSQL, configured with replicas. When I run the migrations, all migrations execute correctly, but the process never finishes.

I recently migrated my project from V5 to V6, and I didn't encounter this issue in V5.

To reproduce the problem, follow the steps in the project's README.

Reproduction repo

https://github.com/GustavoSabel/issue-adonisjs6-migration-freezing-replicas

thetutlage commented 4 months ago

Thanks for sharing a reproduction. I have fixed the issue and will cut a release now

thetutlage commented 4 months ago

https://github.com/adonisjs/lucid/releases/tag/v21.1.1