Skip to content

Commit

Permalink
Client description field added
Browse files Browse the repository at this point in the history
  • Loading branch information
disc5 committed Nov 10, 2015
1 parent 6388f19 commit 2f36b2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ public static function createClient(
$oauth2_gt_client_user,
$access_user_csv,
$ip_restriction_active,
$description,
$access_ip_csv,
$oauth2_authcode_refresh_active,
$oauth2_resource_refresh_active
Expand All @@ -306,7 +307,8 @@ public static function createClient(
'oauth2_consent_message_active' => array('integer', $oauth2_consent_message_active),
'oauth2_authcode_refresh_active' => array('integer', $oauth2_authcode_refresh_active),
'oauth2_resource_refresh_active' => array('integer', $oauth2_resource_refresh_active),
'ip_restriction_active' => array('integer', $ip_restriction_active)
'ip_restriction_active' => array('integer', $ip_restriction_active),
'description' => array('text', $description)
);
self::getDB()->insert('ui_uihk_rest_keys', $a_columns);
$insertId = intval(self::getDB()->getLastInsertId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
'oauth2_authcode_refresh_active',
'oauth2_resource_refresh_active',
'ip_restriction_active',
'description',
'access_user_csv',
'access_ip_csv',
'api_secret',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@
'notnull' => true,
'default' => 0
),
'description' => array(
'type' => 'text',
'length' => 1000,
'fixed' => false,
'notnull' => false,
'default' => ""
),
);
$ilDB->createTable("ui_uihk_rest_keys", $fields, true);
$ilDB->addPrimaryKey("ui_uihk_rest_keys", array("id"));
Expand Down

0 comments on commit 2f36b2e

Please sign in to comment.