docs: #319 db migration for the new fields #322 db migration for the table

This commit is contained in:
Hamid Reza Mohammadi 2022-05-20 11:30:55 +04:30
parent 6a2daeab71
commit 025ea0dd66
4 changed files with 4533 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,160 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
public partial class UpdtRelSectsLogModel : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse10VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse10VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse5VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse5VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse6VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse6VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse7VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse7VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse8VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse8VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse9VOrder",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "BreakFromVerse9VOrderResult",
table: "GanjoorPoemSectionCorrections",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateTable(
name: "UpdatingRelSectsLogs",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
MeterId = table.Column<int>(type: "int", nullable: false),
RhymeLettes = table.Column<string>(type: "nvarchar(max)", nullable: true),
DateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_UpdatingRelSectsLogs", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "UpdatingRelSectsLogs");
migrationBuilder.DropColumn(
name: "BreakFromVerse10VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse10VOrderResult",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse5VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse5VOrderResult",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse6VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse6VOrderResult",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse7VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse7VOrderResult",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse8VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse8VOrderResult",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse9VOrder",
table: "GanjoorPoemSectionCorrections");
migrationBuilder.DropColumn(
name: "BreakFromVerse9VOrderResult",
table: "GanjoorPoemSectionCorrections");
}
}
}

View File

@ -1373,6 +1373,12 @@ namespace RMuseum.Migrations
b.Property<int>("ApplicationOrder")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse10VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse10VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse1VOrder")
.HasColumnType("int");
@ -1397,6 +1403,36 @@ namespace RMuseum.Migrations
b.Property<int>("BreakFromVerse4VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse5VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse5VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse6VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse6VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse7VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse7VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse8VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse8VOrderResult")
.HasColumnType("int");
b.Property<int?>("BreakFromVerse9VOrder")
.HasColumnType("int");
b.Property<int>("BreakFromVerse9VOrderResult")
.HasColumnType("int");
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
@ -1928,6 +1964,28 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorPoemMusicTracks");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.UpdatingRelSectsLog", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
b.Property<DateTime>("DateTime")
.HasColumnType("datetime2");
b.Property<int>("MeterId")
.HasColumnType("int");
b.Property<string>("RhymeLettes")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("UpdatingRelSectsLogs");
});
modelBuilder.Entity("RMuseum.Models.GanjoorAudio.Recitation", b =>
{
b.Property<int>("Id")

View File

@ -1,5 +1,5 @@
{
"sdk": {
"version": "6.0.200"
"version": "6.0.300"
}
}