upgrade.php:

- upgrade_318_mysql(): mark vacation_notification.notified field as
  latin1 to avoid overlong index (no upgrade function needed - if it
  broke before, upgrade.php bailed out)
  http://sourceforge.net/p/postfixadmin/discussion/676076/thread/0c919cfd/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@1521 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 11 years ago
parent 48ebe9c317
commit 8e3c1822a6

@ -16,6 +16,7 @@ Changes since 2.3.6 release
- when enabling/disabling a mailbox, also update the corresponding alias
- fix creating superadmin in setup.php with MariaDB (more strict SQL)
- trim() localpart in create-mailbox to avoid mailbox names with leading space
- mark vacation_notification.notified field as latin1 to avoid overlong index
Version 2.3.6 - 2013/01/02 - SVN r1417 (postfixadmin-2.3 branch)
----------------------------------------------------------------

@ -815,7 +815,7 @@ function upgrade_318_mysql() {
db_query_parsed( "
CREATE TABLE {IF_NOT_EXISTS} $table_vacation_notification (
on_vacation varchar(255) {LATIN1} NOT NULL,
notified varchar(255) NOT NULL,
notified varchar(255) {LATIN1} NOT NULL,
notified_at timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY on_vacation (`on_vacation`, `notified`),
CONSTRAINT `vacation_notification_pkey`
@ -827,7 +827,7 @@ function upgrade_318_mysql() {
# in case someone has manually created the table with utf8 fields before:
$all_sql = explode("\n", trim("
ALTER TABLE `$table_vacation_notification` CHANGE `notified` `notified` VARCHAR( 255 ) NOT NULL
ALTER TABLE `$table_vacation_notification` CHANGE `notified` `notified` VARCHAR( 255 ) {LATIN1} NOT NULL
ALTER TABLE `$table_vacation_notification` DEFAULT CHARACTER SET utf8
"));
# Possible errors that can be ignored:

Loading…
Cancel
Save