Skip to content

Commit

Permalink
Increase size of user password column
Browse files Browse the repository at this point in the history
This allows the longer strings that newer PHP generates to be stored
correctly.

Done upstream in mysociety/theyworkforyou@eca809e

Fixes openaustralia/openaustralia#579

You can "migrate" your database with:

ALTER TABLE `users`
CHANGE COLUMN `password` `password` VARCHAR(102) NOT NULL DEFAULT '';
  • Loading branch information
henare committed Dec 1, 2015
1 parent 0bebfca commit f5eb394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ CREATE TABLE `users` (
`firstname` varchar(255) NOT NULL default '',
`lastname` varchar(255) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`password` varchar(34) NOT NULL default '',
`password` varchar(102) NOT NULL default '',
`lastvisit` datetime NOT NULL default '0000-00-00 00:00:00',
`registrationtime` datetime NOT NULL default '0000-00-00 00:00:00',
`registrationip` varchar(20) default NULL,
Expand Down

0 comments on commit f5eb394

Please sign in to comment.