using System; using Microsoft.EntityFrameworkCore.Migrations; namespace AuthServer.Host.Migrations { public partial class Added_Feature_Management : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AbpFeatureValues", columns: table => new { Id = table.Column(nullable: false), Name = table.Column(maxLength: 128, nullable: false), Value = table.Column(maxLength: 128, nullable: false), ProviderName = table.Column(maxLength: 64, nullable: true), ProviderKey = table.Column(maxLength: 64, nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", table: "AbpFeatureValues", columns: new[] { "Name", "ProviderName", "ProviderKey" }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AbpFeatureValues"); } } }