Update SQL scripts to match Roundcube format for schema upgrades, update/add UPGRADING instructions

This commit is contained in:
Aleksander Machniak 2013-01-18 09:40:48 +01:00
parent 0151bac954
commit 7672e60ecb
20 changed files with 57 additions and 21 deletions

View file

@ -4,7 +4,7 @@ A calendar module for Roundcube
This plugin currently supports a local database as well as a Kolab groupware
server as backends for calendar and event storage. For both drivers, some
initialization of the local database is necessary. To do so, execute the
SQL commands in drivers/<yourchoice>/SQL/<yourdatabase>.sql
SQL commands in drivers/<yourchoice>/SQL/<yourdatabase>.initial.sql
The client-side calendar UI relies on the "fullcalendar" project by Adam Arshaw
with extensions made for the use in Roundcube. All changes are published in

View file

@ -1,11 +1,17 @@
UPGRADING instructions
======================
From version 0.7 and 0.8
------------------------
To update database schema, depending on the driver you're using,
please run in Roundcube bin/ directory:
The schemas of the backend databases have changed. Depending on the driver
you're using, please execute all statements from divers/<driver>/sql/<db>.upgrade-0.7.sql
on your local database.
updatedb.sh --package=calendar-<driver> --version=<version> \
--dir=../plugins/calendar/drivers/<driver>/SQL
[*] Replace <driver> with "database" or "kolab" (without quotes)
[*] Replace <version> with Roundcube version e.g. 0.7.3
[*] Roundcube should be upgraded before plugin upgrades
Example:
updatedb.sh --package=calendar-kolab --version=0.8.0 \
--dir=../plugins/calendar/drivers/kolab/SQL

View file

@ -78,3 +78,5 @@ CREATE TABLE `itipinvitations` (
CONSTRAINT `fk_itipinvitations_user_id` FOREIGN KEY (`user_id`)
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
INSERT INTO system (name, value) VALUES ('calendar-database-version', '2013011000.sql');

View file

@ -1,5 +1,3 @@
/**
* MySQL database updates since version 0.7/0.8
**/
-- MySQL database updates since version 0.7/0.8
ALTER TABLE `events` ADD `sequence` int(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `changed`;

View file

@ -0,0 +1 @@
-- empty

View file

@ -102,3 +102,5 @@ CREATE TABLE itipinvitations (
);
CREATE INDEX itipinvitations_user_id_event_uid_idx ON itipinvitations (user_id, event_uid);
INSERT INTO system (name, value) VALUES ('calendar-database-version', '2013011000.sql');

View file

@ -1,5 +1,3 @@
/**
* Postgres database updates since version 0.7/0.8
**/
-- Postgres database updates since version 0.7/0.8
ALTER TABLE events ADD sequence integer NOT NULL DEFAULT 0;

View file

@ -0,0 +1 @@
-- empty

View file

@ -73,3 +73,4 @@ CREATE TABLE itipinvitations (
CREATE INDEX ix_itipinvitations_uid ON itipinvitations(user_id, event_uid);
INSERT INTO system (name, value) VALUES ('calendar-database-version', '2013011000.sql');

View file

@ -0,0 +1 @@
-- empty

View file

@ -29,3 +29,4 @@ CREATE TABLE IF NOT EXISTS `itipinvitations` (
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
INSERT INTO system (name, value) VALUES ('calendar-kolab-version', '2013011000.sql');

View file

@ -1,7 +1,3 @@
/**
* Kolab backend SQL updates
**/
DROP TABLE IF EXISTS `kolab_alarms`;
CREATE TABLE `kolab_alarms` (

View file

@ -0,0 +1 @@
-- empty

View file

@ -15,15 +15,11 @@ REQUIREMENTS
* PEAR: HTTP/Request2
* PEAR: Net/URL2
* Optional for old format support:
Horde Kolab_Format package and all of its dependencies
which are at least Horde_(Browser,DOM,NLS,String,Utils)
INSTALLATION
------------
To use local cache you need to create a dedicated table in Roundcube's database.
To do so, execute the SQL commands in SQL/<yourdatabase>.sql
To do so, execute the SQL commands in SQL/<yourdatabase>.initial.sql
CONFIGURATION

View file

@ -23,3 +23,5 @@ CREATE TABLE `kolab_cache` (
`words` TEXT NOT NULL,
PRIMARY KEY(`resource`,`type`,`msguid`)
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
INSERT INTO `system` (`name`, `value`) VALUES ('libkolab-version', '2013011000');

View file

@ -0,0 +1 @@
-- empty

View file

@ -0,0 +1,9 @@
UPGRADING instructions
======================
To update database schema please run in Roundcube bin/ directory:
updatedb.sh --package=libkolab --version=<version> --dir=../plugins/libkolab/SQL
[*] Replace <version> with Roundcube version e.g. 0.7.3
[*] Roundcube should be upgraded before plugin upgrades

View file

@ -0,0 +1,17 @@
UPGRADING instructions
======================
To update database schema, depending on the driver you're using,
please run in Roundcube bin/ directory:
updatedb.sh --package=tasklist-<driver> --version=<version> \
--dir=../plugins/tasklist/drivers/<driver>/SQL
[*] Replace <driver> with "database" or "kolab" (without quotes)
[*] Replace <version> with Roundcube version e.g. 0.7.3
[*] Roundcube should be upgraded before plugin upgrades
Example:
updatedb.sh --package=tasklist-database --version=0.9-beta \
--dir=../plugins/tasklist/drivers/database/SQL

View file

@ -47,3 +47,5 @@ CREATE TABLE `tasks` (
CONSTRAINT `fk_tasks_tasklist_id` FOREIGN KEY (`tasklist_id`)
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');

View file

@ -0,0 +1 @@
-- empty