using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Safeguard.Migrations { /// public partial class _202211151242 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "HostMqttInfos", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), IPAddress = table.Column(type: "TEXT", nullable: true), Port = table.Column(type: "INTEGER", nullable: true) }, constraints: table => { table.PrimaryKey("PK_HostMqttInfos", x => x.Id); }); migrationBuilder.CreateTable( name: "MCConfigs", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), Name = table.Column(type: "TEXT", nullable: true), JsonString = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_MCConfigs", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "HostMqttInfos"); migrationBuilder.DropTable( name: "MCConfigs"); } } }