From 877944140c110707f9f5ffee6ba2adc4a8f739b2 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Mon, 26 Apr 2021 22:19:20 -0700 Subject: [PATCH] Fix a copy-and-paste error in the field definitions for OAuthSysToken --- ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php | 10 +++++----- ext/oauth-client/sql/auto_install.sql | 4 ++-- .../xml/schema/CRM/OAuth/OAuthSysToken.xml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php b/ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php index 3fbbcc9ced..c39e59eec1 100644 --- a/ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php +++ b/ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php @@ -6,7 +6,7 @@ * * Generated from oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1b0fa60330b4ea4a6d30bd972ccf3633) + * (GenCodeChecksum:071b8b361ebc9d1b4867e4cef2172389) */ use CRM_OAuth_ExtensionUtil as E; @@ -123,14 +123,14 @@ class CRM_OAuth_DAO_OAuthSysToken extends CRM_Core_DAO { public $raw; /** - * When the client was created. + * When the token was created. * * @var timestamp */ public $created_date; /** - * When the client was created or modified. + * When the token was created or modified. * * @var timestamp */ @@ -362,7 +362,7 @@ class CRM_OAuth_DAO_OAuthSysToken extends CRM_Core_DAO { 'name' => 'created_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => E::ts('Created Date'), - 'description' => E::ts('When the client was created.'), + 'description' => E::ts('When the token was created.'), 'required' => FALSE, 'where' => 'civicrm_oauth_systoken.created_date', 'default' => 'CURRENT_TIMESTAMP', @@ -376,7 +376,7 @@ class CRM_OAuth_DAO_OAuthSysToken extends CRM_Core_DAO { 'name' => 'modified_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => E::ts('Modified Date'), - 'description' => E::ts('When the client was created or modified.'), + 'description' => E::ts('When the token was created or modified.'), 'required' => FALSE, 'where' => 'civicrm_oauth_systoken.modified_date', 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', diff --git a/ext/oauth-client/sql/auto_install.sql b/ext/oauth-client/sql/auto_install.sql index fd7f643397..b5297d59d3 100644 --- a/ext/oauth-client/sql/auto_install.sql +++ b/ext/oauth-client/sql/auto_install.sql @@ -90,8 +90,8 @@ CREATE TABLE `civicrm_oauth_systoken` ( `resource_owner` text COMMENT 'Cached details describing the resource owner', `error` text COMMENT 'List of scopes addressed by this token', `raw` text COMMENT 'The token response data, per AccessToken::jsonSerialize', - `created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When the client was created.', - `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When the client was created or modified.' + `created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When the token was created.', + `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When the token was created or modified.' , PRIMARY KEY (`id`) diff --git a/ext/oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml b/ext/oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml index 45fc80ce61..9a1aaa8a9f 100644 --- a/ext/oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml +++ b/ext/oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml @@ -149,7 +149,7 @@ created_date timestamp - When the client was created. + When the token was created. false CURRENT_TIMESTAMP 5.32 @@ -157,7 +157,7 @@ modified_date timestamp - When the client was created or modified. + When the token was created or modified. false CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 5.32 -- 2.25.1