| 333 | |
| 334 | * SQLite: |
| 335 | {{{ |
| 336 | BEGIN; |
| 337 | ALTER TABLE auth_users RENAME TO auth_users_old; |
| 338 | CREATE TABLE auth_users ( |
| 339 | id integer NOT NULL PRIMARY KEY, |
| 340 | username varchar(30) NOT NULL UNIQUE, |
| 341 | first_name varchar(30) NOT NULL, |
| 342 | last_name varchar(30) NOT NULL, |
| 343 | email varchar(75) NOT NULL, |
| 344 | password varchar(128) NOT NULL, |
| 345 | is_staff bool NOT NULL, |
| 346 | is_active bool NOT NULL, |
| 347 | is_superuser bool NOT NULL, |
| 348 | last_login datetime NOT NULL, |
| 349 | date_joined datetime NOT NULL |
| 350 | ); |
| 351 | INSERT INTO auth_users ( |
| 352 | id, |
| 353 | username, |
| 354 | first_name, |
| 355 | last_name, |
| 356 | email, |
| 357 | password, |
| 358 | is_staff, |
| 359 | is_active, |
| 360 | is_superuser, |
| 361 | last_login, |
| 362 | date_joined |
| 363 | ) |
| 364 | SELECT * FROM auth_users_old; |
| 365 | DROP TABLE auth_users_old; |
| 366 | COMMIT; |
| 367 | }}} |