From f5fe779e5d6c2c1b32680711a4352085775d07d6 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 4 Mar 2024 03:21:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20DD?= =?UTF-8?q?L=20=D0=B4=D0=BB=D1=8F=20#=5F=5Fwebmasterskaya=5Foauthserver=5F?= =?UTF-8?q?clients?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../administrator/sql/install.mysql.utf8.sql | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/com_oauthserver/administrator/sql/install.mysql.utf8.sql b/com_oauthserver/administrator/sql/install.mysql.utf8.sql index e78785e..b74be71 100644 --- a/com_oauthserver/administrator/sql/install.mysql.utf8.sql +++ b/com_oauthserver/administrator/sql/install.mysql.utf8.sql @@ -1,12 +1,15 @@ CREATE TABLE IF NOT EXISTS `#__webmasterskaya_oauthserver_clients` ( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `client_name` varchar(150) NOT NULL, - `client_token` varchar(255) NOT NULL, - `client_id` varchar(255) NOT NULL, + id int unsigned auto_increment, + name varchar(150) not null, + identifier varchar(255) not null, + secret varchar(255) null, + public tinyint default 0 not null, + redirect_uri varchar(255) null, + allow_plain_text_pkce tinyint default 1 not null, PRIMARY KEY (`id`), - UNIQUE KEY `client_token` (`client_token`), - UNIQUE KEY `client_id` (`client_id`) + UNIQUE KEY `secret` (`identifier`, `secret`), + UNIQUE KEY `identifier` (`identifier`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 DEFAULT COLLATE = utf8mb4_unicode_ci; \ No newline at end of file