using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace MTWireGuard.Application.Migrations { /// public partial class ExpireField : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Name", table: "Users", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AddColumn( name: "Expire", table: "Users", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "ExpireID", table: "Users", type: "INTEGER", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Expire", table: "Users"); migrationBuilder.DropColumn( name: "ExpireID", table: "Users"); migrationBuilder.AlterColumn( name: "Name", table: "Users", type: "TEXT", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); } } }