gehgassi_app/gehGassiApp/gehGassiApp.Data/Migrations/20221026144307_WalksAddedEx.cs

62 lines
1.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassiApp.Data.Migrations
{
public partial class WalksAddedEx : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "PickupAddressLat",
table: "Walks",
type: "REAL",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<double>(
name: "PickupAddressLng",
table: "Walks",
type: "REAL",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<double>(
name: "ReturnAddressLat",
table: "Walks",
type: "REAL",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<double>(
name: "ReturnAddressLng",
table: "Walks",
type: "REAL",
nullable: false,
defaultValue: 0.0);
System.Diagnostics.Debug.WriteLine($"Migration WalksAddedEx done");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PickupAddressLat",
table: "Walks");
migrationBuilder.DropColumn(
name: "PickupAddressLng",
table: "Walks");
migrationBuilder.DropColumn(
name: "ReturnAddressLat",
table: "Walks");
migrationBuilder.DropColumn(
name: "ReturnAddressLng",
table: "Walks");
}
}
}