microting/eform-sdk-dotnet

View on GitHub
eFormCore/Migrations/20201231062732_ChangingDescriptToLanguageCode.cs

Summary

Maintainability
A
1 hr
Test Coverage
using Microsoft.EntityFrameworkCore.Migrations;

namespace Microting.eForm.Migrations
{
    public partial class ChangingDescriptToLanguageCode : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Description",
                table: "Languages",
                "LanguageCode");

            migrationBuilder.RenameColumn(
                name: "Description",
                table: "LanguageVersions",
                "LanguageCode");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "LanguageCode",
                table: "LanguageVersions",
                "Description");

            migrationBuilder.RenameColumn(
                name: "LanguageCode",
                table: "Languages",
                "Description");
        }
    }
}