trait DateColumn (View source)

Methods

SQLGenerator
addDatetime(string $column, array $attribute = [])

Add datetime column

SQLGenerator
addDate(string $column, array $attribute = [])

Add date column

SQLGenerator
addTime(string $column, array $attribute = [])

Add time column

SQLGenerator
addYear(string $column, array $attribute = [])

Add year column

SQLGenerator
addTimestamp(string $column, array $attribute = [])

Add timestamp column

SQLGenerator
addTimestamps()

Add default timestamps

SQLGenerator
changeDatetime(string $column, array $attribute = [])

Change datetime column

SQLGenerator
changeDate(string $column, array $attribute = [])

Change date column

SQLGenerator
changeTime(string $column, array $attribute = [])

Change time column

SQLGenerator
changeYear(string $column, array $attribute = [])

Change year column

SQLGenerator
changeTimestamp(string $column, array $attribute = [])

Change timestamp column

SQLGenerator
changeTimestamps()

Change default timestamps

Details

SQLGenerator addDatetime(string $column, array $attribute = [])

Add datetime column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addDate(string $column, array $attribute = [])

Add date column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTime(string $column, array $attribute = [])

Add time column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addYear(string $column, array $attribute = [])

Add year column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTimestamp(string $column, array $attribute = [])

Add timestamp column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTimestamps()

Add default timestamps

Return Value

SQLGenerator

SQLGenerator changeDatetime(string $column, array $attribute = [])

Change datetime column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator changeDate(string $column, array $attribute = [])

Change date column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator changeTime(string $column, array $attribute = [])

Change time column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator changeYear(string $column, array $attribute = [])

Change year column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator changeTimestamp(string $column, array $attribute = [])

Change timestamp column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator changeTimestamps()

Change default timestamps

Return Value

SQLGenerator