39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace Meezi.Infrastructure.Data.Migrations
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
public partial class AddCafeLocation : Migration
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.AddColumn<double>(
|
||
|
|
name: "Latitude",
|
||
|
|
table: "Cafes",
|
||
|
|
type: "double precision",
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<double>(
|
||
|
|
name: "Longitude",
|
||
|
|
table: "Cafes",
|
||
|
|
type: "double precision",
|
||
|
|
nullable: true);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "Latitude",
|
||
|
|
table: "Cafes");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "Longitude",
|
||
|
|
table: "Cafes");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|