using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
#nullable disable
|
|
namespace ApiTools.Database.Migrations.Migrations
|
{
|
/// <inheritdoc />
|
public partial class UpdateSmsSetting1009 : Migration
|
{
|
/// <inheritdoc />
|
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<string>(
|
name: "SignName",
|
table: "SmsSettingAccess",
|
type: "nvarchar(max)",
|
nullable: true);
|
}
|
|
/// <inheritdoc />
|
protected override void Down(MigrationBuilder migrationBuilder)
|
{
|
migrationBuilder.DropColumn(
|
name: "SignName",
|
table: "SmsSettingAccess");
|
|
migrationBuilder.AddColumn<Guid>(
|
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");
|
}
|
}
|
}
|