Add missing announcement time migration

This commit is contained in:
Slendy 2024-05-13 22:34:26 -05:00
commit 94fe2d4d99
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -0,0 +1,33 @@
using System;
using LBPUnion.ProjectLighthouse.Database;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LBPUnion.ProjectLighthouse.Migrations
{
[DbContext(typeof(DatabaseContext))]
[Migration("20240514032620_AddPublishedAtToWebAnnouncement")]
public partial class AddPublishedAtToWebAnnouncement : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "PublishedAt",
table: "WebsiteAnnouncements",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PublishedAt",
table: "WebsiteAnnouncements");
}
}
}