feat: migration Phase11bChat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
773f5e5b1e
commit
b612c3345b
3 files changed
+2402
No files matched your search
Generated
+2356
File diff suppressed because it is too large.
Load diff
+40
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FamilyPlanner.Infrastructure.Persistence.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Phase11bChat : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "AiChatChildrenAllowed",
|
||||
table: "FamilySettings",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "AiChatEnabled",
|
||||
table: "FamilySettings",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AiChatChildrenAllowed",
|
||||
table: "FamilySettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AiChatEnabled",
|
||||
table: "FamilySettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1335,6 +1335,12 @@ namespace FamilyPlanner.Infrastructure.Persistence.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("AiChatChildrenAllowed")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("AiChatEnabled")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ChildTasksRequireApproval")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
||||
Reference in new issue
Block a user