using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace MachineJob.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterDatabase() .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "DatabaseWrites", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), Value1 = table.Column(type: "double", nullable: true), Value2 = table.Column(type: "double", nullable: true), Value3 = table.Column(type: "double", nullable: true), Value4 = table.Column(type: "double", nullable: true), Value5 = table.Column(type: "double", nullable: true), Value6 = table.Column(type: "double", nullable: true), Value7 = table.Column(type: "double", nullable: true), Value8 = table.Column(type: "double", nullable: true), Value9 = table.Column(type: "double", nullable: true), Value10 = table.Column(type: "double", nullable: true), UpdateTime = table.Column(type: "datetime(6)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_DatabaseWrites", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "DatabaseWrites"); } } }