83f51c6a23
Added shopping cart and items Added quotes Refactored relatinoships Migrated changes Refactored cqrs commands and queries Refactored mappings
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace LiteCharms.Infrastructure.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddedProcessedColumnToNotifications : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsInternal",
|
|
table: "Notification",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Processed",
|
|
table: "Notification",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Processed",
|
|
table: "Notification");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsInternal",
|
|
table: "Notification",
|
|
type: "boolean",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean",
|
|
oldDefaultValue: true);
|
|
}
|
|
}
|
|
}
|