Files
CMS/src/CMSMicroservice.Infrastructure/Persistence/Migrations/20250928025307_u03.cs
T
2025-09-28 06:30:13 +03:30

45 lines
1.2 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class u03 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsRulesAccepted",
schema: "CMS",
table: "Users",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTime>(
name: "RulesAcceptedAt",
schema: "CMS",
table: "Users",
type: "datetime2",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsRulesAccepted",
schema: "CMS",
table: "Users");
migrationBuilder.DropColumn(
name: "RulesAcceptedAt",
schema: "CMS",
table: "Users");
}
}
}