| 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 | }}} |