Index
-
\com\setasign\SetaFramework
-
Database
-
Manager
-
Column
- AbstractBlob
- AbstractColumn
- AbstractFloat
- AbstractInteger
- AbstractLengthColumn
- AbstractNoDefault
- AbstractNumeric
- AbstractText
- BigInt
- Binary
- Blob
- Char
- Date
- DateTime
- Decimal
- Double
- EnumColumn
- FloatColumn
- HasCollation
- HasCollationTrait
- Integer
- LongBlob
- LongText
- MediumBlob
- MediumInt
- MediumText
- SmallInt
- Text
- Time
- TinyBlob
- TinyInt
- TinyText
- VarBinary
- VarChar
-
Column
-
Manager
-
Database
com\setasign\SetaFramework\Database\Manager\Column
VarChar Class Varchar
File: /SetaFramework/src/Database/Manager/Column/VarChar.php
Class hierarchy
Uses
Implements
Summary
Methods
- __construct()
- addIndex()
- addPrimaryKey()
- addUnique()
- changeDataType()
- copy()
- getCollation()
- getDefault()
- getIndexes()
- getLength()
- getName()
- getOldColumnName()
- hasChanged()
- isAllowedNull()
- removeAllIndexes()
- removeIndex()
- rename()
- setAllowNull()
- setCollation()
- setDefault()
- setLength()
- setOldColumnName()
Constants
DEFAULT_CURRENT_TIMESTAMP
DEFAULT_NULL
Properties
$collation
protected ?string HasCollationTrait::$collation
$columnName
protected string AbstractColumn::$columnName
$default
protected mixed AbstractColumn::$default
$length
protected ?int AbstractLengthColumn::$length
$oldColumnName
protected ?string AbstractColumn::$oldColumnName
Methods
addIndex()
public AbstractColumn::addIndex (
string $type = \com\setasign\SetaFramework\Database\Manager\TableSchema::INDEX,
?string $indexName = null
): $this?string $indexName = null
Parameters
- $type : string
- $indexName : ?string
changeDataType()
Parameters
- $newColumnObject : AbstractColumn
hasChanged()
Parameters
- $compareColumn : AbstractColumn
- $compareDataType : bool
Check whether both dataTypes are equal.
- $compareName : bool
Check whether both columnNames are equal.
setOldColumnName()
Used for TableSchemaBuilder. Will be ignored for hasChanged
Parameters
- $oldColumnName : string
