using Microsoft.EntityFrameworkCore.Migrations; namespace Yi.Framework.Model.Migrations { public partial class yi3 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "address", table: "user", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "phone", table: "user", type: "INTEGER", nullable: true); migrationBuilder.AlterColumn( name: "sort", table: "menu", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "is_top", table: "menu", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "is_show", table: "menu", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "address", table: "user"); migrationBuilder.DropColumn( name: "phone", table: "user"); migrationBuilder.AlterColumn( name: "sort", table: "menu", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "is_top", table: "menu", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "is_show", table: "menu", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); } } }