Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Wed Jul 8 2015 stephane de Labrusse <stephdl@de-labrusse.fr> - 1.3-…
…14.sme - Upgrade to sogo 2.3.0, alteration table needed - thank to ian case <ianc@caseinfo.net>
- Loading branch information
Showing
3 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This script updates c_partstates to mediumtext | ||
# adds c_description to Calendar quick tables | ||
# http://www.sogo.nu/bugs/view.php?id=3175 | ||
# the field length was actually changed in v2.2.18 | ||
|
||
MYSQLSOGOPASS=$(/sbin/e-smith/config getprop sogod DbPassword) | ||
|
||
tables=$(/usr/bin/mysql -B -N -usogo -p${MYSQLSOGOPASS} sogo -e "SELECT SUBSTRING_INDEX(c_quick_location, '/', -1) FROM sogo_folder_info WHERE c_path3 = 'Calendar'") | ||
|
||
for table in $tables; | ||
do | ||
/usr/bin/mysql -usogo -p${MYSQLSOGOPASS} sogo -e "ALTER TABLE $table MODIFY c_partstates mediumtext" 2>/dev/null | ||
/usr/bin/mysql -usogo -p${MYSQLSOGOPASS} sogo -e "ALTER TABLE $table ADD COLUMN c_description mediumtext" 2>/dev/null | ||
done |
4 changes: 4 additions & 0 deletions
4
root/etc/e-smith/templates/etc/e-smith/sql/init/32sogo_upgrade_2.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /bin/sh | ||
|
||
exec /etc/e-smith/events/actions/sogo_upgrade_2.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters