rdagumampan / yuniql

Free and open source schema versioning and database migration made natively with .NET/6. NEW THIS MAY 2022! v1.3.15 released!
https://yuniql.io
Apache License 2.0
417 stars 63 forks source link

Failed to execute run function. This NpgsqlTransaction has completed; it is no longer usable #293

Open avengerovsky opened 1 year ago

avengerovsky commented 1 year ago

The migration (277) has been working successfully when it was running 'on top' of already installed migration 276. However, when we attempt to run the full stack of migrations we get an error message.

Here is the last section of the log:

01 02:02:11Z   Completed migration to version /builds/Db/v0.0276 in 48 ms 3403INF   2023-02-01 02:02:11Z   Found 13 script files on /builds/Db 3404  + odl_populate_wsm.sql 3405  + odl_fund_stats.sql 3406  + odl_populate_sa.sql 3407  + mod-277.sql 3408  + odl_populate_mvi.sql 3409  + odl_populate_mfv.sql 3410  + odl_populate_mfi.sql 3411  + odl_pop_precalc.sql 3412  + odl_populate_spvalue_wim.sql 3413  + odl_populate_mce.sql 3414  + mod-277-fund_legal_name.sql 3415  + odl_populate_met.sql 3416  + odl_populate_wcm.sql 3417 ERR   2023-02-01 02:02:11Z   Failed to execute run function. This NpgsqlTransaction has completed; it is no longer usable.