61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DataModel.Migrations
|
|
{
|
|
public partial class _202211AddUniqueIds : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "UniqueId",
|
|
table: "Translations",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "UniqueId",
|
|
table: "TextElements",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "UniqueId",
|
|
table: "Settings",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "UniqueId",
|
|
table: "Sections",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UniqueId",
|
|
table: "Translations");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UniqueId",
|
|
table: "TextElements");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UniqueId",
|
|
table: "Settings");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UniqueId",
|
|
table: "Sections");
|
|
}
|
|
}
|
|
}
|