From a19d5bc9830fb5f98ad5871834fa162806848d00 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Fri, 1 Apr 2011 13:29:25 -0400 Subject: [PATCH] minor: removed old 1.0 upgrade notes --- Rakefile | 2 +- docs/1.0_UPGRADE.md | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 docs/1.0_UPGRADE.md diff --git a/Rakefile b/Rakefile index 0c555c4..1ef75b3 100644 --- a/Rakefile +++ b/Rakefile @@ -146,7 +146,7 @@ task :ydoc do require File.join(File.dirname(__FILE__), 'lib', 'mongo') out = File.join('ydoc', Mongo::VERSION) FileUtils.rm_rf('ydoc') - system "yardoc lib/**/*.rb lib/mongo/**/*.rb lib/bson/**/*.rb -e yard/yard_ext.rb -p yard/templates -o #{out} --title MongoRuby-#{Mongo::VERSION} --files docs/TUTORIAL.md,docs/GridFS.md,docs/FAQ.md,docs/REPLICA_SETS.md,docs/WRITE_CONCERN.md,docs/HISTORY.md,docs/CREDITS.md,docs/1.0_UPGRADE.md,docs/RELEASES.md" + system "yardoc lib/**/*.rb lib/mongo/**/*.rb lib/bson/**/*.rb -e yard/yard_ext.rb -p yard/templates -o #{out} --title MongoRuby-#{Mongo::VERSION} --files docs/TUTORIAL.md,docs/GridFS.md,docs/FAQ.md,docs/REPLICA_SETS.md,docs/WRITE_CONCERN.md,docs/HISTORY.md,docs/CREDITS.md,docs/docs/RELEASES.md" end namespace :bamboo do diff --git a/docs/1.0_UPGRADE.md b/docs/1.0_UPGRADE.md deleted file mode 100644 index 86e294d..0000000 --- a/docs/1.0_UPGRADE.md +++ /dev/null @@ -1,21 +0,0 @@ -You can upgrade freely from v0.20 to v1.0. - -However, if you're running a version < 0.20, upgrade to 0.20 -before upgrading to 1.0. - -The upgrade to 0.20 requires some minor code upgrades. - -1. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON -module; if you're catching these, you will need to modify your code. - -2. The BSON types are now scoped under the BSON module. - -3. Note that mongo_ext no longer exists. The new gems are bson and bson_ext. - -4. Indexes on GridFS chunks collections should be unique. If you have existing GridFS -collections, you should drop the current index and replace with a unique one. Before you do this, -make sure that index doesn't exist; no need to go through process unnecessarily. -If you do need to create the index, once you have the chunks collection, here are the commands you can run: - - @chunks.drop_index('files_id_1_n_1') - @chunks.create_index([['files_id', Mongo::ASCENDING], ['n', Mongo::ASCENDING]], :unique => true)