diff --git a/RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.Designer.cs b/RMuseum/Migrations/20211021102748_GanjoorHalfCentury.Designer.cs similarity index 99% rename from RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.Designer.cs rename to RMuseum/Migrations/20211021102748_GanjoorHalfCentury.Designer.cs index 21656101..5ccc5171 100644 --- a/RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.Designer.cs +++ b/RMuseum/Migrations/20211021102748_GanjoorHalfCentury.Designer.cs @@ -10,8 +10,8 @@ using RMuseum.DbContext; namespace RMuseum.Migrations { [DbContext(typeof(RMuseumDbContext))] - [Migration("20211021064655_GanjoorHalfCenturies")] - partial class GanjoorHalfCenturies + [Migration("20211021102748_GanjoorHalfCentury")] + partial class GanjoorHalfCentury { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -1014,6 +1014,9 @@ namespace RMuseum.Migrations b.Property("Nickname") .HasColumnType("nvarchar(max)"); + b.Property("PinOrder") + .HasColumnType("int"); + b.Property("Published") .HasColumnType("bit"); diff --git a/RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.cs b/RMuseum/Migrations/20211021102748_GanjoorHalfCentury.cs similarity index 89% rename from RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.cs rename to RMuseum/Migrations/20211021102748_GanjoorHalfCentury.cs index 6b285b0f..fcb6aeeb 100644 --- a/RMuseum/Migrations/20211021064655_GanjoorHalfCenturies.cs +++ b/RMuseum/Migrations/20211021102748_GanjoorHalfCentury.cs @@ -2,7 +2,7 @@ namespace RMuseum.Migrations { - public partial class GanjoorHalfCenturies : Migration + public partial class GanjoorHalfCentury : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -26,6 +26,13 @@ namespace RMuseum.Migrations type: "int", nullable: true); + migrationBuilder.AddColumn( + name: "PinOrder", + table: "GanjoorPoets", + type: "int", + nullable: false, + defaultValue: 0); + migrationBuilder.CreateTable( name: "GanjoorHalfCenturies", columns: table => new @@ -81,6 +88,10 @@ namespace RMuseum.Migrations migrationBuilder.DropColumn( name: "GanjoorHalfCenturyId", table: "GanjoorPoets"); + + migrationBuilder.DropColumn( + name: "PinOrder", + table: "GanjoorPoets"); } } } diff --git a/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs b/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs index afa1f5ac..1ca9e442 100644 --- a/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs +++ b/RMuseum/Migrations/RMuseumDbContextModelSnapshot.cs @@ -1012,6 +1012,9 @@ namespace RMuseum.Migrations b.Property("Nickname") .HasColumnType("nvarchar(max)"); + b.Property("PinOrder") + .HasColumnType("int"); + b.Property("Published") .HasColumnType("bit"); diff --git a/RMuseum/Models/Ganjoor/GanjoorPoet.cs b/RMuseum/Models/Ganjoor/GanjoorPoet.cs index f2bc1038..44c6a5fa 100644 --- a/RMuseum/Models/Ganjoor/GanjoorPoet.cs +++ b/RMuseum/Models/Ganjoor/GanjoorPoet.cs @@ -60,5 +60,10 @@ namespace RMuseum.Models.Ganjoor /// death year in lunar hijri /// public int DeathYearInLHijri { get; set; } + + /// + /// Home page pin order (zero not pinned) + /// + public int PinOrder { get; set; } } } diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index b05bedcf..79720002 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -5480,6 +5480,11 @@ death year in lunar hijri + + + Home page pin order (zero not pinned) + + ganjoor.net site banner