Error in add index on collection
free-developers opened this issue · comments
Omid Aghakhani commented
Hello
Why do i cannot add index on collection?
The error is Index could not be created to MongoDB Collection because no keys were specified
My code is $this->mongo_db->add_index('omid','time');
When i use $this->mongo_db->add_index('omid',array('time' => "ASC"));
again have error Message: Undefined variable: command
Thank you guys
Intekhab Rizvi commented
It seems you open an issue on the wrong repository, the correct repository
is https://github.com/intekhabrizvi/codeigniter-mongodb-library
Could you please update your library and try again? We already fixed that
issue a long time ago.
Thanks
…On Sun, Oct 27, 2019 at 3:48 PM Omid Aghakhani ***@***.***> wrote:
Hello
Why do i cannot add index on collection?
The error is Index could not be created to MongoDB Collection because no
keys were specified
My code is $this->mongo_db->add_index('omid','time');
When i use $this->mongo_db->add_index('omid',array('time' => "ASC"));
again have error Message: Undefined variable: command
Thank you guys
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54?email_source=notifications&email_token=AACE33OFJEJAOGVMKDHT4KDQQVTINA5CNFSM4JFRBHJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUS6LVA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACE33KMCCIZHLVB24JNROTQQVTINANCNFSM4JFRBHJA>
.
--
Regards
Intekhab Rizvi