From 583f11ada4d2d0b9d043f02b1dcdff7a2eaea67d Mon Sep 17 00:00:00 2001 From: balu Date: Wed, 12 Jun 2013 03:19:22 +0300 Subject: [PATCH] Change lenght of md5 field Change lenght of md5 field to be able to store crypt output (maxlenght should be 123 corresponding to http://php.net/manual/de/function.crypt.php) --- setup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 4df213f..27916d1 100644 --- a/setup.php +++ b/setup.php @@ -22,6 +22,7 @@ # # Contributor(s): # Daniel Triendl +# balu # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -346,7 +347,7 @@ if ( $action == "step2" ) { $create_statement = " create table wbo ( username varchar(100), id varchar(65), collection varchar(100), parentid varchar(65), predecessorid int, modified real, sortindex int, payload text, payload_size int, ttl int, primary key (username,collection,id))"; - $create_statement2 = " create table users ( username varchar(255), md5 varchar(64), primary key (username)) "; + $create_statement2 = " create table users ( username varchar(255), md5 varchar(124), primary key (username)) "; $index1 = 'create index parentindex on wbo (username, parentid)'; $index2 = 'create index predecessorindex on wbo (username, predecessorid)'; $index3 = 'create index modifiedindex on wbo (username, collection, modified)';