8

Resolved

mappings.bin not regenerated after deploying new version

description

Repro:
  1. Have a working orchard site
  2. Create a new build with one or more Migration methods that adds new properties to an existing Record class, and new database columns to the corresponding table via SchemaBuilder.AlterTable(..., t => t.AddColumn<decimal>("propName"))
  3. Deploy the new build
  4. Visit the site in browser, everything works fine, check the migrations table, the module reflects the latest migration version
  5. Open command line, run bin\Orchard.exe
  6. Execute recipe that imports data for the part with the new properties
  7. The new properties don't populate
But, if you erase mappings.bin and then re-run "bin\Orchard.exe recipes execute moduleName RecipeName", the import works and the new columns are populated in the db.

comments