2009-08-06 21:23:56 +02:00
|
|
|
|
|
|
|
t = db.indexd;
|
|
|
|
t.drop();
|
|
|
|
|
|
|
|
t.save( { a : 1 } );
|
|
|
|
t.ensureIndex( { a : 1 } );
|
2009-11-09 19:10:30 +01:00
|
|
|
assert.throws( function(){ db.indexd.$_id_.drop(); } );
|
|
|
|
assert( t.drop() );
|
2009-08-13 19:26:03 +02:00
|
|
|
|
|
|
|
//db.indexd.$_id_.remove({});
|