Skip to content

Commit c1a7b2c

Browse files
author
cfoe
committed
changed sql table for standard conform themes
1 parent 0cc22c0 commit c1a7b2c

File tree

3 files changed

+15
-27
lines changed

3 files changed

+15
-27
lines changed

install/sql/incremental/upd_0034.sql

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `aps_packages` (
5454
-- --------------------------------------------------------
5555

5656
--
57-
-- Tabellenstruktur für Tabelle `aps_settings`
57+
-- Table structure for table `aps_settings`
5858
--
5959

6060
CREATE TABLE IF NOT EXISTS `aps_settings` (
@@ -68,28 +68,16 @@ CREATE TABLE IF NOT EXISTS `aps_settings` (
6868
-- --------------------------------------------------------
6969

7070
--
71-
-- Tabellenstruktur für Tabelle `tpl_default`
71+
-- Table structure for table `sys_theme`
7272
--
7373

74-
-- CREATE TABLE IF NOT EXISTS `tpl_default` (
75-
-- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
76-
-- `username` varchar(64) NOT NULL,
77-
-- `logo_url` varchar(255) NOT NULL,
78-
-- PRIMARY KEY (`var_id`)
79-
--) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
80-
81-
-- --------------------------------------------------------
82-
83-
--
84-
-- Tabellenstruktur für Tabelle `tpl_default-v2`
85-
--
86-
87-
--CREATE TABLE IF NOT EXISTS `tpl_default-v2` (
88-
-- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
89-
-- `username` varchar(64) NOT NULL,
90-
-- `logo_url` varchar(255) NOT NULL,
91-
-- PRIMARY KEY (`var_id`)
92-
--) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
74+
CREATE TABLE IF NOT EXISTS `sys_theme` (
75+
`var_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
76+
`tpl_name` varchar(32) NOT NULL,
77+
`username` varchar(64) NOT NULL,
78+
`logo_url` varchar(255) NOT NULL,
79+
PRIMARY KEY (`var_id`)
80+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
9381

9482
-- --------------------------------------------------------
9583

@@ -104,5 +92,5 @@ INSERT INTO `aps_settings` (`id`, `name`, `value`) VALUES(3, 'ignore-webserver-m
10492
ALTER TABLE `client` ADD `limit_aps` int(11) NOT NULL DEFAULT '0' AFTER `limit_webdav_user`;
10593
ALTER TABLE `client_template` ADD `limit_aps` int(11) NOT NULL DEFAULT '0' AFTER `limit_webdav_user`;
10694

107-
-- INSERT INTO `tpl_default` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default/images/header_logo.png');
108-
-- INSERT INTO `tpl_default-2` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default-v2/images/header_logo.png');
95+
INSERT INTO `dbispconfig`.`sys_theme` (`var_id`, `tpl_name`, `username`, `logo_url`) VALUES (NULL, 'default', 'global', 'themes/default/images/header_logo.png');
96+
INSERT INTO `dbispconfig`.`sys_theme` (`var_id`, `tpl_name`, `username`, `logo_url`) VALUES (NULL, 'default-v2', 'global', 'themes/default-v2/images/header_logo.png');

interface/web/admin/form/tpl_default-v2.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
$form["description"] = "tpl_default-v2_desc_txt";
6464
$form["name"] = "tpl_default-v2";
6565
$form["action"] = "tpl_default-v2.php";
66-
$form["db_table"] = "default-v2";
67-
$form["db_table_idx"] = "var_id";
66+
$form["db_table"] = "sys_theme";
67+
$form["db_table_idx"] = "id";
6868
$form["db_history"] = "yes";
6969
$form["tab_default"] = "basic";
7070
$form["list_default"] = "system_config_edit.php";

interface/web/admin/form/tpl_default.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
$form["description"] = "tpl_default_desc_txt";
6464
$form["name"] = "tpl_default";
6565
$form["action"] = "tpl_default.php";
66-
$form["db_table"] = "default";
67-
$form["db_table_idx"] = "var_id";
66+
$form["db_table"] = "sys_theme";
67+
$form["db_table_idx"] = "id";
6868
$form["db_history"] = "yes";
6969
$form["tab_default"] = "basic";
7070
$form["list_default"] = "system_config_edit.php";

0 commit comments

Comments
 (0)