Changeset 3132
- Timestamp:
- 06/16/06 08:37:26 (2 years ago)
- Files:
-
- django/trunk/docs/faq.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/faq.txt
r3105 r3132 407 407 408 408 If you don't mind clearing data, just pipe the output of the appropriate 409 `` django-admin.py sqlreset`` command into your database's command-line utility.409 ``manage.py sqlreset`` command into your database's command-line utility. 410 410 For example:: 411 411 412 django-admin.py sqlreset appname | psql dbname 413 414 That "psql" assumes you're using PostgreSQL. If you're using MySQL, use the 415 appropriate command-line utility, ``mysql``. 416 417 ``django-admin.py sqlreset`` outputs SQL that clears the app's database 412 manage.py sqlreset appname | manage.py dbshell 413 414 ``manage.py sqlreset`` outputs SQL that clears the app's database 418 415 table(s) and creates new ones. The above command uses a Unix pipe to send the 419 SQL directly to the PostgreSQL command-line utility, which accepts SQL as 420 input. 416 SQL directly to the database command-line utility, which accepts SQL as 417 input (``manage.py dbshell`` will launch the appropriate tool for the database 418 configured in ``settings.py``). 421 419 422 420 If you do care about deleting data, you'll have to execute the ``ALTER TABLE``
