migrating-ravens / RavenMigrations

A small migrations framework to help you manage your RavenDB Instance.
MIT License
53 stars 24 forks source link

Allow migrations to produce additional commands #33

Closed dportzline83 closed 9 years ago

dportzline83 commented 9 years ago

Alter.Collection can be used now to add additional ICommandData to the Alter.Collection batch. This makes it so you can safely add new documents or make changes to additional documents and have it be part of the same batch / transaction.

This is a slight refactor of #28. This version maintains backwards compatibility by using a new method CollectionWithAdditionalCommands for the new behavior. Collection will still behave the same as before.

smerrell commented 9 years ago

:+1: I like the change over mine. I was thinking about the backwards compatibility issue when I opened my PR so this covers that.