Skip to content

Commit

Permalink
Removing zeroed dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien CAPARROS committed Apr 21, 2016
1 parent 0819fd3 commit 8b5128d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion views/admin/generation/basic/fields/sql/datetime.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
*/

?>
`<?= $model['column_prefix'].$field['column_name'] ?>` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`<?= $model['column_prefix'].$field['column_name'] ?>` timestamp NULL,
4 changes: 2 additions & 2 deletions views/admin/generation/basic/misc/model.sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
}

?>
`<?= $model['column_prefix'] ?>created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`<?= $model['column_prefix'] ?>updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`<?= $model['column_prefix'] ?>created_at` timestamp NULL,
`<?= $model['column_prefix'] ?>updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`<?= $model['column_prefix'] ?>id`),
<?php
if (isset($model['has_twinnable_behaviour'])) {
Expand Down

0 comments on commit 8b5128d

Please sign in to comment.