OpenSource » Database Migrator » Legacy Migrator
Clone URL:  

Migrator Added begin and end migrations

Changeset 4dcb3a3b2048

Parent 8a9876c93d0e

by danielpupek

Changes to 3 files · Browse files at 4dcb3a3b2048 Showing diff from parent 8a9876c93d0e Diff from another changeset...

Change 1 of 1 Show Entire File app/​core/​MigrationBeginAttribute.cs Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@ -0,0 +1,21 @@
+using Migrator.Loggers; +using Migrator.Providers; +using System; +using System.Collections; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Text.RegularExpressions; +using System.Collections.Generic; +using System.Data.Linq; +using System.Linq; + +namespace Migrator +{ + /// <summary> + /// Attribute assigned to the migration that is run before ALL migrations + /// </summary> + public class MigrationBeginAttribute : Attribute + { + + } +}
Change 1 of 1 Show Entire File app/​core/​MigrationEndAttribute.cs Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@ -0,0 +1,21 @@
+using Migrator.Loggers; +using Migrator.Providers; +using System; +using System.Collections; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Text.RegularExpressions; +using System.Collections.Generic; +using System.Data.Linq; +using System.Linq; + +namespace Migrator +{ + /// <summary> + /// Migration run after ALL other migrations + /// </summary> + public class MigrationEndAttribute : Attribute + { + + } +}
Change 1 of 1 Show Entire File app/​core/​NullMigration.cs Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@@ -0,0 +1,23 @@
+using Migrator.Providers; +using Migrator.Loggers; +using System.Collections.Generic; + +namespace Migrator +{ + /// <summary> + /// DOES NOTHING + /// </summary> + public class NullMigration : Migration + { + + public override void Up() + { + + } + + public override void Down() + { + + } + } +}