mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-04 21:52:12 +00:00
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
|
|
using Data.SeaHavenIndustries;
|
||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace Data.SeaHavenIndustries.Migrations
|
||
|
|
{
|
||
|
|
[DbContext(typeof(ApplicationDbContext))]
|
||
|
|
[Migration("20260720220000_AddVendorDirectoryDetails")]
|
||
|
|
public partial class AddVendorDirectoryDetails : Migration
|
||
|
|
{
|
||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "CompanyPhone",
|
||
|
|
table: "Vendors",
|
||
|
|
type: "nvarchar(max)",
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "GoogleMapsUrl",
|
||
|
|
table: "Vendors",
|
||
|
|
type: "nvarchar(max)",
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "Notes",
|
||
|
|
table: "Vendors",
|
||
|
|
type: "nvarchar(max)",
|
||
|
|
nullable: true);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.DropColumn(name: "CompanyPhone", table: "Vendors");
|
||
|
|
migrationBuilder.DropColumn(name: "GoogleMapsUrl", table: "Vendors");
|
||
|
|
migrationBuilder.DropColumn(name: "Notes", table: "Vendors");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|