-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added v0.2.txt file with mongo shell commands and instructions
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Mongo shell to upgrade from 0.1 to 0.2 | ||
# | ||
# DO NOT run these if you already running version Lampcms 0.2 or above | ||
# | ||
# INSTRUCTIONS: login as administrator to your Lampcms installation | ||
# Click on Settings | ||
# You should see the "Update Mongo Database" link | ||
# If you don't see that link then you do not have the permission | ||
# Add this permission to your acl.ini file - for administrator group only! | ||
# run_mongo_shell = A | ||
# -------------- COPY LINES BELOW AND PASTE IN THE FORM, press submit ----------- | ||
db.QUESTIONS.update({i_status: null}, {$set : {i_status: 1}}, false, true); | ||
db.QUESTIONS.update({i_del_ts: {'$exists' : true}}, {$set : {i_status: 2}}, false, true); | ||
db.ANSWERS.update({i_status: null}, {$set : {i_status: 1}}, false, true); | ||
db.ANSWERS.update({i_del_ts: {'$exists' : true}}, {$set : {i_status: 2}}, false, true); |