Files
nadekobot/src/NadekoBot/Migrations/20180108201829_stakes.cs

34 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
using System;
namespace NadekoBot.Migrations
{
public partial class stakes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Stakes",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Amount = table.Column<long>(nullable: false),
DateAdded = table.Column<DateTime>(nullable: true),
Source = table.Column<string>(nullable: true),
UserId = table.Column<ulong>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Stakes", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Stakes");
}
}
}