#467 db migration
This commit is contained in:
parent
23bf337841
commit
3d242b59ce
@ -3,7 +3,7 @@
|
|||||||
"isRoot": true,
|
"isRoot": true,
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet-ef": {
|
"dotnet-ef": {
|
||||||
"version": "9.0.0",
|
"version": "9.0.2",
|
||||||
"commands": [
|
"commands": [
|
||||||
"dotnet-ef"
|
"dotnet-ef"
|
||||||
],
|
],
|
||||||
|
|||||||
6059
RMuseum/Migrations/20250214175815_CatSugs.Designer.cs
generated
Normal file
6059
RMuseum/Migrations/20250214175815_CatSugs.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
82
RMuseum/Migrations/20250214175815_CatSugs.cs
Normal file
82
RMuseum/Migrations/20250214175815_CatSugs.cs
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace RMuseum.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class CatSugs : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "GanjoorCatCorrections",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "int", nullable: false)
|
||||||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
||||||
|
CatId = table.Column<int>(type: "int", nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
DescriptionHtml = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
OriginalDescription = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
OriginalDescriptionHtml = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
Note = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
Reviewed = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
ReviewDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
ReviewNote = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
ReviewerUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
ApplicationOrder = table.Column<int>(type: "int", nullable: false),
|
||||||
|
Result = table.Column<int>(type: "int", nullable: false),
|
||||||
|
AffectedTheCat = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
HideMyName = table.Column<bool>(type: "bit", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_GanjoorCatCorrections", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_GanjoorCatCorrections_AspNetUsers_ReviewerUserId",
|
||||||
|
column: x => x.ReviewerUserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id");
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_GanjoorCatCorrections_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_GanjoorCatCorrections_GanjoorCategories_CatId",
|
||||||
|
column: x => x.CatId,
|
||||||
|
principalTable: "GanjoorCategories",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_GanjoorCatCorrections_CatId",
|
||||||
|
table: "GanjoorCatCorrections",
|
||||||
|
column: "CatId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_GanjoorCatCorrections_ReviewerUserId",
|
||||||
|
table: "GanjoorCatCorrections",
|
||||||
|
column: "ReviewerUserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_GanjoorCatCorrections_UserId",
|
||||||
|
table: "GanjoorCatCorrections",
|
||||||
|
column: "UserId");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "GanjoorCatCorrections");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -17,7 +17,7 @@ namespace RMuseum.Migrations
|
|||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "9.0.1")
|
.HasAnnotation("ProductVersion", "9.0.2")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
@ -828,6 +828,73 @@ namespace RMuseum.Migrations
|
|||||||
b.ToTable("GanjoorCategories");
|
b.ToTable("GanjoorCategories");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCatCorrection", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<bool>("AffectedTheCat")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<int>("ApplicationOrder")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<int>("CatId")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("DescriptionHtml")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<bool>("HideMyName")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<string>("Note")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("OriginalDescription")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("OriginalDescriptionHtml")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int>("Result")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime>("ReviewDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("ReviewNote")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<bool>("Reviewed")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<Guid?>("ReviewerUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("UserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CatId");
|
||||||
|
|
||||||
|
b.HasIndex("ReviewerUserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("GanjoorCatCorrections");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
|
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
@ -4773,6 +4840,31 @@ namespace RMuseum.Migrations
|
|||||||
b.Navigation("RImage");
|
b.Navigation("RImage");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCatCorrection", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCat", "Cat")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("CatId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "ReviewerUser")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("ReviewerUserId");
|
||||||
|
|
||||||
|
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "User")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Cat");
|
||||||
|
|
||||||
|
b.Navigation("ReviewerUser");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
|
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null)
|
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null)
|
||||||
|
|||||||
@ -4423,6 +4423,18 @@
|
|||||||
<member name="M:RMuseum.Migrations.SectionCoupletCount.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
<member name="M:RMuseum.Migrations.SectionCoupletCount.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
<inheritdoc />
|
<inheritdoc />
|
||||||
</member>
|
</member>
|
||||||
|
<member name="T:RMuseum.Migrations.CatSugs">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.CatSugs.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.CatSugs.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.CatSugs.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
||||||
<summary>
|
<summary>
|
||||||
donation expenditures
|
donation expenditures
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"sdk": {
|
"sdk": {
|
||||||
"version": "9.0.101"
|
"version": "9.0.200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user