50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
|  | using Microsoft.EntityFrameworkCore.Migrations; | |||
|  | 
 | |||
|  | #nullable disable | |||
|  | 
 | |||
|  | namespace UbloxSC20.Migrations | |||
|  | { | |||
|  |     /// <inheritdoc /> | |||
|  |     public partial class payload : Migration | |||
|  |     { | |||
|  |         /// <inheritdoc /> | |||
|  |         protected override void Up(MigrationBuilder migrationBuilder) | |||
|  |         { | |||
|  |             migrationBuilder.RenameColumn( | |||
|  |                 name: "Week", | |||
|  |                 table: "NavigationModel", | |||
|  |                 newName: "freqId"); | |||
|  | 
 | |||
|  |             migrationBuilder.RenameColumn( | |||
|  |                 name: "Tow", | |||
|  |                 table: "NavigationModel", | |||
|  |                 newName: "SigId"); | |||
|  | 
 | |||
|  |             migrationBuilder.AddColumn<int>( | |||
|  |                 name: "GnssId", | |||
|  |                 table: "NavigationModel", | |||
|  |                 type: "int", | |||
|  |                 nullable: false, | |||
|  |                 defaultValue: 0); | |||
|  |         } | |||
|  | 
 | |||
|  |         /// <inheritdoc /> | |||
|  |         protected override void Down(MigrationBuilder migrationBuilder) | |||
|  |         { | |||
|  |             migrationBuilder.DropColumn( | |||
|  |                 name: "GnssId", | |||
|  |                 table: "NavigationModel"); | |||
|  | 
 | |||
|  |             migrationBuilder.RenameColumn( | |||
|  |                 name: "freqId", | |||
|  |                 table: "NavigationModel", | |||
|  |                 newName: "Week"); | |||
|  | 
 | |||
|  |             migrationBuilder.RenameColumn( | |||
|  |                 name: "SigId", | |||
|  |                 table: "NavigationModel", | |||
|  |                 newName: "Tow"); | |||
|  |         } | |||
|  |     } | |||
|  | } |