using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Data.Migrations { /// public partial class ReadingListDateRange : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "EndingMonth", table: "ReadingList", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EndingYear", table: "ReadingList", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "StartingMonth", table: "ReadingList", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "StartingYear", table: "ReadingList", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AlterColumn( name: "BookReaderWritingStyle", table: "AppUserPreferences", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "EndingMonth", table: "ReadingList"); migrationBuilder.DropColumn( name: "EndingYear", table: "ReadingList"); migrationBuilder.DropColumn( name: "StartingMonth", table: "ReadingList"); migrationBuilder.DropColumn( name: "StartingYear", table: "ReadingList"); migrationBuilder.AlterColumn( name: "BookReaderWritingStyle", table: "AppUserPreferences", type: "INTEGER", nullable: false, oldClrType: typeof(int), oldType: "INTEGER", oldDefaultValue: 0); } } }