Skip to content

Introduce Entity Framework Core tools and scripts for database migrations#17

Merged
wangkanai merged 7 commits intomainfrom
db
Jun 13, 2025
Merged

Introduce Entity Framework Core tools and scripts for database migrations#17
wangkanai merged 7 commits intomainfrom
db

Conversation

@wangkanai
Copy link
Owner

This pull request introduces several updates related to database management, dependency adjustments, and project configuration. The main changes include adding a new PowerShell script for database operations, updating package dependencies, and modifying project files to include new references and folders.

Database Management Enhancements:

  • Added a new db.ps1 script for managing database migrations, including commands for adding, listing, removing, cleaning, and resetting migrations. (db.ps1, db.ps1R1-R32)
  • Included the db.ps1 file in the solution to ensure it is tracked and accessible. (Caster.slnx, Caster.slnxR18)

Dependency Updates:

  • Added Microsoft.Extensions.Identity.Core and replaced Microsoft.EntityFrameworkCore.Design with Microsoft.EntityFrameworkCore.Relational in Directory.Packages.props to align with updated framework requirements. (Directory.Packages.props, [1] [2]
  • Updated Wangkanai.Caster.Infrastructure.csproj to include new package references for Microsoft.EntityFrameworkCore.Relational, Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.Tools, and Microsoft.AspNetCore.Identity.EntityFrameworkCore. (src/Infrastructure/Wangkanai.Caster.Infrastructure.csproj, src/Infrastructure/Wangkanai.Caster.Infrastructure.csprojR2-R7)
  • Added Microsoft.AspNetCore.Identity.EntityFrameworkCore as a dependency in Wangkanai.Caster.Presistence.csproj. (src/Persistence/Wangkanai.Caster.Presistence.csproj, src/Persistence/Wangkanai.Caster.Presistence.csprojR5-R7)

Project Configuration:

@wangkanai wangkanai added this to the 0.0.0-alpha2 milestone Jun 13, 2025
@wangkanai wangkanai self-assigned this Jun 13, 2025
Copilot AI review requested due to automatic review settings June 13, 2025 05:41
@wangkanai wangkanai added the enhancement New feature or request label Jun 13, 2025
@wangkanai wangkanai added this to Caster Jun 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces enhancements for database migration management by adding a new PowerShell script and updating project configuration and dependencies to support Entity Framework Core and ASP.NET Core Identity updates.

  • Added a new db.ps1 script for managing migrations.
  • Updated package references and project files to align with updated framework requirements.
  • Configured a new folder reference for server resources.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Server/Wangkanai.Caster.Server.csproj Added a Data folder reference for organizing server-side resources.
src/Persistence/Wangkanai.Caster.Presistence.csproj Introduced a new package reference for ASP.NET Core Identity EF Core.
src/Infrastructure/Wangkanai.Caster.Infrastructure.csproj Added EF Core packages and Identity EF Core package reference.
db.ps1 Created a new PowerShell script for database migration operations.
Directory.Packages.props Updated package dependencies by replacing EF Core Design with Relational.
Caster.slnx Included db.ps1 to ensure the new database operations script is tracked.

@wangkanai wangkanai moved this to In progress in Caster Jun 13, 2025
@wangkanai wangkanai merged commit 47becf4 into main Jun 13, 2025
1 check passed
@wangkanai wangkanai deleted the db branch June 13, 2025 06:27
@github-project-automation github-project-automation bot moved this from In progress to Done in Caster Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant