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 social_links : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FacebookUrl",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "InstagramUrl",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TwitterUrl",
|
|
table: "SiteInfos",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "SiteInfos",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
columns: new[] { "FacebookUrl", "InstagramUrl", "TwitterUrl" },
|
|
values: new object[] { null, null, null });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "FacebookUrl",
|
|
table: "SiteInfos");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "InstagramUrl",
|
|
table: "SiteInfos");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TwitterUrl",
|
|
table: "SiteInfos");
|
|
}
|
|
}
|
|
}
|