File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
DigitalLearningSolutions.Data.Migrations Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ namespace DigitalLearningSolutions . Data . Migrations
2+ {
3+ using FluentMigrator ;
4+ [ Migration ( 202507221424 ) ]
5+ public class AddNewColumnsInSelfAssessments : Migration
6+ {
7+ public override void Up ( )
8+ {
9+ Alter . Table ( "SelfAssessments" )
10+ . AddColumn ( "RetirementDate" ) . AsDateTime ( ) . Nullable ( )
11+ . AddColumn ( "EnrolmentCutoffDate" ) . AsDateTime ( ) . Nullable ( )
12+ . AddColumn ( "RetirementReason" ) . AsString ( 2000 ) . Nullable ( ) ;
13+ }
14+
15+ public override void Down ( )
16+ {
17+ Delete . Column ( "RetirementDate" ) . FromTable ( "SelfAssessments" ) ;
18+ Delete . Column ( "EnrolmentCutoffDate" ) . FromTable ( "SelfAssessments" ) ;
19+ Delete . Column ( "RetirementReason" ) . FromTable ( "SelfAssessments" ) ;
20+ }
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments