28 lines
732 B
C#
28 lines
732 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace NadekoBot.Migrations
|
|
{
|
|
public partial class totalxp : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalXp",
|
|
table: "DiscordUser",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.Sql(MigrationQueries.TotalXp);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalXp",
|
|
table: "DiscordUser");
|
|
}
|
|
}
|
|
}
|