forked from brunobritodev/JPProject.IdentityServer4.AdminUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20190828141939_Initial.cs
More file actions
33 lines (31 loc) · 1.14 KB
/
20190828141939_Initial.cs
File metadata and controls
33 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Jp.Infra.Data.Sqlite.Migrations.EventStore
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "StoredEvent",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
Action = table.Column<string>(type: "varchar(100)", nullable: true),
AggregateId = table.Column<string>(nullable: true),
CreationDate = table.Column<DateTime>(nullable: false),
Data = table.Column<string>(nullable: true),
User = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_StoredEvent", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "StoredEvent");
}
}
}