38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Marco.Pms.DataAccess.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Added_New_Parameter_In_Tenant_Table : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OfficeNumber",
|
|
table: "Tenants",
|
|
type: "longtext",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Tenants",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("b3466e83-7e11-464c-b93a-daf047838b26"),
|
|
column: "OfficeNumber",
|
|
value: null);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "OfficeNumber",
|
|
table: "Tenants");
|
|
}
|
|
}
|
|
}
|