using Microsoft.EntityFrameworkCore.Migrations; using NetTopologySuite.Geometries; #nullable disable namespace gehGassi.Persistence.Migrations { public partial class NewsLocationAdded : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Lat", table: "News"); migrationBuilder.DropColumn( name: "Lng", table: "News"); migrationBuilder.AddColumn( name: "Location", table: "News", type: "geography", nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Location", table: "News"); migrationBuilder.AddColumn( name: "Lat", table: "News", type: "float", nullable: false, defaultValue: 0.0); migrationBuilder.AddColumn( name: "Lng", table: "News", type: "float", nullable: false, defaultValue: 0.0); } } }