using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Kehyeedra3.Migrations { public partial class FarmingA : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "OwnerId", table: "Users", nullable: false, defaultValue: 0ul); migrationBuilder.CreateTable( name: "Farming", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), Tier = table.Column(nullable: false), EmployeeCount = table.Column(nullable: false), Lvl = table.Column(nullable: false), Xp = table.Column(nullable: false), FXp = table.Column(nullable: false), TXp = table.Column(nullable: false), CropInventory = table.Column(type: "LONGTEXT", nullable: true), PlotInventory = table.Column(type: "LONGTEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Farming", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Farming"); migrationBuilder.DropColumn( name: "OwnerId", table: "Users"); } } }