using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Migrations { /// public partial class ChapterNumber : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "VolumeNumber", table: "Chapters", type: "integer", nullable: true, oldClrType: typeof(float), oldType: "real", oldNullable: true); migrationBuilder.AlterColumn( name: "ChapterNumber", table: "Chapters", type: "character varying(10)", maxLength: 10, nullable: false, oldClrType: typeof(float), oldType: "real"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "VolumeNumber", table: "Chapters", type: "real", nullable: true, oldClrType: typeof(int), oldType: "integer", oldNullable: true); migrationBuilder.AlterColumn( name: "ChapterNumber", table: "Chapters", type: "real", nullable: false, oldClrType: typeof(string), oldType: "character varying(10)", oldMaxLength: 10); } } }