mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Killed history
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace NadekoBot.Migrations
|
||||
{
|
||||
public partial class xpconfigandcleanup : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
// if this migration is running, it means the user had the database
|
||||
// prior to this patch, therefore migraton to .yml is required
|
||||
// so the default value is manually changed from true to false
|
||||
// but if the user had the database, the snapshot default value
|
||||
// (true) will be used
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "HasMigratedXpSettings",
|
||||
table: "BotConfig",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HasMigratedXpSettings",
|
||||
table: "BotConfig");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user