#445 db migration
This commit is contained in:
parent
9684111fa8
commit
41876236d5
5895
RMuseum/Migrations/20240721124200_TajikFixes.Designer.cs
generated
Normal file
5895
RMuseum/Migrations/20240721124200_TajikFixes.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
43
RMuseum/Migrations/20240721124200_TajikFixes.cs
Normal file
43
RMuseum/Migrations/20240721124200_TajikFixes.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TajikFixes : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TajikHtmlText",
|
||||
table: "TajikPoems");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TajikPages",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false),
|
||||
TajikHtmlText = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TajikPages", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "TajikPages");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TajikHtmlText",
|
||||
table: "TajikPoems",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2104,6 +2104,19 @@ namespace RMuseum.Migrations
|
||||
b.ToTable("TajikCats");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorTajikPage", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TajikHtmlText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("TajikPages");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorTajikPoem", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@ -2112,9 +2125,6 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("CatId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TajikHtmlText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("TajikPlainText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user