a little bit of cleaning for the upgrade scripts
This commit is contained in:
parent
b706d50bdf
commit
261575eb94
@ -44,3 +44,7 @@ collection.find.each do |page|
|
||||
|
||||
collection.update({ '_id' => page['_id'] }, { '$set' => { 'redirect_url' => { locale => page['redirect_url'] } } })
|
||||
end
|
||||
|
||||
# Update Norwegian locale from 'no' to 'nb'
|
||||
collection = db.collections.detect { |c| c.name == 'locomotive_accounts' }
|
||||
collection.update({ 'locale' => 'no' }, { '$set' => { 'locale' => 'nb' }}, { :multi => true })
|
@ -358,8 +358,8 @@ if collection = db.collections.detect { |c| c.name == 'pages' }
|
||||
end
|
||||
|
||||
# Update Norwegian locale from 'no' to 'nb'
|
||||
if collection = db.collections.detect {|c| c.name == 'locomotive_accounts'}
|
||||
collection.update({ 'locale' => 'no' }, { '$set' => {'locale' => 'nb'}}, {:multi => true})
|
||||
if collection = db.collections.detect { |c| c.name == 'locomotive_accounts' }
|
||||
collection.update({ 'locale' => 'no' }, { '$set' => { 'locale' => 'nb' } }, { :multi => true })
|
||||
end
|
||||
|
||||
# some cleaning
|
||||
|
Loading…
Reference in New Issue
Block a user