You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Add the create_column and update_columns to the current table
*
* @return void
*/
public function modifyTable(): void
{
$table = $this->getTable();
if ($this->withCreatedAt() && !$table->hasColumn($this->getParameter('create_column'))) {
$table->addColumn([
'name' => $this->getParameter('create_column'),
'type' => $this->isTimestamp() ? 'TIMESTAMP' : 'DATETIME',
]);
}
if ($this->withUpdatedAt() && !$table->hasColumn($this->getParameter('update_column'))) {
$table->addColumn([
'name' => $this->getParameter('update_column'),
'type' => $this->isTimestamp() ? 'TIMESTAMP' : 'DATETIME',
]);
}
}
maritechpro
changed the title
FRW-2812 extend TimestampableBehavior with is_timestamp parameter to allow configuration of datetime type for created_at and updated_at
FRW-2182 extend TimestampableBehavior with is_timestamp parameter to allow configuration of datetime type for created_at and updated_at
Jun 26, 2023
FRW-2182 extend TimestampableBehavior with is_timestamp parameter to allow configuration of datetime type for created_at and updated_at
Behavior should be extendable on 2.0.0-beta2 (2.0.1-beta2) and 2.0.0-beta3 (2.0.1-beta3) versions.
Thank you.
The text was updated successfully, but these errors were encountered: