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

Rezoom overwrite V1.model.sql and rzsql.json with paket update #9

Closed
Risord opened this issue Aug 8, 2017 · 2 comments
Closed

Rezoom overwrite V1.model.sql and rzsql.json with paket update #9

Risord opened this issue Aug 8, 2017 · 2 comments

Comments

@Risord
Copy link

Risord commented Aug 8, 2017

Hi

I converted yesterday db schema to rezoom, run migrations, did paket update and made commit. Today I noticed it's all gone and initial migraiont was replaced by hello world one. Content of database is only evidence that yesterday I had something. I was able to replicate loss and paket update seems to be the thing.

Edit: Nuget packages used:
Rezoom.SQL.Provider
Rezoom.SQL.Provider.TSQL

@rspeele
Copy link
Collaborator

rspeele commented Aug 8, 2017

Hi,

Thank you for reporting this issue. I've never used Paket, and NuGet always asks before overwriting files if the local file has changed from the one in the currently installed package version.

Paket apparently does not ask, but has an option to not overwrite changed content files:

fsprojects/Paket#202

See this comment in particular for the Paket options related to content files.

Had I known about this, I probably would not have taken the approach of building NuGet packages with "helper" files for getting started. Given that the packages already exist, I will add a warning for Paket users in the tutorial and documentation.

@rspeele
Copy link
Collaborator

rspeele commented Aug 11, 2017

I have updated the tutorial to include a warning and advice for how to safely set up the dependencies with Paket.

@rspeele rspeele closed this as completed Aug 11, 2017
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

No branches or pull requests

2 participants