diff --git a/install/db_scripts/mysql/7_create_structure.sql b/install/db_scripts/mysql/7_create_structure.sql index 29a5ec5..cf1d597 100755 --- a/install/db_scripts/mysql/7_create_structure.sql +++ b/install/db_scripts/mysql/7_create_structure.sql @@ -267,8 +267,7 @@ CREATE TABLE `{_PREFIX_}node` ( #-- #-- Structure de la table `nodesettings` #-- - -CREATE TABLE `{_PREFIX_}nodesettings` ( +CREATE TABLE `sys_nodesettings` ( `node_id` int(4) NOT NULL, `node_email` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL, `node_git` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, @@ -434,6 +433,12 @@ ALTER TABLE `{_PREFIX_}langue` ALTER TABLE `{_PREFIX_}node` ADD PRIMARY KEY (`node_id`); +#-- +#-- Index pour la table `{_PREFIX_}nodesettings` +#-- +ALTER TABLE `{_PREFIX_}nodesettings` + ADD UNIQUE KEY `node_id` (`node_id`); + #-- #-- Index pour la table `{_PREFIX_}node_group_user` #-- diff --git a/install/db_scripts/mysql/7_insert_datas.sql b/install/db_scripts/mysql/7_insert_datas.sql index f73b753..6c8fa22 100755 --- a/install/db_scripts/mysql/7_insert_datas.sql +++ b/install/db_scripts/mysql/7_insert_datas.sql @@ -130,6 +130,10 @@ INSERT INTO `{_PREFIX_}node` VALUES (2, 1, '\r\n\r\n\r\nAdministration\r\n\r\n\r\n', 'orange15.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); INSERT INTO `{_PREFIX_}node` VALUES (99, 3, '\r\n\r\n\r\nConfiguration\r\n\r\n\r\n', 'defaultnode.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); INSERT INTO `{_PREFIX_}node` VALUES (100, 3, '\r\n\r\n\r\nSite public\r\n\r\n\r\n', 'defaultnode.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); +#-- +#-- Contenu de la table `nodesettings` +#-- +INSERT INTO `{_PREFIX_}nodesettings` VALUES (2, 'contact@qware.fr', 'https://git.fab-l3.org/tristan.champomier/Qware_core', 'https://social.fab-l3.org/@fablcube', '', '#qware:sim.fab-l3.org', '', '', '', ''); #----------------------------------------------------------- #-- #-- Contenu de la table `node_group_user` diff --git a/install/db_scripts/mysql/8_create_structure.sql b/install/db_scripts/mysql/8_create_structure.sql index 29a5ec5..cf1d597 100755 --- a/install/db_scripts/mysql/8_create_structure.sql +++ b/install/db_scripts/mysql/8_create_structure.sql @@ -267,8 +267,7 @@ CREATE TABLE `{_PREFIX_}node` ( #-- #-- Structure de la table `nodesettings` #-- - -CREATE TABLE `{_PREFIX_}nodesettings` ( +CREATE TABLE `sys_nodesettings` ( `node_id` int(4) NOT NULL, `node_email` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL, `node_git` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, @@ -434,6 +433,12 @@ ALTER TABLE `{_PREFIX_}langue` ALTER TABLE `{_PREFIX_}node` ADD PRIMARY KEY (`node_id`); +#-- +#-- Index pour la table `{_PREFIX_}nodesettings` +#-- +ALTER TABLE `{_PREFIX_}nodesettings` + ADD UNIQUE KEY `node_id` (`node_id`); + #-- #-- Index pour la table `{_PREFIX_}node_group_user` #-- diff --git a/install/db_scripts/mysql/8_insert_datas.sql b/install/db_scripts/mysql/8_insert_datas.sql index f73b753..6c8fa22 100755 --- a/install/db_scripts/mysql/8_insert_datas.sql +++ b/install/db_scripts/mysql/8_insert_datas.sql @@ -130,6 +130,10 @@ INSERT INTO `{_PREFIX_}node` VALUES (2, 1, '\r\n\r\n\r\nAdministration\r\n\r\n\r\n', 'orange15.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); INSERT INTO `{_PREFIX_}node` VALUES (99, 3, '\r\n\r\n\r\nConfiguration\r\n\r\n\r\n', 'defaultnode.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); INSERT INTO `{_PREFIX_}node` VALUES (100, 3, '\r\n\r\n\r\nSite public\r\n\r\n\r\n', 'defaultnode.png', 'qware', 'www.qware.fr', 'off', 'off', 'off', 'default', '', 0, 0, 0, ''); +#-- +#-- Contenu de la table `nodesettings` +#-- +INSERT INTO `{_PREFIX_}nodesettings` VALUES (2, 'contact@qware.fr', 'https://git.fab-l3.org/tristan.champomier/Qware_core', 'https://social.fab-l3.org/@fablcube', '', '#qware:sim.fab-l3.org', '', '', '', ''); #----------------------------------------------------------- #-- #-- Contenu de la table `node_group_user`