C# Discord bot made using NetCord for keeping a TikTok-style streak
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 39 lines 1.1 kB view raw
1using Microsoft.EntityFrameworkCore.Migrations; 2 3#nullable disable 4 5namespace StreakBot.Migrations 6{ 7 /// <inheritdoc /> 8 public partial class AddStreakRestore : Migration 9 { 10 /// <inheritdoc /> 11 protected override void Up(MigrationBuilder migrationBuilder) 12 { 13 migrationBuilder.AddColumn<int>( 14 name: "StreakNumberToRestore", 15 table: "Streaks", 16 type: "INTEGER", 17 nullable: true); 18 19 migrationBuilder.AddColumn<int>( 20 name: "MonthlyRestores", 21 table: "Streaks", 22 type: "INTEGER", 23 nullable: false, 24 defaultValue: 5); 25 } 26 27 /// <inheritdoc /> 28 protected override void Down(MigrationBuilder migrationBuilder) 29 { 30 migrationBuilder.DropColumn( 31 name: "StreakNumberToRestore", 32 table: "Streaks"); 33 34 migrationBuilder.DropColumn( 35 name: "MonthlyRestores", 36 table: "Streaks"); 37 } 38 } 39}