public class

AlterColumnNullabilityCommand

extends AlterColumnCommand
java.lang.Object
   ↳ com.atlassian.confluence.upgrade.ddl.AlterColumnCommand
     ↳ com.atlassian.confluence.upgrade.ddl.AlterColumnNullabilityCommand

Class Overview

Marks a column as not null or nullable. Make sure that the column being altered to NOT NULL is not used in an index on SQL Server. If it is, drop the index first, alter the column, and recreate the index.

Summary

Public Constructors
AlterColumnNullabilityCommand(ConfluenceHibernateConfig hibernateConfig, String columnName, String oldDataType, NullChoice nullChoice)
Create an alter column to null/not null action.
Public Methods
String getCommandName()
String getCommandParameters()
[Expand]
Inherited Methods
From class com.atlassian.confluence.upgrade.ddl.AlterColumnCommand
From class java.lang.Object
From interface com.atlassian.confluence.upgrade.ddl.AlterTableCommand

Public Constructors

public AlterColumnNullabilityCommand (ConfluenceHibernateConfig hibernateConfig, String columnName, String oldDataType, NullChoice nullChoice)

Create an alter column to null/not null action.

Parameters
columnName The name of the column to alter
oldDataType The original data type of the column, required because some DBs don't let you only alter the null/not null property of the column. It is your responsibility to get this right.
nullChoice Whether the column should be nullable or not null.

Public Methods

public String getCommandName ()

public String getCommandParameters ()