using Microsoft.EntityFrameworkCore.Migrations; namespace AsbCloudDb.Migrations { public partial class Rename_WellOperation_WellDepth_to_WellDepthEnd : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "depth", table: "t_well_operation", newName: "depth_end"); migrationBuilder.RenameColumn( name: "date", table: "t_well_operation", newName: "date_start"); migrationBuilder.RenameIndex( name: "IX_t_well_operation_depth", table: "t_well_operation", newName: "IX_t_well_operation_depth_end"); migrationBuilder.RenameIndex( name: "IX_t_well_operation_date", table: "t_well_operation", newName: "IX_t_well_operation_date_start"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "depth_end", table: "t_well_operation", newName: "depth"); migrationBuilder.RenameColumn( name: "date_start", table: "t_well_operation", newName: "date"); migrationBuilder.RenameIndex( name: "IX_t_well_operation_depth_end", table: "t_well_operation", newName: "IX_t_well_operation_depth"); migrationBuilder.RenameIndex( name: "IX_t_well_operation_date_start", table: "t_well_operation", newName: "IX_t_well_operation_date"); } } }