using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Nuuru.Server.Migrations { /// public partial class AddIpCloakEntries : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "IpCloakEntries", columns: table => new { RawIp = table.Column(type: "TEXT", maxLength: 45, nullable: false), CloakedIp = table.Column(type: "TEXT", maxLength: 50, nullable: false), CreatedAt = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_IpCloakEntries", x => x.RawIp); }); migrationBuilder.CreateIndex( name: "IX_IpCloakEntries_CloakedIp", table: "IpCloakEntries", column: "CloakedIp", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "IpCloakEntries"); } } }