Skip to content

Commit

Permalink
#397: added openAI to settings_types, added api key setting
Browse files Browse the repository at this point in the history
  • Loading branch information
YaWK committed Mar 27, 2023
1 parent e5be04c commit 9dc23ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions system/setup/yawk_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ INSERT INTO `cms_settings` (`property`, `value`, `longValue`, `type`, `sortation
('yawkversion', '1.0 build 2021.06', '', 9, 2, 0, 'YAWKVERSION_LABEL', '', '', '', 'form-control', 'input', '', '', ''),
('youtubeChannelUrl', 'https://www.youtube.com', '', 4, 0, 1, 'YouTube Channel URL', '', '', '', 'form-control', '', '', '', ''),
('youtubestatus', '0', '', 4, 0, 1, 'YouTube on/off', '', '', '', 'form-control', '', '', '', ''),
('openAIApiKey', '', '', '25', '1', '1', 'OPENAI_APIKEY', 'fa fa-hashtag', 'OPENAI_HEADING', 'OPENAI_SUBTEXT', 'form-control', 'input', 'OPENAI_KEY_PH', 'OPENAI_KEY_DESC', '');
('openAIApiKey', '', '', 26, 1, 1, 'OPENAI_APIKEY', 'fa fa-hashtag', 'OPENAI_HEADING', 'OPENAI_SUBTEXT', 'form-control', 'input', 'OPENAI_KEY_PH', 'OPENAI_KEY_DESC', '');

CREATE TABLE `cms_settings_types` (
`id` int(11) NOT NULL,
Expand Down Expand Up @@ -659,7 +659,8 @@ INSERT INTO `cms_settings_types` (`id`, `value`) VALUES
(22, 'webmail-account'),
(23, 'webmail-server'),
(24, 'webmail-settings'),
(25, 'openAI');
(25, 'webmail-smtp'),
(26, 'openAI');

CREATE TABLE `cms_stats` (
`id` int(11) NOT NULL,
Expand Down Expand Up @@ -2684,7 +2685,7 @@ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `cms_stats`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `cms_settings_types`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
ALTER TABLE `cms_syslog`
MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `cms_syslog_categories`
Expand Down

0 comments on commit 9dc23ca

Please sign in to comment.