Changes between Version 4 and Version 5 of DatabaseAPI


Ignore:
Timestamp:
11/28/08 18:00:27 (5 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseAPI

    v4 v5  
    1717Please note that we're still adding new methods to the database API. If one you want is still missing and does not have a [/report/1 ticket], please [/newticket add one]. 
    1818 
    19 === add_column(table_name, name, field) === 
     19=== add_column(table_name, name, field, keep_default=True) === 
    2020 
    2121Adds the column with name 'name' to the table 'table_name'. Uses the 
    2222'field' instance to determine the type and other options for the column. 
     23 
     24If `keep_default` is `True`, then the field's default value will be applied to the database using SET DEFAULT. If it's `False`, then the default will only be used to populate existing rows, and will not be stored on the column for future INSERTs. 
     25 
     26''(keep_default is new in 0.4)'' 
    2327 
    2428