12345678910111213141516171819202122232425262728293031 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace Repository.Migrations
- {
- public partial class AddStatisticsTable : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "StatisticsLogs",
- columns: table => new
- {
- Id = table.Column<Guid>(nullable: false),
- Timestamp = table.Column<DateTime>(nullable: false),
- TraceState = table.Column<int>(nullable: false),
- RequstType = table.Column<int>(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_StatisticsLogs", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "StatisticsLogs");
- }
- }
- }
|