Loading core/lib/Drupal/Core/Cache/DatabaseBackend.php +1 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,7 @@ public function schemaDefinition() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], 'created' => [ 'description' => 'A timestamp with millisecond precision indicating when the cache entry was created.', Loading core/lib/Drupal/Core/Flood/DatabaseBackend.php +2 −0 Original line number Diff line number Diff line Loading @@ -215,12 +215,14 @@ public function schemaDefinition() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], 'expiration' => [ 'description' => 'Expiration timestamp. Expired events are purged on cron run.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], ], 'primary key' => ['fid'], Loading core/lib/Drupal/Core/Queue/DatabaseQueue.php +2 −0 Original line number Diff line number Diff line Loading @@ -333,12 +333,14 @@ public function schemaDefinition() { 'not null' => TRUE, 'default' => 0, 'description' => 'Timestamp when the claim lease expires on the item.', 'size' => 'big', ], 'created' => [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Timestamp when the item was created.', 'size' => 'big', ], ], 'primary key' => ['item_id'], Loading core/modules/comment/comment.install +18 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ function comment_schema() { 'not null' => TRUE, 'default' => 0, 'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.changed.', 'size' => 'big', ], 'last_comment_name' => [ 'type' => 'varchar', Loading Loading @@ -116,3 +117,20 @@ function comment_schema() { function comment_update_last_removed() { return 8701; } /** * Remove the year 2038 date limitation. */ function comment_update_10100(&$sandbox = NULL) { $connection = \Drupal::database(); if ($connection->schema()->tableExists('comment_entity_statistics') && $connection->databaseType() != 'sqlite') { $new = [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.changed.', 'size' => 'big', ]; $connection->schema()->changeField('comment_entity_statistics', 'last_comment_timestamp', 'last_comment_timestamp', $new); } } core/modules/dblog/dblog.install +18 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ function dblog_schema() { 'not null' => TRUE, 'default' => 0, 'description' => 'Unix timestamp of when event occurred.', 'size' => 'big', ], ], 'primary key' => ['wid'], Loading @@ -97,3 +98,20 @@ function dblog_schema() { function dblog_update_last_removed() { return 8600; } /** * Remove the year 2038 date limitation. */ function dblog_update_10100(&$sandbox = NULL) { $connection = \Drupal::database(); if ($connection->schema()->tableExists('watchdog') && $connection->databaseType() != 'sqlite') { $new = [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Unix timestamp of when event occurred.', 'size' => 'big', ]; $connection->schema()->changeField('watchdog', 'timestamp', 'timestamp', $new); } } Loading
core/lib/Drupal/Core/Cache/DatabaseBackend.php +1 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,7 @@ public function schemaDefinition() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], 'created' => [ 'description' => 'A timestamp with millisecond precision indicating when the cache entry was created.', Loading
core/lib/Drupal/Core/Flood/DatabaseBackend.php +2 −0 Original line number Diff line number Diff line Loading @@ -215,12 +215,14 @@ public function schemaDefinition() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], 'expiration' => [ 'description' => 'Expiration timestamp. Expired events are purged on cron run.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'big', ], ], 'primary key' => ['fid'], Loading
core/lib/Drupal/Core/Queue/DatabaseQueue.php +2 −0 Original line number Diff line number Diff line Loading @@ -333,12 +333,14 @@ public function schemaDefinition() { 'not null' => TRUE, 'default' => 0, 'description' => 'Timestamp when the claim lease expires on the item.', 'size' => 'big', ], 'created' => [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Timestamp when the item was created.', 'size' => 'big', ], ], 'primary key' => ['item_id'], Loading
core/modules/comment/comment.install +18 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ function comment_schema() { 'not null' => TRUE, 'default' => 0, 'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.changed.', 'size' => 'big', ], 'last_comment_name' => [ 'type' => 'varchar', Loading Loading @@ -116,3 +117,20 @@ function comment_schema() { function comment_update_last_removed() { return 8701; } /** * Remove the year 2038 date limitation. */ function comment_update_10100(&$sandbox = NULL) { $connection = \Drupal::database(); if ($connection->schema()->tableExists('comment_entity_statistics') && $connection->databaseType() != 'sqlite') { $new = [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.changed.', 'size' => 'big', ]; $connection->schema()->changeField('comment_entity_statistics', 'last_comment_timestamp', 'last_comment_timestamp', $new); } }
core/modules/dblog/dblog.install +18 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ function dblog_schema() { 'not null' => TRUE, 'default' => 0, 'description' => 'Unix timestamp of when event occurred.', 'size' => 'big', ], ], 'primary key' => ['wid'], Loading @@ -97,3 +98,20 @@ function dblog_schema() { function dblog_update_last_removed() { return 8600; } /** * Remove the year 2038 date limitation. */ function dblog_update_10100(&$sandbox = NULL) { $connection = \Drupal::database(); if ($connection->schema()->tableExists('watchdog') && $connection->databaseType() != 'sqlite') { $new = [ 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Unix timestamp of when event occurred.', 'size' => 'big', ]; $connection->schema()->changeField('watchdog', 'timestamp', 'timestamp', $new); } }