Click or drag to resize
ITableManagerAlterTableColumnWithDefaultValue Method
Alter table column with default value.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
void AlterTableColumnWithDefaultValue(
	string tableName,
	string columnName,
	string newColumnName,
	string newColumnType,
	bool newColumnAllowNull,
	string newColumnDefaultValue
)

Parameters

tableName
Type: SystemString
Table name
columnName
Type: SystemString
Column name
newColumnName
Type: SystemString
New column name, null if no new column is created
newColumnType
Type: SystemString
New column type, null if no new column is created
newColumnAllowNull
Type: SystemBoolean
Allow NULL values in new column or not
newColumnDefaultValue
Type: SystemString
Column default value in system (en) culture
See Also