using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AutobusApi.Infrastructure.Data.Migrations
{
///
public partial class AddDepartureAndArrivalAddressIdsToTicket : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "ArrivalAddressId",
schema: "domain",
table: "tickets",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "DepartureAddressId",
schema: "domain",
table: "tickets",
type: "integer",
nullable: false,
defaultValue: 0);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ArrivalAddressId",
schema: "domain",
table: "tickets");
migrationBuilder.DropColumn(
name: "DepartureAddressId",
schema: "domain",
table: "tickets");
}
}
}