Django

Code

Changeset 6794

Show
Ignore:
Timestamp:
12/01/07 11:44:59 (11 months ago)
Author:
ubernostrum
Message:

Fixed #5776: Added an explanation of when and why Django might need ALTER TABLE privileges to docs/install.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/install.txt

    r6750 r6794  
    7474If you plan to use Django's ``manage.py syncdb`` command to 
    7575automatically create database tables for your models, you'll need to 
    76 ensure that Django has permission to create tables in the database 
    77 you're using; if you plan to manually create the tables, you can 
    78 simply grant Django ``SELECT``, ``INSERT``, ``UPDATE`` and ``DELETE`` 
    79 permissions. Django does not issue ``ALTER TABLE`` statements, and so 
    80 will not require permission to do so. If you will be using Django's 
    81 `testing framework`_ with data fixtures, Django will need permission 
    82 to create a temporary test database. 
     76ensure that Django has permission to create and alter tables in the 
     77database you're using; if you plan to manually create the tables, you 
     78can simply grant Django ``SELECT``, ``INSERT``, ``UPDATE`` and 
     79``DELETE`` permissions. On some databases, Django will need to have 
     80``ALTER TABLE`` privileges during ``syncdb`` (in order to create 
     81foreign key constraints properly on databases which do not allow them 
     82to be deferred), but will not issue ``ALTER TABLE`` statements on a 
     83table once ``syncdb`` has finished setting it up. 
     84 
     85If you will be using Django's `testing framework`_ with data fixtures, 
     86Django will need permission to create a temporary test database. 
    8387 
    8488.. _PostgreSQL: http://www.postgresql.org/