2026-06-01 15:59:08 +03:30
|
|
|
using Meezi.Infrastructure.Data;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
2026-06-01 15:09:09 +03:30
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace Meezi.Infrastructure.Data.Migrations
|
|
|
|
|
{
|
2026-06-01 15:59:08 +03:30
|
|
|
[DbContext(typeof(AppDbContext))]
|
|
|
|
|
[Migration("20260601120000_AddCafeLocation")]
|
2026-06-01 15:09:09 +03:30
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|