56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BLAIzor.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addVoiceInformation : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Entity",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Persona",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "voiceId",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "SiteInfos",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
columns: new[] { "Entity", "Persona", "voiceId" },
|
|
values: new object[] { null, null, null });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Entity",
|
|
table: "SiteInfos");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Persona",
|
|
table: "SiteInfos");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "voiceId",
|
|
table: "SiteInfos");
|
|
}
|
|
}
|
|
}
|