using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Church.Net.DAL.EFCoreDBF.Migrations { public partial class AddLienClient : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "CommunityAppId", table: "HappinessGroups", type: "text", nullable: true); migrationBuilder.CreateTable( name: "LineMessageClients", columns: table => new { Id = table.Column(type: "text", nullable: false), ClientId = table.Column(type: "text", nullable: true), IsGroup = table.Column(type: "boolean", nullable: false), IsManager = table.Column(type: "boolean", nullable: false), Name = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_LineMessageClients", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "LineMessageClients"); migrationBuilder.DropColumn( name: "CommunityAppId", table: "HappinessGroups"); } } }