eFormCore/Migrations/20210407134630_AddingFolderTranslations.cs
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Microting.eForm.Migrations
{
public partial class AddingFolderTranslations : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "FolderTranslations",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Version = table.Column<int>(nullable: true),
WorkflowState = table.Column<string>(maxLength: 255, nullable: true),
CreatedAt = table.Column<DateTime>(nullable: true),
UpdatedAt = table.Column<DateTime>(nullable: true),
Name = table.Column<string>(nullable: true),
Description = table.Column<string>(nullable: true),
MicrotingUid = table.Column<int>(nullable: false),
LanguageId = table.Column<int>(nullable: false),
FolderId = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FolderTranslations", x => x.Id);
});
migrationBuilder.CreateTable(
name: "FolderTranslationVersions",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Version = table.Column<int>(nullable: true),
WorkflowState = table.Column<string>(maxLength: 255, nullable: true),
CreatedAt = table.Column<DateTime>(nullable: true),
UpdatedAt = table.Column<DateTime>(nullable: true),
Name = table.Column<string>(nullable: true),
Description = table.Column<string>(nullable: true),
MicrotingUid = table.Column<int>(nullable: false),
LanguageId = table.Column<int>(nullable: false),
FolderId = table.Column<int>(nullable: false),
FolderTranslationId = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FolderTranslationVersions", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "FolderTranslations");
migrationBuilder.DropTable(
name: "FolderTranslationVersions");
}
}
}