include copy of django_extension, dont install django from git
This commit is contained in:
parent
055018f12e
commit
3f7215035a
200 changed files with 14119 additions and 4 deletions
39
contrib/django_extensions/docs/sqldiff.rst
Normal file
39
contrib/django_extensions/docs/sqldiff.rst
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
sqldiff
|
||||
=======
|
||||
|
||||
:synopsis: Prints the ALTER TABLE statemens for the given appnames.
|
||||
|
||||
Django command that scans all models for the given appnames and compares
|
||||
their database schema with the real database tables.
|
||||
|
||||
It indicates how columns in the database are different from the SQL that would
|
||||
be generated by Django. This command is not a database migration tool. Though
|
||||
it might certainly be of help during migrations. It's purpose is to show the
|
||||
current differences as a way to checking or debugging your models compared to
|
||||
the real database tables and columns.
|
||||
|
||||
Supported Databases
|
||||
-------------------
|
||||
|
||||
Currently the following databases are supported:
|
||||
|
||||
* PostgreSQL
|
||||
* Sqlite3
|
||||
* MySQL
|
||||
* Oracle
|
||||
|
||||
Patches to support other databases are welcome ! :-)
|
||||
|
||||
|
||||
Example Usage
|
||||
-------------
|
||||
|
||||
::
|
||||
|
||||
# View SQL differences for all installed application
|
||||
$ ./manage.py sqldiff -a
|
||||
|
||||
::
|
||||
|
||||
# View SQL differences for all installed application using text instead of SQL
|
||||
$ ./manage.py sqldiff -a -t
|
||||
Loading…
Add table
Add a link
Reference in a new issue