Click or drag to resize
ITableManagerAlterTableColumn Method
Rename, retype or allow/not allow NULL values in column

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

Parameters

tableName
Type: SystemString
Table name
columnName
Type: SystemString
Name of an old column
newColumnName
Type: SystemString
Name of a new column
newColumnType
Type: SystemString
Type of a new column
newColumnAllowNull
Type: SystemBoolean
Allow NULL values in new column or not
newColumnDefaultValue
Type: SystemString
Default value of a new column in system (en) culture
See Also