Changes between Version 5 and Version 6 of DatabaseAPI


Ignore:
Timestamp:
01/12/09 22:40:53 (5 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseAPI

    v5 v6  
    3232 
    3333 
     34=== alter_column(table_name, name, field, explicit_name=True) === 
     35 
     36Alters the given column name so it will match the given field. Note that conversion between the two by the database must be possible. 
     37(Will not automatically add _id by default if the field is a ForeignKey; to have this behavour, pass explicit_name=False). 
     38 
     39''(alter_column is new in 0.4)'' 
     40 
     41 
    3442=== delete_column(table_name, name) === 
    3543 
     
    5967Creates an index on the table spanning over each column defined in the column_names sequence.  If unique is True, the index will be created as unique.  If db_tablespace is specified, the index will be created in the specified tablespace. 
    6068 
     69''(create_index is new in 0.4)'' 
     70 
     71 
     72=== delete_index(self, table_name, column_names, db_tablespace={{{''}}}) === 
     73 
     74Deletes the index spanning the given columns on the table. Note that the index must have previously been generated by South, as a hashing algorithm is used to convert the column names into an index name. (This also means you have to pass the column names in using the same order as when the column was created). 
     75 
     76''(delete_index is new in 0.4)'' 
     77 
    6178 
    6279=== execute(sql, params=[]) ===