From 79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Fri, 29 Dec 2023 09:41:56 +0100 Subject: Cywilizowany tailwind --- CoreWiki/Migrations/20231225202905_ViewCount.cs | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 CoreWiki/Migrations/20231225202905_ViewCount.cs (limited to 'CoreWiki/Migrations/20231225202905_ViewCount.cs') diff --git a/CoreWiki/Migrations/20231225202905_ViewCount.cs b/CoreWiki/Migrations/20231225202905_ViewCount.cs new file mode 100644 index 0000000..6d2f639 --- /dev/null +++ b/CoreWiki/Migrations/20231225202905_ViewCount.cs @@ -0,0 +1,44 @@ +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)); + } + } +} -- cgit v1.2.3