Changes between Version 24 and Version 25 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
10/30/05 08:48:48 (9 years ago)
Author:
anonymous
Comment:

sqlite < 3.2.0 doesn't support ALTER TABLE, so I added alternate instructions

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v24 v25  
    132132
    133133 * Execute this SQL command: {{{ALTER TABLE auth_admin_log RENAME TO django_admin_log;}}}
     134 * If you're using an SQLite version older than 3.2.0 (no ALTER TABLE support), execute these SQL commands (following [http://www.sqlite.org/faq.html#q13 this pattern]):
     135   {{{
     136   BEGIN TRANSACTION;
     137   CREATE TEMPORARY TABLE auth_backup(id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message);
     138   INSERT INTO auth_backup SELECT id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message FROM auth_admin_log;
     139   DROP TABLE auth_admin_log;
     140   CREATE TABLE django_admin_log(id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message);
     141   INSERT INTO django_admin_log SELECT id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message FROM auth_backup;
     142   DROP TABLE t1_backup;
     143   COMMIT;
     144   }}}
    134145 * If you're using PostgreSQL, execute these SQL commands:
    135146   {{{
Back to Top