Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DataBase #199

Open
ascariz opened this issue Dec 5, 2023 · 4 comments · May be fixed by #200
Open

Update DataBase #199

ascariz opened this issue Dec 5, 2023 · 4 comments · May be fixed by #200

Comments

@ascariz
Copy link

ascariz commented Dec 5, 2023

Hello.
Thanks for this project and sorry for my English.
I have changed all connections to DB

I am trying to update the DB, I have modified sql server and in VS PowerShell I select the Equinox.Infra.Data project and execute these commands but it does nothing.

add-migration ProjectsPart1 -context EquinoxContext -outputdir Migrations/

What can be?

@JohnSalazar
Copy link

JohnSalazar commented Dec 5, 2023 via email

@ascariz
Copy link
Author

ascariz commented Dec 5, 2023

The problem is that the file created by the add-migration command is created empty, not with the new tables that I have in SQL Server

@ascariz
Copy link
Author

ascariz commented Dec 8, 2023

Good morning.
Sorry for the English.
I have done it several times, change the files
Equinox.Infra.Data -> appsettings.json
Equinox.Services.Api -> appsettings.json
Equinox.UI.Web -> appsettings.json

But I am unable to update the Database, I have created the entities in the Domain.Models project and also in the Database. I execute the commands
add-migration ProjectsLetters -context EquinoxContext
update-database -context EquinoxContext

and it creates the empty ProyectosCartas.cs file.

What can happen?

@ascariz
Copy link
Author

ascariz commented Dec 9, 2023

Solved, thank you

doks-coders added a commit to doks-coders/EquinoxProject that referenced this issue Mar 19, 2024
- Implement functionality to run initial migration before the application starts

Fixes EduardoPires#199
doks-coders added a commit to doks-coders/EquinoxProject that referenced this issue Mar 19, 2024
- Implement functionality to run initial migration before the application starts

Fixes EduardoPires#199
@doks-coders doks-coders linked a pull request Mar 19, 2024 that will close this issue
doks-coders added a commit to doks-coders/EquinoxProject that referenced this issue Mar 19, 2024
- Implement functionality to run initial migration before the application starts

Fixes EduardoPires#199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants