Fix a copy-and-paste error in the field definitions for OAuthSysToken
authorNoah Miller <nm@lemnisc.us>
Tue, 27 Apr 2021 05:19:20 +0000 (22:19 -0700)
committerNoah Miller <nm@lemnisc.us>
Tue, 27 Apr 2021 05:19:20 +0000 (22:19 -0700)
ext/oauth-client/CRM/OAuth/DAO/OAuthSysToken.php
ext/oauth-client/sql/auto_install.sql
ext/oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml

index 3fbbcc9cedd578f5594bca176207e56069a252d2..c39e59eec1fec56deca84e0d3841869c95c647f5 100644 (file)
@@ -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',
index fd7f643397be9e2370e341d5deb5c25f3bb50cba..b5297d59d35341c2eb16e79a11873ec15cc31321 100644 (file)
@@ -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`)
  
index 45fc80ce61d7a8c5236d4dd339b345c6c997b09d..9a1aaa8a9f8252cfdfd883efed3bd6b6452e158d 100644 (file)
   <field>
     <name>created_date</name>
     <type>timestamp</type>
-    <comment>When the client was created.</comment>
+    <comment>When the token was created.</comment>
     <required>false</required>
     <default>CURRENT_TIMESTAMP</default>
     <add>5.32</add>
   <field>
     <name>modified_date</name>
     <type>timestamp</type>
-    <comment>When the client was created or modified.</comment>
+    <comment>When the token was created or modified.</comment>
     <required>false</required>
     <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
     <add>5.32</add>