using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ir23.Migrations { /// public partial class refreshTableConfig : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "developer", table: "Accounts", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.CreateTable( name: "refreshtables", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), RefreshToken = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), ExpiryTime = table.Column(type: "datetime(6)", nullable: false), AccountId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_refreshtables", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "refreshtables"); migrationBuilder.DropColumn( name: "developer", table: "Accounts"); } } }