Fix automatic db updates; trigger contact indexing after upgrade
| | |
| | | ALTER TABLE [dbo].[contacts] ALTER COLUMN [email] [varchar] (255) COLLATE Latin1_General_CI_AI NOT NULL
|
| | | GO
|
| | |
|
| | | -- Updates from version 0.5.X
|
| | | -- Updates from version 0.5.1
|
| | | -- Updates from version 0.5.2
|
| | | -- Updates from version 0.5.3
|
| | | -- Updates from version 0.5.4
|
| | |
|
| | | ALTER TABLE [dbo].[contacts] ADD [words] [text] COLLATE Latin1_General_CI_AI NULL
|
| | | GO
|
| | |
| | | |
| | | TRUNCATE TABLE `messages`; |
| | | |
| | | -- Updates from version 0.5.X |
| | | -- Updates from version 0.5.1 |
| | | -- Updates from version 0.5.2 |
| | | -- Updates from version 0.5.3 |
| | | -- Updates from version 0.5.4 |
| | | |
| | | ALTER TABLE `contacts` ADD `words` TEXT NULL AFTER `vcard`; |
| | | ALTER TABLE `contacts` CHANGE `vcard` `vcard` LONGTEXT /*!40101 CHARACTER SET utf8 */ NULL DEFAULT NULL; |
| | |
| | | |
| | | TRUNCATE messages; |
| | | |
| | | -- Updates from version 0.5.X |
| | | -- Updates from version 0.5.1 |
| | | -- Updates from version 0.5.2 |
| | | -- Updates from version 0.5.3 |
| | | -- Updates from version 0.5.4 |
| | | |
| | | ALTER TABLE contacts ADD words TEXT NULL; |
| | | CREATE INDEX contactgroupmembers_contact_id_idx ON contactgroupmembers (contact_id); |
| | |
| | | DELETE FROM messages; |
| | | |
| | | |
| | | -- Updates from version 0.5.X |
| | | -- Updates from version 0.5.1 |
| | | -- Updates from version 0.5.2 |
| | | -- Updates from version 0.5.3 |
| | | -- Updates from version 0.5.4 |
| | | |
| | | CREATE TABLE contacts_tmp ( |
| | | contact_id integer NOT NULL PRIMARY KEY, |
| | |
| | | target location and check and update the configuration and database schema. |
| | | After all is done, the temporary folder with the new Roundcube files can be |
| | | removed again. |
| | | See Post-Upgrade Activities section. |
| | | |
| | | Please also see Post-Upgrade Activities section. |
| | | |
| | | |
| | | Updating manually |
| | |
| | | } |
| | | } |
| | | |
| | | // index contacts for fulltext searching |
| | | if (version_compare($opts['version'], '0.6', '<')) { |
| | | system(INSTALL_PATH . 'bin/indexcontacts.sh'); |
| | | } |
| | | |
| | | if ($success) { |
| | | echo "This instance of Roundcube is up-to-date.\n"; |