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 AddGroupDmSupport : Migration 9 { 10 /// <inheritdoc /> 11 protected override void Up(MigrationBuilder migrationBuilder) 12 { 13 migrationBuilder.AddColumn<ulong>( 14 name: "ChannelId", 15 table: "Streaks", 16 type: "INTEGER", 17 nullable: false, 18 defaultValue: 0ul); 19 20 migrationBuilder.AddColumn<ulong>( 21 name: "MessageId", 22 table: "Channels", 23 type: "INTEGER", 24 nullable: true); 25 } 26 27 /// <inheritdoc /> 28 protected override void Down(MigrationBuilder migrationBuilder) 29 { 30 migrationBuilder.DropColumn( 31 name: "ChannelId", 32 table: "Streaks"); 33 34 migrationBuilder.DropColumn( 35 name: "MessageId", 36 table: "Channels"); 37 } 38 } 39}