using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ApiTools.Database.Migrations.Migrations
{
///
public partial class UpdateSmsSetting1009 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_SmsSettingAccess_Channel_ChannelId",
table: "SmsSettingAccess");
migrationBuilder.DropIndex(
name: "IX_SmsSettingAccess_ChannelId",
table: "SmsSettingAccess");
migrationBuilder.DropColumn(
name: "ChannelId",
table: "SmsSettingAccess");
migrationBuilder.AddColumn(
name: "SignName",
table: "SmsSettingAccess",
type: "nvarchar(max)",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SignName",
table: "SmsSettingAccess");
migrationBuilder.AddColumn(
name: "ChannelId",
table: "SmsSettingAccess",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_SmsSettingAccess_ChannelId",
table: "SmsSettingAccess",
column: "ChannelId");
migrationBuilder.AddForeignKey(
name: "FK_SmsSettingAccess_Channel_ChannelId",
table: "SmsSettingAccess",
column: "ChannelId",
principalTable: "Channel",
principalColumn: "Id");
}
}
}