Files
marechai/Marechai.Database/Migrations/20190603165746_AddIso639.cs

38 lines
1.7 KiB
C#
Raw Normal View History

2019-06-03 22:27:17 +01:00
using Microsoft.EntityFrameworkCore.Migrations;
2020-02-10 02:10:18 +00:00
namespace Marechai.Database.Migrations
2019-06-03 22:27:17 +01:00
{
public partial class AddIso639 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
2020-02-10 22:44:18 +00:00
migrationBuilder.CreateTable("ISO_639-3", table => new
{
Id = table.Column<string>("char(3)"), Part2B = table.Column<string>("char(3)", nullable: true),
Part2T = table.Column<string>("char(3)", nullable: true),
Part1 = table.Column<string>("char(2)", nullable: true), Scope = table.Column<string>("char(1)"),
Type = table.Column<string>("char(1)"), Ref_Name = table.Column<string>("varchar(150)"),
Comment = table.Column<string>("varchar(150)", nullable: true)
}, constraints: table =>
{
table.PrimaryKey("PK_ISO_639-3", x => x.Id);
});
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Comment", "ISO_639-3", "Comment");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Part1", "ISO_639-3", "Part1");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Part2B", "ISO_639-3", "Part2B");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Part2T", "ISO_639-3", "Part2T");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Ref_Name", "ISO_639-3", "Ref_Name");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Scope", "ISO_639-3", "Scope");
2019-06-03 22:27:17 +01:00
migrationBuilder.CreateIndex("IX_ISO_639-3_Type", "ISO_639-3", "Type");
2019-06-03 22:27:17 +01:00
}
2020-02-10 22:44:18 +00:00
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("ISO_639-3");
2019-06-03 22:27:17 +01:00
}
}