AbstractTableManager AddTableColumn Method Kentico 8.0 API Reference
Add column to specified table.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

tableName
Type: OnlineSystem String
Table name
columnName
Type: OnlineSystem String
Name of a new column
columnType
Type: OnlineSystem String
Type of a new column
allowNull
Type: OnlineSystem Boolean
Allow NULL values in new column or not
defaultValue
Type: OnlineSystem String
Default value of the column. Null if no default value is set
forceDefaultValue (Optional)
Type: OnlineSystem Boolean
Indicates if column default value should be set if column doesn't allow NULL values
See Also