using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CoreWiki.Migrations { /// public partial class ViewCount : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ViewCount", table: "Articles", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.UpdateData( table: "Articles", keyColumn: "Id", keyValue: 1, columns: new[] { "Published", "ViewCount" }, values: new object[] { new DateTime(2023, 12, 25, 20, 29, 5, 642, DateTimeKind.Utc).AddTicks(7240), 0 }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ViewCount", table: "Articles"); migrationBuilder.UpdateData( table: "Articles", keyColumn: "Id", keyValue: 1, column: "Published", value: new DateTime(2023, 12, 24, 18, 37, 32, 413, DateTimeKind.Utc).AddTicks(8400)); } } }