Skip to content

Commit

Permalink
Add additional test for Sqlite/Postgres datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 8, 2016
1 parent f5a4c3b commit 5cd5edc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestCase/Database/Schema/PostgresSchemaTest.php
Expand Up @@ -760,6 +760,11 @@ public static function columnSqlProvider()
['type' => 'datetime'],
'"created" TIMESTAMP'
],
[
'open_date',
['type' => 'datetime', 'null' => false, 'default' => '2016-12-07 23:04:00'],
'"open_date" TIMESTAMP NOT NULL DEFAULT \'2016-12-07 23:04:00\''
],
// Date & Time
[
'start_date',
Expand Down
5 changes: 5 additions & 0 deletions tests/TestCase/Database/Schema/SqliteSchemaTest.php
Expand Up @@ -566,6 +566,11 @@ public static function columnSqlProvider()
['type' => 'datetime'],
'"created" DATETIME'
],
[
'open_date',
['type' => 'datetime', 'null' => false, 'default' => '2016-12-07 23:04:00'],
'"open_date" DATETIME NOT NULL DEFAULT "2016-12-07 23:04:00"'
],
// Date & Time
[
'start_date',
Expand Down

0 comments on commit 5cd5edc

Please sign in to comment.