45 lines
1.2 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|