@@ -6,22 +6,22 @@ namespace Domain.Data.FluentMigrator
6
6
{
7
7
public class KnownMigrationAttribute : MigrationAttribute
8
8
{
9
- public KnownMigrationAttribute ( string author , string jiraIssueOrBranchName , Type migrationType , int year , int month , int day , int hour , int minute )
10
- : base ( CalculateValue ( jiraIssueOrBranchName . GetHashCode ( ) , year , month , day , hour , minute ) , GenerateDescription ( author , migrationType ) )
9
+ public KnownMigrationAttribute ( string author , string issueName , Type migrationType , int year , int month , int day , int hour , int minute )
10
+ : base ( CalculateValue ( issueName . GetHashCode ( ) , year , month , day , hour , minute ) , GenerateDescription ( author , issueName , migrationType ) )
11
11
{
12
12
Author = author ;
13
13
}
14
14
15
15
public string Author { get ; private set ; }
16
16
17
- private static string GenerateDescription ( string author , Type migrationType )
17
+ private static string GenerateDescription ( string author , string issueName , Type migrationType )
18
18
{
19
- return $ "Author:{ author } , Migration:{ migrationType . Name } ";
19
+ return $ "Author:{ author } , Issue: { issueName } , Migration:{ migrationType . Name } ";
20
20
}
21
21
22
- private static long CalculateValue ( int jiraIssueOrBranchNameHash , int year , int month , int day , int hour , int minute )
22
+ private static long CalculateValue ( int issueName , int year , int month , int day , int hour , int minute )
23
23
{
24
- return jiraIssueOrBranchNameHash * 1000000000000L + year * 100000000L + month * 1000000L + day * 10000L + hour * 100L + minute ;
24
+ return issueName * 1000000000000L + year * 100000000L + month * 1000000L + day * 10000L + hour * 100L + minute ;
25
25
}
26
26
}
27
27
}
0 commit comments