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