#478 add publication date for poet spec lines and pictures
This commit is contained in:
parent
a0726bea94
commit
1ff879ac24
6068
RMuseum/Migrations/20250328123419_SpecPublicationDates.Designer.cs
generated
Normal file
6068
RMuseum/Migrations/20250328123419_SpecPublicationDates.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
41
RMuseum/Migrations/20250328123419_SpecPublicationDates.cs
Normal file
41
RMuseum/Migrations/20250328123419_SpecPublicationDates.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SpecPublicationDates : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "PublicationDate",
|
||||
table: "GanjoorPoetSuggestedSpecLines",
|
||||
type: "datetime2",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "PublicationDate",
|
||||
table: "GanjoorPoetSuggestedPictures",
|
||||
type: "datetime2",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PublicationDate",
|
||||
table: "GanjoorPoetSuggestedSpecLines");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PublicationDate",
|
||||
table: "GanjoorPoetSuggestedPictures");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1935,6 +1935,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("PoetId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("PublicationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("Published")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -1969,6 +1972,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("PoetId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("PublicationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("Published")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user