Changes between Version 5 and Version 6 of DatabaseAPI
- Timestamp:
- 01/12/09 22:40:53 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseAPI
v5 v6 32 32 33 33 34 === alter_column(table_name, name, field, explicit_name=True) === 35 36 Alters 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 34 42 === delete_column(table_name, name) === 35 43 … … 59 67 Creates 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. 60 68 69 ''(create_index is new in 0.4)'' 70 71 72 === delete_index(self, table_name, column_names, db_tablespace={{{''}}}) === 73 74 Deletes 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 61 78 62 79 === execute(sql, params=[]) ===
