Actually commit migration file for announcement timestamp

This commit is contained in:
Slendy 2023-08-19 02:15:55 -05:00
commit d20b21e98a
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -0,0 +1,31 @@
using System;
using LBPUnion.ProjectLighthouse.Database;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ProjectLighthouse.Migrations
{
[DbContext(typeof(DatabaseContext))]
[Migration("20230814031609_AddPublishedAtToAnnouncements")]
public partial class AddPublishedAtToAnnouncements : Migration
{
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));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PublishedAt",
table: "WebsiteAnnouncements");
}
}
}