| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class RemoveDerivativeSessionDbDefault : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<byte>(
- 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<byte>(
- 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=야간)");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<byte>(
- 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<byte>(
- 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 기본값 미설정)");
- }
- }
- }
|