+roundcube (0.7.1-1) unstable; urgency=low
+
+ * New upstream version. Closes: #656093.
+
+ -- Vincent Bernat <bernat@debian.org> Tue, 17 Jan 2012 08:57:11 +0100
+
roundcube (0.7-3) unstable; urgency=low
* Ship jqueryui plugin. Closes: #653274.
loginbox-size.patch
default-charset-utf8.patch
debianize_password_plugin.patch
-sql-fixes.patch
use-debian-jquery-ui.patch
+++ /dev/null
-Various SQL fixes for 0.7.
---- roundcubemail/SQL/mysql.update.sql (revision 5468)
-+++ roundcubemail/SQL/mysql.update.sql (revision 5618)
-@@ -147,4 +147,6 @@
-
- -- Updates from version 0.6
-+
-+/*!40014 SET FOREIGN_KEY_CHECKS=0 */;
-
- ALTER TABLE `users` CHANGE `alias` `alias` varchar(128) BINARY NOT NULL;
-@@ -210,4 +212,6 @@
- ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
-
-+/*!40014 SET FOREIGN_KEY_CHECKS=1 */;
-+
- -- Updates from version 0.7-beta
-
---- roundcubemail/SQL/sqlite.update.sql (revision 5468)
-+++ roundcubemail/SQL/sqlite.update.sql (revision 5615)
-@@ -247,5 +247,5 @@
- );
-
--CREATE UNIQUE INDEX ix_searches_user_type_name (user_id, type, name);
-+CREATE UNIQUE INDEX ix_searches_user_type_name ON searches (user_id, type, name);
-
- DROP TABLE messages;
---- roundcubemail/SQL/sqlite.initial.sql (revision 5460)
-+++ roundcubemail/SQL/sqlite.initial.sql (revision 5615)
-@@ -148,5 +148,5 @@
- );
-
--CREATE UNIQUE INDEX ix_searches_user_type_name (user_id, type, name);
-+CREATE UNIQUE INDEX ix_searches_user_type_name ON searches (user_id, type, name);
-
- -- --------------------------------------------------------
---- roundcubemail/SQL/postgres.update.sql (revision 5468)
-+++ roundcubemail/SQL/postgres.update.sql (revision 5627)
-@@ -128,5 +128,5 @@
- );
-
--DROP SEQUENCE messages_ids;
-+DROP SEQUENCE message_ids;
- DROP TABLE messages;
-
--- /dev/null
+-- Updates from version 0.7
+
+ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`;
+ALTER TABLE `contacts` DROP INDEX `user_contacts_index`;
+ALTER TABLE `contacts` MODIFY `email` text NOT NULL DEFAULT '';
+ALTER TABLE `contacts` ADD INDEX `user_contacts_index` (`user_id`,`del`);
+ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
+ REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+ALTER TABLE `cache` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `cache_index` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `cache_thread` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `cache_messages` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `contacts` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `contactgroups` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `contactgroupmembers` ALTER `contact_id` DROP DEFAULT;
+ALTER TABLE `identities` ALTER `user_id` DROP DEFAULT;
+ALTER TABLE `searches` ALTER `user_id` DROP DEFAULT;
--- /dev/null
+-- Updates from version 0.7
+
+DROP INDEX contacts_user_id_idx;
+CREATE INDEX contacts_user_id_idx ON contacts USING btree (user_id, del);
+ALTER TABLE contacts ALTER email TYPE text;
--- /dev/null
+-- Updates from version 0.7
+
+CREATE TABLE contacts_tmp (
+ contact_id integer NOT NULL PRIMARY KEY,
+ user_id integer NOT NULL,
+ changed datetime NOT NULL default '0000-00-00 00:00:00',
+ del tinyint NOT NULL default '0',
+ name varchar(128) NOT NULL default '',
+ email text NOT NULL default '',
+ firstname varchar(128) NOT NULL default '',
+ surname varchar(128) NOT NULL default '',
+ vcard text NOT NULL default '',
+ words text NOT NULL default ''
+);
+
+INSERT INTO contacts_tmp (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words)
+ SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts;
+
+DROP TABLE contacts;
+
+CREATE TABLE contacts (
+ contact_id integer NOT NULL PRIMARY KEY,
+ user_id integer NOT NULL,
+ changed datetime NOT NULL default '0000-00-00 00:00:00',
+ del tinyint NOT NULL default '0',
+ name varchar(128) NOT NULL default '',
+ email text NOT NULL default '',
+ firstname varchar(128) NOT NULL default '',
+ surname varchar(128) NOT NULL default '',
+ vcard text NOT NULL default '',
+ words text NOT NULL default ''
+);
+
+INSERT INTO contacts (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words)
+ SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts_tmp;
+
+CREATE INDEX ix_contacts_user_id ON contacts(user_id, del);
+DROP TABLE contacts_tmp;