Changes between Version 34 and Version 35 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Nov 20, 2005, 9:16:10 PM (19 years ago)
Author:
Adrian Holovaty
Comment:

Added "Changed field name and length for auth.User password_md5 field" section

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v34 v35  
    308308 * RSS feeds are now registered in URLconfs rather than in "magic" settings modules whose names end with "_rss".
    309309 * Templates for RSS titles and descriptions now live in a {{{feeds}}} directory, not an {{{rss}}} directory.
     310
     311== Changed field name and length for auth.User password_md5 field ==
     312
     313As of an upcoming change, the {{{password_md5}}} field in the {{{auth.User}}} model, which is used for authentication in the Django admin, was renamed to {{{password}}}, and its length was changed from 32 to 128 to accomodate longer hashes and password metadata, such as which hash algorithm to use. This affects everybody who uses the Django authentication system -- including users of the Django admin.
     314
     315Execute the following SQL to restore auth functionality:
     316
     317{{{
     318BEGIN;
     319ALTER TABLE auth_users ADD COLUMN password varchar(128);
     320UPDATE auth_users SET password = password_md5;
     321ALTER TABLE auth_users ALTER COLUMN password SET NOT NULL;
     322ALTER TABLE auth_users DROP COLUMN password_md5;
     323COMMIT;
     324}}}
Back to Top