dradovic/MigSharp — Issue #36: Migration version number
Author: nicholassuter
Created: 2012-02-06 15:18:50+00:00
State: open

At the moment, the migration version number is calculated based on the class name. Wouldn't it be cleaner if it were an attribute of the MigrationExport class ? Something like :

[MigrationExport(Version=1, ModuleName = "myModule", Tag = "myTag")]
public class myMigration : IReversibleMigration
{
[...]
}

And rather than a long, version could be any type implementing IComparable and IComparer, being stored as a string in the database version table.