Changes between Version 4 and Version 5 of DatabaseAPI
- Timestamp:
- 11/28/08 18:00:27 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseAPI
v4 v5 17 17 Please 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]. 18 18 19 === add_column(table_name, name, field ) ===19 === add_column(table_name, name, field, keep_default=True) === 20 20 21 21 Adds the column with name 'name' to the table 'table_name'. Uses the 22 22 'field' instance to determine the type and other options for the column. 23 24 If `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)'' 23 27 24 28
