- Add columns for sorting in kolab_cache_contact - Extend bin/modcache.sh script to update existing cache records - Add setters for ORDER BY and LIMIT clauses - Adapt the kolab_addressbook plugin to fetch contacts page-wise ATTENTION: This changeset contains database schema changes! Run `bin/updatedb.sh --dir plugins/libkolab/SQL --package libkolab` Afterwards, the cached data needs to be updated. To do so, either run `plugins/libkolab/bin/modcache.sh update --type=contact` or execute the following query DELETE FROM `kolab_folders` WHERE `type`='contact';
9 lines
387 B
SQL
9 lines
387 B
SQL
ALTER TABLE `kolab_cache_contact` ADD `name` VARCHAR(255) NOT NULL,
|
|
ADD `firstname` VARCHAR(255) NOT NULL,
|
|
ADD `surname` VARCHAR(255) NOT NULL,
|
|
ADD `email` VARCHAR(255) NOT NULL;
|
|
|
|
-- updating or clearing all contacts caches is required.
|
|
-- either run `bin/modcache.sh update --type=contact` or execute the following query:
|
|
-- DELETE FROM `kolab_folders` WHERE `type`='contact';
|
|
|