fluentmigrator icon indicating copy to clipboard operation
fluentmigrator copied to clipboard

Connectionless Journaling (create/log to VersionInfo)

Open 0xorial opened this issue 6 years ago • 3 comments

I am trying to generate sql script to apply to db. When I use connected mode everything works, but when I use cfg.NoConnection = true; VersionInfo table is not created. It seems there is a difference between ConnectionlessVersionLoader and VersionLoader. ConnectionlessVersionLoader never runs VersionMigration.

0xorial avatar Apr 17 '20 08:04 0xorial

@0xorial So I understand your issue:

  1. Greenfield deployment
  2. Database is created
  3. FluentMigrator has never run on this database
  4. Upon first run with FluentMigrator, you run it with cfg.NoConnection = true; because you want to generate a script that you can verify, and run manually? And this script doesn't generate the VersionLoader table?

If so, if you run it with a NoConnection = false on a local test db, does the VersionLoader work then?

jzabroski avatar Apr 18 '20 17:04 jzabroski

@jzabroski , thanks for your answer, it is exactly how you described. (one reason for me wanting to have an exact script is the fact we have to submit our migration scripts to dba team for approval :( )

0xorial avatar Apr 19 '20 07:04 0xorial

If you're using In-Process Runner, can you please post your Program.cs so I can see how it's configured. You might be running into an issue related to the ScanInBuilder API discussed here: https://github.com/fluentmigrator/fluentmigrator/issues/1062#issuecomment-616598419

jzabroski avatar Apr 21 '20 12:04 jzabroski