database migration

This commit is contained in:
Hamid Reza Mohammadi 2024-04-18 17:45:52 +03:30
parent 79b42a453e
commit 58d44b10b3
6 changed files with 5734 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "7.0.9",
"version": "8.0.4",
"commands": [
"dotnet-ef"
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class NotifTypeLongjUpdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "NotificationType",
table: "Notifications",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<DateTime>(
name: "LastUpdate",
table: "LongRunningJobs",
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: "NotificationType",
table: "Notifications");
migrationBuilder.DropColumn(
name: "LastUpdate",
table: "LongRunningJobs");
}
}
}

View File

@ -17,7 +17,7 @@ namespace RMuseum.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@ -4152,6 +4152,9 @@ namespace RMuseum.Migrations
b.Property<string>("Exception")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("LastUpdate")
.HasColumnType("datetime2");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
@ -4231,6 +4234,9 @@ namespace RMuseum.Migrations
b.Property<string>("HtmlText")
.HasColumnType("nvarchar(max)");
b.Property<int>("NotificationType")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");

View File

@ -3862,6 +3862,18 @@
<member name="M:RMuseum.Migrations.UserPoemQuotes.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc />
</member>
<member name="T:RMuseum.Migrations.NotifTypeLongjUpdate">
<inheritdoc />
</member>
<member name="M:RMuseum.Migrations.NotifTypeLongjUpdate.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:RMuseum.Migrations.NotifTypeLongjUpdate.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:RMuseum.Migrations.NotifTypeLongjUpdate.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc />
</member>
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
<summary>
donation expenditures

View File

@ -1,5 +1,5 @@
{
"sdk": {
"version": "8.0.100"
"version": "8.0.202"
}
}