forked from ddrilling/AsbCloudServer
UserSettings_rename_idUser
This commit is contained in:
parent
b7af07f995
commit
8d3a8a5885
6130
AsbCloudDb/Migrations/20220728053614_UserSettings_rename_idUser.Designer.cs
generated
Normal file
6130
AsbCloudDb/Migrations/20220728053614_UserSettings_rename_idUser.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,49 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class UserSettings_rename_idUser : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_t_user_settings_t_user_idUser",
|
||||
table: "t_user_settings");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "idUser",
|
||||
table: "t_user_settings",
|
||||
newName: "id_user");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_t_user_settings_t_user_id_user",
|
||||
table: "t_user_settings",
|
||||
column: "id_user",
|
||||
principalTable: "t_user",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_t_user_settings_t_user_id_user",
|
||||
table: "t_user_settings");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "id_user",
|
||||
table: "t_user_settings",
|
||||
newName: "idUser");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_t_user_settings_t_user_idUser",
|
||||
table: "t_user_settings",
|
||||
column: "idUser",
|
||||
principalTable: "t_user",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
@ -3876,7 +3876,7 @@ namespace AsbCloudDb.Migrations
|
||||
{
|
||||
b.Property<int>("IdUser")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("idUser");
|
||||
.HasColumnName("id_user");
|
||||
|
||||
b.Property<string>("Key")
|
||||
.HasMaxLength(255)
|
||||
|
@ -9,7 +9,7 @@ namespace AsbCloudDb.Model
|
||||
[Table("t_user_settings"), Comment("настройки интерфейса пользователя")]
|
||||
public class UserSetting
|
||||
{
|
||||
[Column("idUser")]
|
||||
[Column("id_user")]
|
||||
public int IdUser { get; set; }
|
||||
|
||||
[Column("key"), Comment("Ключ настроек пользователя"), StringLength(255)]
|
||||
|
Loading…
Reference in New Issue
Block a user