Skip to content

Commit

Permalink
Merge pull request #34 from mvdriel/replace-datetime-with-timestamp
Browse files Browse the repository at this point in the history
Replace datetime with timestamp
  • Loading branch information
tersmitten authored Nov 30, 2018
2 parents e0dd278 + 6808d36 commit 56fb04c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Config/Schema/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public function after($event = []) {
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'unsigned' => true, 'key' => 'primary'],
'task' => ['type' => 'string', 'null' => false, 'default' => null, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'data' => ['type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'not_before' => ['type' => 'datetime', 'null' => false, 'default' => null],
'fetched' => ['type' => 'datetime', 'null' => true, 'default' => null],
'completed' => ['type' => 'datetime', 'null' => true, 'default' => null, 'key' => 'index'],
'not_before' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'fetched' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'completed' => ['type' => 'timestamp', 'null' => true, 'default' => null, 'key' => 'index'],
'failed_count' => ['type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'unsigned' => true],
'failure_message' => ['type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'worker_key' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 40, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'created' => ['type' => 'datetime', 'null' => false, 'default' => null],
'created' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'indexes' => [
'PRIMARY' => ['column' => 'id', 'unique' => 1],
'completed' => ['column' => 'completed', 'unique' => 0],
Expand Down
8 changes: 4 additions & 4 deletions Test/Fixture/QueuedTaskFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class QueuedTaskFixture extends CakeTestFixture {
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'unsigned' => true, 'key' => 'primary'],
'task' => ['type' => 'string', 'null' => false, 'default' => null, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'data' => ['type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'not_before' => ['type' => 'datetime', 'null' => false, 'default' => null],
'fetched' => ['type' => 'datetime', 'null' => true, 'default' => null],
'completed' => ['type' => 'datetime', 'null' => true, 'default' => null, 'key' => 'index'],
'not_before' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'fetched' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'completed' => ['type' => 'timestamp', 'null' => true, 'default' => null, 'key' => 'index'],
'failed_count' => ['type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'unsigned' => true],
'failure_message' => ['type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'worker_key' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 40, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'],
'created' => ['type' => 'datetime', 'null' => false, 'default' => null],
'created' => ['type' => 'timestamp', 'null' => true, 'default' => null],
'indexes' => [
'PRIMARY' => ['column' => 'id', 'unique' => 1],
'completed' => ['column' => 'completed', 'unique' => 0],
Expand Down

0 comments on commit 56fb04c

Please sign in to comment.