Closed okurz closed 2 years ago
Alternative to https://github.com/Grinnz/Mojo-SQLite/pull/24
Thank you!
Fyi. Mojo::Pg
went for a slightly different solution, because just replacing 1
with 0
did not have the desired effect there. https://github.com/mojolicious/mojo-pg/commit/8b6e9b0828a548d4f8a837840495512d012c4cbe
We observed a problem where two services are accessing the same SQLite database and one of the processes would run into an error "DBD::SQLite::st execute failed: UNIQUE constraint failed: mojo_migrations.name". The problem is simple that the method "_active" already foresees to only check the version and only initializating the table within a transaction but the wrong parameter was passed :)
Verified within the scope of https://progress.opensuse.org/issues/108125 using the so called worker cacherservice for "openQA" with the following command for manual verification:
Reference: https://progress.opensuse.org/issues/108125