SureName => SurName: db migration

This commit is contained in:
Hamid Reza Mohammadi 2024-06-14 16:15:37 +03:30
parent 8ef14f7737
commit 6aafd19791
6 changed files with 5769 additions and 6 deletions

View File

@ -3,10 +3,11 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "8.0.4",
"version": "8.0.6",
"commands": [
"dotnet-ef"
]
],
"rollForward": false
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class SureNameFix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "SureName",
table: "AspNetUsers",
newName: "SurName");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "SurName",
table: "AspNetUsers",
newName: "SureName");
}
}
}

View File

@ -17,7 +17,7 @@ namespace RMuseum.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("ProductVersion", "8.0.6")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@ -3853,7 +3853,7 @@ namespace RMuseum.Migrations
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("SureName")
b.Property<string>("SurName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")

View File

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true;"
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"RSecurityBackend": {
"ApplicationName": "Ganjoor",

View File

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