using Microsoft.EntityFrameworkCore.Migrations; namespace DatamodelLibrary.Migrations { public partial class StockGroups_table : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "StockGroups", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), GroupName = table.Column(type: "TEXT", nullable: true), StockName = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_StockGroups", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "StockGroups"); } } }