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