diff --git a/plugins/tasklist/README b/plugins/tasklist/README new file mode 100644 index 00000000..4b326e7d --- /dev/null +++ b/plugins/tasklist/README @@ -0,0 +1,23 @@ +A task management module for Roundcube +-------------------------------------- + +This plugin currently supports a local database as well as a Kolab groupware +server as backends for tasklists and todo items storage. + +INSTALLATION +------------ + +When usigng the database driver, some initialization of the local database is +necessary. To do so, execute the SQL commands in +drivers/database/SQL/.initial.sql + +For some general calendar-based operations such as alarms handling, this +plugin requires the `libcalendaring` plugin which is also part of the +Kolab Roundcube Plugins repository. Make sure that plugin is installed +and configured correctly. + +IMPORTANT +--------- + +This plugin doesn't work with the classic skin of Roundcube because no +templates are available for that skin. diff --git a/plugins/tasklist/drivers/database/SQL/mysql.initial.sql b/plugins/tasklist/drivers/database/SQL/mysql.initial.sql index 5e71788c..2746ca4c 100644 --- a/plugins/tasklist/drivers/database/SQL/mysql.initial.sql +++ b/plugins/tasklist/drivers/database/SQL/mysql.initial.sql @@ -7,7 +7,7 @@ * @copyright (C) 2012, Kolab Systems AG */ -CREATE TABLE `tasklists` ( +CREATE TABLE IF NOT EXISTS `tasklists` ( `tasklist_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `name` varchar(255) NOT NULL, @@ -19,7 +19,7 @@ CREATE TABLE `tasklists` ( REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) /*!40000 ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci */; -CREATE TABLE `tasks` ( +CREATE TABLE IF NOT EXISTS `tasks` ( `task_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tasklist_id` int(10) unsigned NOT NULL, `parent_id` int(10) unsigned DEFAULT NULL, @@ -48,4 +48,4 @@ CREATE TABLE `tasks` ( REFERENCES `tasklists`(`tasklist_id`) ON DELETE CASCADE ON UPDATE CASCADE ) /*!40000 ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci */; -INSERT INTO `system` (`name`, `value`) VALUES ('tasklist-database-version', '2013011000'); +REPLACE INTO `system` (`name`, `value`) VALUES ('tasklist-database-version', '2013011000');