using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class RemoveDerivativeSessionDbDefault : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Session", table: "OptionsDailyTrade", type: "tinyint", nullable: false, comment: "매매 세션 (1=정규, 2=야간) — 수집기가 항상 명시 세팅(0-sentinel 회피 위해 DB 기본값 미설정)", oldClrType: typeof(byte), oldType: "tinyint", oldDefaultValue: (byte)1, oldComment: "매매 세션 (1=정규, 2=야간)"); migrationBuilder.AlterColumn( name: "Session", table: "FuturesDailyTrade", type: "tinyint", nullable: false, comment: "매매 세션 (1=정규, 2=야간) — 수집기가 항상 명시 세팅(0-sentinel 회피 위해 DB 기본값 미설정)", oldClrType: typeof(byte), oldType: "tinyint", oldDefaultValue: (byte)1, oldComment: "매매 세션 (1=정규, 2=야간)"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Session", table: "OptionsDailyTrade", type: "tinyint", nullable: false, defaultValue: (byte)1, comment: "매매 세션 (1=정규, 2=야간)", oldClrType: typeof(byte), oldType: "tinyint", oldComment: "매매 세션 (1=정규, 2=야간) — 수집기가 항상 명시 세팅(0-sentinel 회피 위해 DB 기본값 미설정)"); migrationBuilder.AlterColumn( name: "Session", table: "FuturesDailyTrade", type: "tinyint", nullable: false, defaultValue: (byte)1, comment: "매매 세션 (1=정규, 2=야간)", oldClrType: typeof(byte), oldType: "tinyint", oldComment: "매매 세션 (1=정규, 2=야간) — 수집기가 항상 명시 세팅(0-sentinel 회피 위해 DB 기본값 미설정)"); } } }