mmkal / pgkit

PostgreSQL🤝TypeScript monorepo. SQL client/admin UI/smart migrator/type generator/schema inspector

Home Page:https://pgkit.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migration locking

ssukienn opened this issue · comments

Hey, very nice tool! I'm considering it to use in a project. But I have a question and could not find an answer anywhere in the docs.

Does this migrator locks migration process if it is started on given database? I am reffering to services that will manage migrations on their own but there might be many replicas for them. Only one can run migrations at any given time and rest should await until lock is released. And do not repeat same migrations.

Liquibase is doing it by special lock table.

How do you deal with it here?

I've checked it on my own. I can see advisory locks