From: Vincent Bernat Date: Sun, 15 Feb 2009 16:49:44 +0000 (+0000) Subject: Remove hack to update a SQLite table for an upgrade from a quite old X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=948ed19ae14dbf8fc9b66c40af49fd0960019f10;p=roundcube.git Remove hack to update a SQLite table for an upgrade from a quite old version of roundcube. --- diff --git a/debian/changelog b/debian/changelog index cdbe1a1..0460688 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ roundcube (0.2~stable-1) unstable; urgency=low + Update patch to use packaged tinymce. * Upload to unstable since Lenny is out. * Apply fix for XSS issue (CVE-2009-0413). Closes: #514179. + * Remove hack to update a SQLite table for an upgrade from a quite old + version of roundcube. * Fix pending l10n issues: + Update English debconf template. Closes: #473794. + Add Swedish translation thanks to Martin Bagge. Closes: #508752. diff --git a/debian/roundcube-core.postinst b/debian/roundcube-core.postinst index 5e7e0e2..5db3c4b 100644 --- a/debian/roundcube-core.postinst +++ b/debian/roundcube-core.postinst @@ -39,58 +39,6 @@ apache_install() { case "$1" in configure) - # From 0.1-beta2.2 to 0.1-rc1, a column was added to table - # `identities'. For MySQL and PostgreSQL, this is handled by - # dbconfig-common but for sqlite, there is no way to add a - # column to a table. Therefore, we dump here the table and add - # the column. - [ "$dbc_upgrade" = "true" ] && { - case "$dbc_dbtype" in - sqlite) - db="${dbc_basepath}/${dbc_dbname}" - # OK, we need to check if the table contains html_signature - if ! sqlite "$db" '.schema identities' | grep -q html_signature; then - # We need to add it - echo -n "Need to upgrade 'identities' table in $db... " - upgrade_tmp=$(mktemp -t roundcube.sqlite.XXXXXXXXXX) - ( - cat < $upgrade_tmp - sqlite "$db" < $upgrade_tmp - rm $upgrade_tmp - echo "OK" - fi - ;; - *) - # Do nothing - ;; - esac - } - CONFFILE=/etc/roundcube/main.inc.php touch $CONFFILE.ucftmp chmod 640 $CONFFILE.ucftmp