2016-11-15 11:01:02 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2016-10-15 00:58:15 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class CurrencyTransaction : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "CurrencyTransactions",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<int>(nullable: false)
|
|
|
|
|
.Annotation("Autoincrement", true),
|
|
|
|
|
Amount = table.Column<long>(nullable: false),
|
|
|
|
|
Reason = table.Column<string>(nullable: true),
|
|
|
|
|
UserId = table.Column<ulong>(nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_CurrencyTransactions", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "CurrencyTransactions");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|