Files
marechai/Marechai.Database/Migrations/20200610191635_AddIso4217.cs

29 lines
1.1 KiB
C#
Raw Normal View History

2020-06-10 20:36:38 +01:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Marechai.Database.Migrations
{
public partial class AddIso4217 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable("Iso4217", table => new
{
Code = table.Column<string>(maxLength: 3, nullable: false),
Numeric = table.Column<short>("smallint(3)", nullable: false),
MinorUnits = table.Column<byte>(nullable: true),
Name = table.Column<string>(maxLength: 150, nullable: false),
Withdrawn = table.Column<DateTime>(nullable: true)
}, constraints: table =>
{
table.PrimaryKey("PK_Iso4217", x => x.Code);
});
migrationBuilder.CreateIndex("IX_Iso4217_Numeric", "Iso4217", "Numeric");
migrationBuilder.CreateIndex("IX_Iso4217_Withdrawn", "Iso4217", "Withdrawn");
}
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("Iso4217");
}
}