Миграции

This commit is contained in:
Халимов Рустам
2026-04-07 21:20:06 +03:00
parent 5b905c94da
commit 9e8625aea1
4 changed files with 190 additions and 5 deletions
@@ -0,0 +1,67 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Knot.Modules.Auth.Migrations
{
/// <inheritdoc />
public partial class AddUserInfoFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "BannedUntil",
schema: "identity",
table: "Users",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PhoneNumber",
schema: "identity",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RefreshToken",
schema: "identity",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "UserDomain",
schema: "identity",
table: "Users",
type: "text",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BannedUntil",
schema: "identity",
table: "Users");
migrationBuilder.DropColumn(
name: "PhoneNumber",
schema: "identity",
table: "Users");
migrationBuilder.DropColumn(
name: "RefreshToken",
schema: "identity",
table: "Users");
migrationBuilder.DropColumn(
name: "UserDomain",
schema: "identity",
table: "Users");
}
}
}