db migration - signup fix
This commit is contained in:
parent
63832b57c9
commit
6255d4d8ca
6125
RMuseum/Migrations/20260908050820_RSecNewFields.Designer.cs
generated
Normal file
6125
RMuseum/Migrations/20260908050820_RSecNewFields.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
88
RMuseum/Migrations/20260908050820_RSecNewFields.cs
Normal file
88
RMuseum/Migrations/20260908050820_RSecNewFields.cs
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace RMuseum.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class RSecNewFields : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "UserOldEmails");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PhoneNumber",
|
||||||
|
table: "BannedEmails",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "UserOldContacts",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
ChangeDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
IsEmail = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
Value = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
NormalizedValue = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_UserOldContacts", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_UserOldContacts_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserOldContacts_UserId",
|
||||||
|
table: "UserOldContacts",
|
||||||
|
column: "UserId");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "UserOldContacts");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PhoneNumber",
|
||||||
|
table: "BannedEmails");
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "UserOldEmails",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
ChangeDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
Email = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
NormalizedEmail = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_UserOldEmails", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_UserOldEmails_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserOldEmails_UserId",
|
||||||
|
table: "UserOldEmails",
|
||||||
|
column: "UserId");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -17,7 +17,7 @@ namespace RMuseum.Migrations
|
|||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "10.0.9")
|
.HasAnnotation("ProductVersion", "10.0.11")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
@ -4006,6 +4006,9 @@ namespace RMuseum.Migrations
|
|||||||
b.Property<string>("NormalizedEmail")
|
b.Property<string>("NormalizedEmail")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("PhoneNumber")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("BannedEmails");
|
b.ToTable("BannedEmails");
|
||||||
@ -4282,7 +4285,7 @@ namespace RMuseum.Migrations
|
|||||||
b.ToTable("VerifyQueueItems");
|
b.ToTable("VerifyQueueItems");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("RSecurityBackend.Models.Auth.Db.UserOldEmail", b =>
|
modelBuilder.Entity("RSecurityBackend.Models.Auth.Db.UserOldContact", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@ -4291,20 +4294,23 @@ namespace RMuseum.Migrations
|
|||||||
b.Property<DateTime>("ChangeDate")
|
b.Property<DateTime>("ChangeDate")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<bool>("IsEmail")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<string>("NormalizedEmail")
|
b.Property<string>("NormalizedValue")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid>("UserId")
|
b.Property<Guid>("UserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Value")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("UserId");
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
b.ToTable("UserOldEmails");
|
b.ToTable("UserOldContacts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("RSecurityBackend.Models.ChangeTracking.RChangeLog", b =>
|
modelBuilder.Entity("RSecurityBackend.Models.ChangeTracking.RChangeLog", b =>
|
||||||
@ -5895,7 +5901,7 @@ namespace RMuseum.Migrations
|
|||||||
b.Navigation("User");
|
b.Navigation("User");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("RSecurityBackend.Models.Auth.Db.UserOldEmail", b =>
|
modelBuilder.Entity("RSecurityBackend.Models.Auth.Db.UserOldContact", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "User")
|
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "User")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
|
|||||||
@ -4665,6 +4665,18 @@
|
|||||||
<member name="M:RMuseum.Migrations.CommentsRatings.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
<member name="M:RMuseum.Migrations.CommentsRatings.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
<inheritdoc />
|
<inheritdoc />
|
||||||
</member>
|
</member>
|
||||||
|
<member name="T:RMuseum.Migrations.RSecNewFields">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.RSecNewFields.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.RSecNewFields.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RMuseum.Migrations.RSecNewFields.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
||||||
<summary>
|
<summary>
|
||||||
donation expenditures
|
donation expenditures
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user