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

Saving document doesn't create new fields in existing collection #620

Closed
bikash8gupta opened this issue Apr 3, 2014 · 0 comments
Closed

Comments

@bikash8gupta
Copy link

I have a collection which has few fields. I added new fields with some default values.
Now in order to query on those new fields, I tried iterating on whole collection and saving it so that the default values get stored in the db and can be queried. But it didn't create new fields in the database and hence cannot be queried. Earlier it used to work with older versions. Now I am using mongoengine 0.8.2

DavidBord added a commit to DavidBord/mongoengine that referenced this issue Aug 5, 2014
iici-gli added a commit to iici-gli/mongoengine that referenced this issue Oct 13, 2015
…changing database

This resolved issue Please recall fix on: Saving document doesn't create new fields in existing collection MongoEngine#620 MongoEngine#1126
iici-gli added a commit to iici-gli/mongoengine that referenced this issue Oct 18, 2015
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