AcademicHubOrg / AcademicHub

Designed and developed an innovative web‑based learning management system (LMS) specifically tailored for university environments. The core objective of this project was to create a scalable, easily modifiable, and supportable platform, meeting the dynamic needs of academic institutions.
MIT License
3 stars 0 forks source link

Fixed migrations by adding DesignTimeDbContextFactory #177

Closed YaroslavKSE closed 10 months ago

YaroslavKSE commented 10 months ago

Closes #171 Here is the results:

PS D:\C#\AcademicHub\Identity\Identity.Data> dotnet ef migrations add Test                        
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'

Here is logs from docker: image

@Bardin08 For some reason I can't commit migrations. However, they are created. Here is the screenshot: image

@Bardin08 By the way, you can't undo migrations by running the command dotnet ef migrations remove. This is because the postgres sql is running inside docker container and have no port for outside world. Should we then delete them manually?

Bardin08 commented 10 months ago
  1. I don't understand which issue u have with committing them.
  2. Yep, it's okay to drop them manually
Bardin08 commented 10 months ago

looks like this is a duplicate for #171

YaroslavKSE commented 10 months ago
  1. I don't understand which issue u have with committing them.
  2. Yep, it's okay to drop them manually
  1. I'll check one more time maybe it is the problem of gitignore
  2. Thanks, so we will uses this approach
  3. I'll add factories for anouther services and commit changes tomorrow
Bardin08 commented 10 months ago

@YaroslavKSE Okay! That look good. Let's move forward with this approach

Bardin08 commented 10 months ago

@YaroslavKSE do u have any plans to merge this PR?

Bardin08 commented 10 months ago

I'm jumping out at this point, and yeah, if u or someone else from the team needs my help, just let me know on Slack or Telegram, and I'll do my best to assist!