SF.net SVN: postfixadmin:[500] trunk/upgrade.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-12-13 07:30:40
|
Revision: 500
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=500&view=rev
Author: GingerDog
Date: 2008-12-13 07:30:36 +0000 (Sat, 13 Dec 2008)
Log Message:
-----------
upgrade.php: bug fix (thanks to matt rude for reporting it. no thanks to me for failing to type!) - see also https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2423106&group_id=191583
Modified Paths:
--------------
trunk/upgrade.php
Modified: trunk/upgrade.php
===================================================================
--- trunk/upgrade.php 2008-12-12 20:55:32 UTC (rev 499)
+++ trunk/upgrade.php 2008-12-13 07:30:36 UTC (rev 500)
@@ -1022,7 +1022,7 @@
function upgrade_495_mysql() {
$table_mailbox = table_by_key('mailbox');
db_query_parsed("ALTER TABLE $table_mailbox add local_part varchar(255) "); // allow to be null
- db_query_parsed("UPDATE $table_mailbox SET local_part = substring_index(username, '@', 1");
+ db_query_parsed("UPDATE $table_mailbox SET local_part = substring_index(username, '@', 1)");
db_query_parsed("ALTER TABLE $table_mailbox change local_part local_part varchar(255) NOT NULL"); // remove null-ness...
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|