📜 ⬆️ ⬇️

Database Migrations for .NET

Good evening!

Version 2.0 of the tool for database versioning migration - ECM7.Migrator has been released Recently, the topic of version change in the database structure was raised here. Among the ready-made solutions for database migration (for .NET projects), the ECM7.Migrator project was mentioned there, of which I am one of the authors.

Yesterday we finally released version 2.0. You can get the new version on the project page in google code and in the nuget package gallery .
')

WTF


ECM7.Migrator is a fork of the Migrator.NET project, which appeared 2 years ago and now lives an independent life.

The main idea - database changes are written in the code using a special framework. All changes are in special classes - migrations. Each migration has a number and can be performed both forward (applying changes) and backward (rolling back changes). Thus, from any version of the database you can get any other.

The migrator also contains tools for performing migrations: a console application and tasks for NAnt / MSBuild.

Read more about the migrator here .

Version 2.0


By version 2.0, we walked more than six months. During this time a lot of work has been done. Here is a list of major changes:


Ps.


When a year and a half ago I wrote a topic about the release of the first version of the migrator, they zaminusovali him (I did not fully understand why). Perhaps now will be the same, but it does not matter.

We use the migrator in our projects on the main job and we noticed that the new version is much better than the previous ones. Most of my friends who have tried the migrator from my source already reuse it themselves in other projects and claim that this is the only way to work with the database during development that they like.

We already got what we wanted. If the topic is again zaminusyut - nothing will change. If, thanks to this topic, someone discovers a new way of working with the database, we will be very happy. I will also be happy to answer any of your questions regarding the migrator.

Thanks for attention!

Source: https://habr.com/ru/post/124578/


All Articles