-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Snapshot location uisng Add-Migration -OutputDir with Release fodler #13342
Comments
Feel free to move the file and change the namespace. The tool can usually find it and update it. Don't add two snapshots. That will cause problems. |
@bricelam I have tried to move to root, i.e "Migrations" and then an add-migration just creates a new snapshot. |
@generik0 Can you please post a runnable project/solution that demonstrates the behavior you are seeing? |
@ajcvickers I have made an example. You just need to run: |
@generik0 Yes, thank you. I was able to reproduce this previously, hence it is assigned as a bug and in a milestone. |
Hi, is it possible to create multiple target? previously my database is SQL server and I already have some migration histories, now I may want to deploy it to MySQL but all I can do is to delete the SQL Server migrations folder and start from the beginning again. if I can specify the output folder for example Migrations-MySQL and there will be a new ModelSnapShot for MySQL generated would be better. so the structure could be: then I can specify to UseSqlServer or UseMySql with the target Migrations. |
…ation Note, --output-dir is still used to determine the directory on the first migration. Fixes dotnet#13342
HI
Thanks for a cool package.
When i for a migration i like to use:
Add-Migration -OutputDir Migrations\Release2018_x -Context XzyMigrationDbContext -Project Xzy.Migrations -StartupProject Xzy.App -Name Add_Xxy
But this also means that the snapshot is in the Migrations\Release2018_x folder.
What do i do when i make the next release and the migrations shoud be in Migrations\Release2019_y release.
Will there be issues with the multiple shnapshots=?
Thanks again, Br Rik
The text was updated successfully, but these errors were encountered: