Files
Aaru/Aaru.Database/Migrations/20181221032605_MediaStatistics.cs

42 lines
4.1 KiB
C#
Raw Normal View History

2018-12-21 03:34:54 +00:00
using Microsoft.EntityFrameworkCore.Migrations;
2020-02-27 00:33:26 +00:00
namespace Aaru.Database.Migrations
2018-12-21 03:34:54 +00:00
{
public partial class MediaStatistics : Migration
{
2020-02-29 18:03:35 +00:00
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.CreateTable("Medias", table =>
new
{
Id =
table.
Column
<int
>().
Annotation("Sqlite:Autoincrement",
true),
Type =
table.
Column
<string
>(nullable
: true),
Real =
table.
Column
<bool
>(),
Synchronized
= table.
Column
<bool
>()
}, constraints
2020-07-22 13:20:25 +01:00
: table => table.
PrimaryKey("PK_Medias",
x =>
x.
Id));
2018-12-21 03:34:54 +00:00
2020-02-29 18:03:35 +00:00
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("Medias");
2018-12-21 03:34:54 +00:00
}
}