| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class AddActivityTokenConfig : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<int>(
- name: "ActivityToken_CommentToken",
- table: "Config",
- type: "int",
- nullable: false,
- defaultValue: 0,
- comment: "댓글 작성 지급 토큰");
- migrationBuilder.AddColumn<int>(
- name: "ActivityToken_DailyTokenCap",
- table: "Config",
- type: "int",
- nullable: false,
- defaultValue: 0,
- comment: "활동 토큰 일일 상한 (0=무제한)");
- migrationBuilder.AddColumn<int>(
- name: "ActivityToken_PostToken",
- table: "Config",
- type: "int",
- nullable: false,
- defaultValue: 0,
- comment: "게시글 작성 지급 토큰");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "ActivityToken_CommentToken",
- table: "Config");
- migrationBuilder.DropColumn(
- name: "ActivityToken_DailyTokenCap",
- table: "Config");
- migrationBuilder.DropColumn(
- name: "ActivityToken_PostToken",
- table: "Config");
- }
- }
- }
|