Browse Source

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)
balu 11 years ago
parent
commit
583f11ada4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      setup.php

+ 2 - 1
setup.php

@@ -22,6 +22,7 @@
 # 
 # Contributor(s):
 #   Daniel Triendl <daniel@pew.cc>
+#   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)';