mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Teams/Organizations part 2, in progress. Table: org, add index for name field.
Thanks to xet7 ! Related #802
This commit is contained in:
parent
2cedbcb9b3
commit
583f32e5c5
1 changed files with 7 additions and 0 deletions
|
@ -118,4 +118,11 @@ Org.attachSchema(
|
|||
}),
|
||||
);
|
||||
|
||||
if (Meteor.isServer) {
|
||||
// Index for Organization name.
|
||||
Meteor.startup(() => {
|
||||
Org._collection._ensureIndex({ name: -1 });
|
||||
});
|
||||
}
|
||||
|
||||
export default Org;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue