using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Church.Net.DAL.EFCoreDBF.Migrations { public partial class AddLoggingService : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "LogInfos", columns: table => new { Id = table.Column(type: "text", nullable: false), TrackNo = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Url = table.Column(type: "text", nullable: true), Message = table.Column(type: "text", nullable: true), Source = table.Column(type: "text", nullable: true), StackTrace = table.Column(type: "text", nullable: true), DetailMessage = table.Column(type: "text", nullable: true), UserId = table.Column(type: "text", nullable: true), Time = table.Column(type: "timestamp with time zone", nullable: false), Level = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_LogInfos", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "LogInfos"); } } }