Closed dbernheisel closed 5 months ago
Hi @dbernheisel! Sorry for a delay in my response.
I was unable to reproduce the issue using the latest version. However, with version 0.1.6, I did observe the incorrect danger with your example migration. It seems that this PR has already fixed the problem: #24
Can you update excellent_migrations
to the newest version (0.1.8) and let me know if it works fine for you?
yep! Sorry for the noise. Indeed is fixed on 0.1.8
My repo is configured to use the pg advisory lock strategy for locking migrations across nodes, which does not use a database transaction, and when I assure ExcellentMigrations that it's ok to not use the migration lock, and I'm creating an index concurrently, it still complains about not disabling the ddl transaction even though I have.
I traced it to this case statement that has a catchall clause to add the DDL Transaction danger, which seems incorrect.
Here's an example setup: