diff --git a/install/db_scripts/mysql/8_create_database.sql b/install/db_scripts/mysql/8_create_database.sql new file mode 100755 index 0000000..180abbd --- /dev/null +++ b/install/db_scripts/mysql/8_create_database.sql @@ -0,0 +1,23 @@ +#-- +#-- Script de création de la Base de données de Qware +#-- Généré le : ven. 04 déc. 2020 à 15:43 +#-- Version du serveur : 10.3.24-MariaDB-2 +#-- Version de PHP : 7.4.11 +#-- Rooty + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +#-- +#-- Base de données : `{_DATABASE_}` +#-- +#--CREATE DATABASE IF NOT EXISTS {_DATABASE_} DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +CREATE DATABASE {_DATABASE_} DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +#-- -------------------------------------------------------- diff --git a/install/db_scripts/mysql/8_create_structure.sql b/install/db_scripts/mysql/8_create_structure.sql new file mode 100755 index 0000000..29a5ec5 --- /dev/null +++ b/install/db_scripts/mysql/8_create_structure.sql @@ -0,0 +1,670 @@ +#-- +#-- Script de création de la Base de données de Qware +#-- Généré le : ven. 04 déc. 2020 à 15:50 +#-- Version du serveur : 10.3.24-MariaDB-2 +#-- Version de PHP : 7.4.11 +#-- Rooty + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +#-- +#-- Base de données : `{_DATABASE_}` +#-- +USE `{_DATABASE_}`; +#--------------------------------------------------------- +#-- +#-- Structure de la table `object_account` +#-- +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `object_node_group_user_temp` +#-- +CREATE TABLE `{_PREFIX_}object_node_group_user_temp` ( + `node_group_user_id` int(4) UNSIGNED NOT NULL, + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `object_textentrynode` +#-- +CREATE TABLE `{_PREFIX_}object_textentrynode` ( + `textentrynode_id` int(4) UNSIGNED NOT NULL, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `textentrynode_resume` text DEFAULT NULL, + `textentrynode_text` text DEFAULT NULL, + `langue_id` int(4) UNSIGNED NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `object_textinfo` +#-- +CREATE TABLE `{_PREFIX_}object_textinfo` ( + `textinfo_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `textinfo_text_fr` text NOT NULL, + `textinfo_text_gb` text NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `object_user_temp` +#-- +CREATE TABLE `{_PREFIX_}object_user_temp` ( + `user_id` int(4) NOT NULL, + `user_title` varchar(5) NOT NULL DEFAULT '', + `user_first_name` varchar(40) NOT NULL DEFAULT '', + `user_last_name` varchar(40) NOT NULL DEFAULT '', + `user_login` varchar(20) NOT NULL DEFAULT '', + `user_password` varchar(200) NOT NULL DEFAULT '', + `user_mail` varchar(150) NOT NULL DEFAULT '', + `user_birthdate` varchar(32) DEFAULT NULL, + `user_website` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_msn` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_jabber` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_facebook` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_mastodon` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_postal_address` text NOT NULL, + `user_postal_code` varchar(30) NOT NULL DEFAULT '', + `user_city` varchar(100) NOT NULL DEFAULT '', + `user_state` varchar(100) NOT NULL DEFAULT '', + `user_country` varchar(100) NOT NULL DEFAULT '', + `user_organisation` varchar(100) NOT NULL DEFAULT '', + `user_tel` varchar(15) NOT NULL DEFAULT '', + `user_fax` varchar(15) NOT NULL DEFAULT '', + `user_comment` text NOT NULL, + `user_info` text NOT NULL, + `user_charte_status` tinyint(4) NOT NULL DEFAULT 0, + `user_account_active` enum('on','off') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off' +) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_backup` +#-- +CREATE TABLE `{_PREFIX_}package_backup` ( + `backup_id` int(4) NOT NULL, + `backup_libelle` varchar(250) NOT NULL DEFAULT '', + `backup_date` int(14) DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_backupbd` +#-- +CREATE TABLE `{_PREFIX_}package_backupbd` ( + `backupbd_id` int(4) UNSIGNED NOT NULL, + `backupbd_nom` varchar(250) NOT NULL DEFAULT '', + `backup_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_backupfile` +#-- +CREATE TABLE `{_PREFIX_}package_backupfile` ( + `backupfile_id` int(4) UNSIGNED NOT NULL, + `backupfile_new_name` varchar(250) NOT NULL DEFAULT '', + `backupfile_old_name` varchar(250) NOT NULL DEFAULT '', + `backup_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_file` +#-- +CREATE TABLE `{_PREFIX_}package_file` ( + `file_id` int(4) UNSIGNED NOT NULL, + `file_name` varchar(200) NOT NULL DEFAULT '', + `file_type` varchar(10) NOT NULL DEFAULT '', + `file_extention` varchar(20) NOT NULL DEFAULT '', + `file_size` int(5) NOT NULL DEFAULT 0, + `file_location` varchar(10) NOT NULL DEFAULT '', + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `user_id` int(4) NOT NULL DEFAULT 0, + `file_limit_owner` tinyint(1) NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_filedata` +#-- +CREATE TABLE `{_PREFIX_}package_filedata` ( + `filedata_id` int(4) UNSIGNED NOT NULL, + `file_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `filedata_data` blob NOT NULL, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `package_user_space` +#-- +CREATE TABLE `{_PREFIX_}package_user_space` ( + `user_space_id` int(4) UNSIGNED NOT NULL, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `user_space` int(10) NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `cache_list_user_group` +#-- +CREATE TABLE `{_PREFIX_}cache_list_user_group` ( + `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `cache_list_user_node` +#-- +CREATE TABLE `{_PREFIX_}cache_list_user_node` ( + `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `cache_permission` +#-- +CREATE TABLE `{_PREFIX_}cache_permission` ( + `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `cache_tree_group` +#-- +CREATE TABLE `{_PREFIX_}cache_tree_group` ( + `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `cache_tree_node` +#-- +CREATE TABLE `{_PREFIX_}cache_tree_node` ( + `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0, + `cache_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `coordination_object` +#-- +CREATE TABLE `{_PREFIX_}coordination_object` ( + `coordination_object_id` int(4) UNSIGNED NOT NULL, + `coordination_object_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `coordination_object_icone` varchar(200) NOT NULL DEFAULT '', + `coordination_object_content_type` varchar(200) NOT NULL DEFAULT '', + `coordination_object_name` text NOT NULL, + `coordination_object_resume` text NOT NULL, + `coordination_object_keyword` text NOT NULL, + `coordination_object_parution` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `coordination_object_archivage` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `coordination_object_data` blob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `group` +#-- +CREATE TABLE `{_PREFIX_}group` ( + `group_id` int(4) UNSIGNED NOT NULL, + `group_group_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `group_libelle` text NOT NULL, + `group_icone` varchar(200) NOT NULL DEFAULT '' +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `group_user` +#-- +CREATE TABLE `{_PREFIX_}group_user` ( + `group_user_id` int(4) UNSIGNED NOT NULL, + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `langue` +#-- +CREATE TABLE `{_PREFIX_}langue` ( + `langue_id` int(4) UNSIGNED NOT NULL, + `langue_libelle` text NOT NULL, + `langue_code` varchar(100) NOT NULL DEFAULT '', + `langue_status` int(2) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `node` +#-- +CREATE TABLE `{_PREFIX_}node` ( + `node_id` int(4) UNSIGNED NOT NULL, + `node_node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_libelle` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `node_icone` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `node_template` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `node_domain` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `node_haspublicpage` enum('on','off') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `node_listpublic` enum('on','off') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `node_registerenable` enum('on','off') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `node_ctype` enum('default','blog','asso','steam','vitrine','ecommerce') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'default', + `node_ctypereg` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_usergroupid` int(3) DEFAULT 0, + `node_subsgroupid` int(3) DEFAULT 0, + `node_subsgrouptempid` int(3) DEFAULT 0, + `node_mailnode` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `nodesettings` +#-- + +CREATE TABLE `{_PREFIX_}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, + `node_mastodon` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_mobilizon` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_matrix` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_peertube` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_nextcloud` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_twitter` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `node_facebook` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `node_group_user` +#-- +CREATE TABLE `{_PREFIX_}node_group_user` ( + `node_group_user_id` int(4) UNSIGNED NOT NULL, + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `node_space` +#-- +CREATE TABLE `{_PREFIX_}package_node_space` ( + `node_space_id` int(4) UNSIGNED NOT NULL, + `node_space_nid` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_space` int(10) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `right` +#-- +CREATE TABLE `{_PREFIX_}right` ( + `right_id` int(4) UNSIGNED NOT NULL, + `coordination_object_content_type` varchar(200) NOT NULL DEFAULT '', + `right_method_name` varchar(200) NOT NULL DEFAULT '', + `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `session` +#-- +CREATE TABLE `{_PREFIX_}session` ( + `user_session_id` varchar(32) NOT NULL DEFAULT '', + `user_session_ip` varchar(48) NOT NULL DEFAULT '', + `user_session_begin` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_session_last_action` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `user_session_url` text NOT NULL, + `user_object` mediumblob NOT NULL, + `user_preference_object` mediumblob NOT NULL, + `language_object` mediumblob NOT NULL, + `user_session_entry_node_id` int(4) NOT NULL DEFAULT 0, + `user_session_navigation_node_id` int(4) NOT NULL DEFAULT 0, + `user_session_vars` longblob NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `user` +#-- +CREATE TABLE `{_PREFIX_}user` ( + `user_id` int(4) NOT NULL, + `user_title` varchar(5) NOT NULL DEFAULT '', + `user_first_name` varchar(40) NOT NULL DEFAULT '', + `user_last_name` varchar(40) NOT NULL DEFAULT '', + `user_login` varchar(40) NOT NULL DEFAULT '', + `user_password` varchar(200) NOT NULL DEFAULT '', + `user_mail` varchar(150) NOT NULL DEFAULT '', + `user_birthdate` varchar(32) NOT NULL DEFAULT '', + `user_website` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_msn` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_jabber` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_facebook` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_mastodon` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_postal_address` text NOT NULL DEFAULT '', + `user_postal_code` varchar(30) NOT NULL DEFAULT '', + `user_city` varchar(100) NOT NULL DEFAULT '', + `user_state` varchar(100) NOT NULL DEFAULT '', + `user_country` varchar(100) NOT NULL DEFAULT '', + `user_organisation` varchar(100) NOT NULL DEFAULT '', + `user_tel` varchar(15) NOT NULL DEFAULT '', + `user_fax` varchar(15) NOT NULL DEFAULT '', + `user_comment` text NOT NULL DEFAULT '', + `user_info` text NOT NULL DEFAULT '', + `user_charte_status` tinyint(4) NOT NULL DEFAULT 0, + `user_account_active` enum('on','off') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off' +) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0; +#-- -------------------------------------------------------- +#-- +#-- Structure de la table `user_preference` +#-- +CREATE TABLE `{_PREFIX_}user_preference` ( + `user_preference_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `langue_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `entry_node_id` int(4) UNSIGNED NOT NULL DEFAULT 0, + `right_id` int(4) UNSIGNED NOT NULL DEFAULT 0 +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +#-- +#-- Index pour la table `{_PREFIX_}cache_list_user_group` +#-- +ALTER TABLE `{_PREFIX_}cache_list_user_group` + ADD PRIMARY KEY (`cache_id`,`cache_index`); + +#-- +#-- Index pour la table `{_PREFIX_}cache_list_user_node` +#-- +ALTER TABLE `{_PREFIX_}cache_list_user_node` + ADD PRIMARY KEY (`cache_id`,`cache_index`); + +#-- +#-- Index pour la table `{_PREFIX_}cache_permission` +#-- +ALTER TABLE `{_PREFIX_}cache_permission` + ADD PRIMARY KEY (`cache_id`,`cache_index`); + +#-- +#-- Index pour la table `{_PREFIX_}cache_tree_group` +#-- +ALTER TABLE `{_PREFIX_}cache_tree_group` + ADD PRIMARY KEY (`cache_id`,`cache_index`); + +#-- +#-- Index pour la table `{_PREFIX_}cache_tree_node` +#-- +ALTER TABLE `{_PREFIX_}cache_tree_node` + ADD PRIMARY KEY (`cache_id`,`cache_index`); + +#-- +#-- Index pour la table `{_PREFIX_}coordination_object` +#-- +ALTER TABLE `{_PREFIX_}coordination_object` + ADD PRIMARY KEY (`coordination_object_id`); + +#-- +#-- Index pour la table `{_PREFIX_}group` +#-- +ALTER TABLE `{_PREFIX_}group` + ADD PRIMARY KEY (`group_id`); + +#-- +#-- Index pour la table `{_PREFIX_}group_user` +#-- +ALTER TABLE `{_PREFIX_}group_user` + ADD PRIMARY KEY (`group_user_id`), + ADD KEY `user_id` (`user_id`), + ADD KEY `group_id` (`group_id`); + +#-- +#-- Index pour la table `{_PREFIX_}langue` +#-- +ALTER TABLE `{_PREFIX_}langue` + ADD PRIMARY KEY (`langue_id`), + ADD KEY `status` (`langue_status`); + +#-- +#-- Index pour la table `{_PREFIX_}node` +#-- +ALTER TABLE `{_PREFIX_}node` + ADD PRIMARY KEY (`node_id`); + +#-- +#-- Index pour la table `{_PREFIX_}node_group_user` +#-- +ALTER TABLE `{_PREFIX_}node_group_user` + ADD PRIMARY KEY (`node_group_user_id`), + ADD KEY `user_id` (`user_id`), + ADD KEY `group_id` (`group_id`), + ADD KEY `node_id` (`node_id`); + +#-- +#-- Index pour la table `{_PREFIX_}object_node_group_user_temp` +#-- +ALTER TABLE `{_PREFIX_}object_node_group_user_temp` + ADD PRIMARY KEY (`node_group_user_id`), + ADD KEY `user_id` (`user_id`), + ADD KEY `group_id` (`group_id`), + ADD KEY `node_id` (`node_id`); + +#-- +#-- Index pour la table `{_PREFIX_}object_textentrynode` +#-- +ALTER TABLE `{_PREFIX_}object_textentrynode` + ADD PRIMARY KEY (`textentrynode_id`), + ADD KEY `node_id` (`node_id`); + +#-- +#-- Index pour la table `{_PREFIX_}object_textinfo` +#-- +ALTER TABLE `{_PREFIX_}object_textinfo` + ADD PRIMARY KEY (`textinfo_id`); + +#-- +#-- Index pour la table `{_PREFIX_}object_user_temp` +#-- +ALTER TABLE `{_PREFIX_}object_user_temp` + ADD PRIMARY KEY (`user_id`), + ADD KEY `user_login` (`user_login`), + ADD KEY `user_password` (`user_password`), + ADD KEY `user_mail` (`user_mail`); + +#-- +#-- Index pour la table `{_PREFIX_}package_backup` +#-- +ALTER TABLE `{_PREFIX_}package_backup` + ADD PRIMARY KEY (`backup_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_backupbd` +#-- +ALTER TABLE `{_PREFIX_}package_backupbd` + ADD PRIMARY KEY (`backupbd_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_backupfile` +#-- +ALTER TABLE `{_PREFIX_}package_backupfile` + ADD PRIMARY KEY (`backupfile_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_file` +#-- +ALTER TABLE `{_PREFIX_}package_file` + ADD PRIMARY KEY (`file_id`), + ADD KEY `nid` (`node_id`), + ADD KEY `oid` (`coordination_object_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_filedata` +#-- +ALTER TABLE `{_PREFIX_}package_filedata` + ADD PRIMARY KEY (`filedata_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_node_space` +#-- +ALTER TABLE `{_PREFIX_}package_node_space` + ADD PRIMARY KEY (`node_space_id`); + +#-- +#-- Index pour la table `{_PREFIX_}package_user_space` +#-- +ALTER TABLE `{_PREFIX_}package_user_space` + ADD PRIMARY KEY (`user_space_id`); + +#-- +#-- Index pour la table `{_PREFIX_}right` +#-- +ALTER TABLE `{_PREFIX_}right` + ADD PRIMARY KEY (`right_id`), + ADD KEY `object_id` (`coordination_object_id`), + ADD KEY `noeud_id` (`node_id`), + ADD KEY `user_id` (`user_id`), + ADD KEY `group_id` (`group_id`), + ADD KEY `class_name` (`coordination_object_content_type`), + ADD KEY `method_name` (`right_method_name`); + +#-- +#-- Index pour la table `{_PREFIX_}session` +#-- +ALTER TABLE `{_PREFIX_}session` + ADD PRIMARY KEY (`user_session_id`); + + +#-- +#-- Index pour la table `{_PREFIX_}user` +#-- +ALTER TABLE `{_PREFIX_}user` + ADD PRIMARY KEY (`user_id`), + ADD KEY `user_login` (`user_login`), + ADD KEY `user_password` (`user_password`), + ADD KEY `user_mail` (`user_mail`); + +#-- +#-- Index pour la table `{_PREFIX_}user_preference` +#-- +ALTER TABLE `{_PREFIX_}user_preference` + ADD PRIMARY KEY (`user_preference_id`); + +#-- +#-- AUTO_INCREMENT pour les tables déchargées +#-- + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}coordination_object` +#-- +ALTER TABLE `{_PREFIX_}coordination_object` + MODIFY `coordination_object_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}group` +#-- +ALTER TABLE `{_PREFIX_}group` + MODIFY `group_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}group_user` +#-- +ALTER TABLE `{_PREFIX_}group_user` + MODIFY `group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}langue` +#-- +ALTER TABLE `{_PREFIX_}langue` + MODIFY `langue_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}node` +#-- +ALTER TABLE `{_PREFIX_}node` + MODIFY `node_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}node_group_user` +#-- +ALTER TABLE `{_PREFIX_}node_group_user` + MODIFY `node_group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_node_group_user_temp` +#-- +ALTER TABLE `{_PREFIX_}object_node_group_user_temp` + MODIFY `node_group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_textentrynode` +#-- +ALTER TABLE `{_PREFIX_}object_textentrynode` + MODIFY `textentrynode_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_user_temp` +#-- +ALTER TABLE `{_PREFIX_}object_user_temp` + MODIFY `user_id` int(4) NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backup` +#-- +ALTER TABLE `{_PREFIX_}package_backup` + MODIFY `backup_id` int(4) NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backupbd` +#-- +ALTER TABLE `{_PREFIX_}package_backupbd` + MODIFY `backupbd_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backupfile` +#-- +ALTER TABLE `{_PREFIX_}package_backupfile` + MODIFY `backupfile_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_file` +#-- +ALTER TABLE `{_PREFIX_}package_file` + MODIFY `file_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_filedata` +#-- +ALTER TABLE `{_PREFIX_}package_filedata` + MODIFY `filedata_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_node_space` +#-- +ALTER TABLE `{_PREFIX_}package_node_space` + MODIFY `node_space_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_user_space` +#-- +ALTER TABLE `{_PREFIX_}package_user_space` + MODIFY `user_space_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}right` +#-- +ALTER TABLE `{_PREFIX_}right` + MODIFY `right_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT; + +#-- +#-- AUTO_INCREMENT pour la table `{_PREFIX_}user` +#-- +ALTER TABLE `{_PREFIX_}user` + MODIFY `user_id` int(4) NOT NULL AUTO_INCREMENT; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/install/db_scripts/mysql/8_insert_datas.sql b/install/db_scripts/mysql/8_insert_datas.sql new file mode 100755 index 0000000..69ef7f6 --- /dev/null +++ b/install/db_scripts/mysql/8_insert_datas.sql @@ -0,0 +1,171 @@ +#-- +#-- Script de création de la Base de données de Qware +#-- Généré le : ven. 04 déc. 2020 à 15:50 +#-- Version du serveur : 10.3.24-MariaDB-2 +#-- Version de PHP : 7.4.11 +#-- Rooty +#-- +#-- Base de données: `{_DATABASE_}` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `object_node_group_user_temp` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `object_textentrynode` +#-- +INSERT INTO `{_PREFIX_}object_textentrynode` (`textentrynode_id`, `node_id`, `textentrynode_resume`, `textentrynode_text`, `langue_id`) VALUES +(1, 2, 'Résumé de la plateforme Qware', '
+

Qware est la plate-forme de services mutualisés du Limousin mise en oeuvre dans le cadre de Practiciel.
+

+
+
+

Qware (www.qware.fr) est une application web permettant de rassembler virtuellement des communautés dans un espace de travail personnalisé.

+

Une communauté traduit un besoin de se fédérer autour d''une ambition, d''un projet ou d''un intérêt commun. Le principal atout de Qware réside dans le partage d''outils, la gestion des droits et la mutualisation des données. Il permet à tout utilisateur non technicien d''organiser sa communauté à son gré, sans difficulté et sans connaissance particulière.

+
+

Que vous représentiez une association, une entreprise, un organisme de formation, une collectivité, vous aurez certainement besoin d''outils web pour concrétiser vos projets. Il se peut que certains d''entre eux soient les mêmes que ceux utilisés par votre « voisin ». Alors pourquoi ne pas les partager grâce à Qware ?

+
+Qware est un logiciel libre.
+

Ce choix repose sur la volonté de permettre à l''ensemble des acteurs de s''approprier l''application à moindre coût afin de permettre des développements ultérieurs dans le cadre d''une démarche de développement durable.

+

Le déploiement et l''animation du projet Qware ont été confiés initialement à l''Agence Régionale de Développement du Limousin.

+


+

+
Aujourd''hui le projet vit et évolue grâce à une Communauté Libre composée de développeurs et de contributeurs issus du monde professionnel de l''informatique.
+
+

+Pour tout contact : contact@qware.net', 1); + +#----------------------------------------------------------- +#-- +#-- Contenu de la table `object_textinfo` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `object_user_temp` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_backup` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_backupbd` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_backupfile` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_file` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_filedata` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `package_user_space` +#-- +INSERT INTO `{_PREFIX_}package_user_space` VALUES (1, 1, 0, 2147483647); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `cache_list_user_group` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `cache_list_user_node` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `cache_permission` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `cache_tree_group` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `cache_tree_node` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `coordination_object` +#-- +INSERT INTO `{_PREFIX_}coordination_object` VALUES (1, '0000-00-00 00:00:00', 2, 3, 'defaultobject.png', 'AdminObject', '\n\r\n\r\r\n c. Gérer les outils\r\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a333a7b733a31323a22746162466f7262696464656e223b613a303a7b7d733a373a2267726f75704964223b733a313a2231223b733a363a226e6f64654964223b733a313a2231223b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (3, '0000-00-00 00:00:00', 2, 100, 'defaultobject.png', 'Home', '\r\n\r\n\r\n Accueil\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a303a7b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (4, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'AdminNode', '\r\n\r\n\r\n b. Gérer les espaces\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a333a7b733a373a2267726f75704964223b693a313b733a363a226e6f64654964223b733a313a2231223b733a383a2274656d706c617465223b613a313a7b693a303b733a373a2264656661756c74223b7d7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (5, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'AddCom', '\r\n\r\n\r\n a. Créer une communauté\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a303a7b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (6, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'AdminGroup', '\r\n\r\n\r\n d. Gérer les groupes\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a313a7b733a373a2267726f75704964223b733a313a2231223b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (7, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'AdminEntryNode', '\r\n\r\n\r\n e. Gérer les accès\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a323a7b733a373a2267726f75704964223b733a313a2231223b733a363a226e6f64654964223b733a313a2231223b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (8, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'AdminUser', '\r\n\r\n\r\n f. Gérer les comptes\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a313a7b733a373a2267726f75704964223b733a313a2231223b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (35, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'InstallManager', '\r\n\r\n\r\n g. Gérer les mises à jour\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a333a7b733a333a22667470223b733a31373a226d616a2e6772616e69776172652e6e6574223b733a353a226c6f67696e223b733a363a22737461626c65223b733a363a22706173737764223b733a363a22737461626c65223b7d); +INSERT INTO `{_PREFIX_}coordination_object` VALUES (2, '0000-00-00 00:00:00', 2, 99, 'defaultobject.png', 'Community', '\r\n\r\n\r\n Les communautés\r\n\r\n\r\n', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0x613a303a7b7d); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `group` +#-- +INSERT INTO `{_PREFIX_}group` VALUES (1, 0, '\r\n\r\n\r\nTous les utilisateurs\r\n\r\n\r\n', ''); +INSERT INTO `{_PREFIX_}group` VALUES (2, 1, '\r\n\r\n\r\nAnonyme\r\n\r\n\r\n', ''); +INSERT INTO `{_PREFIX_}group` VALUES (3, 1, '\r\n\r\n\r\nAdministrateur\r\n\r\n\r\n', 'defaultnode.png'); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `group_user` +#-- +INSERT INTO `{_PREFIX_}group_user` VALUES (1, 1, 2); +INSERT INTO `{_PREFIX_}group_user` VALUES (2, 2, 3); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `langue` +#-- +INSERT INTO `{_PREFIX_}langue` VALUES (1, '\r\n\r\n\r\nFrançais\r\n\r\n\r\n', 'fr', 1); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `node` +#-- +INSERT INTO `{_PREFIX_}node` VALUES (1, 0, '\r\n\r\n\r\nRacine\r\n\r\n\r\n', 'orange08.png', 'lcube6', 'www.qware.fr', 'off', 'default', '', 0, 0, 0, ''); +INSERT INTO `{_PREFIX_}node` VALUES (2, 1, '\r\n\r\n\r\nAnonyme\r\n\r\n\r\n', 'blockdevice.png', 'lcube6', 'www.qware.fr', 'off', 'default', '', 0, 0, 0, ''); +INSERT INTO `{_PREFIX_}node` VALUES (3, 1, '\r\n\r\n\r\nAdministration\r\n\r\n\r\n', 'orange15.png', 'lcube6', 'www.qware.fr', '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', 'lcube6', 'www.qware.fr', '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', 'lcube6', 'www.qware.fr', 'off', 'default', '', 0, 0, 0, ''); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `node_group_user` +#-- +INSERT INTO `{_PREFIX_}node_group_user` VALUES (1, 1, 0, 2); +INSERT INTO `{_PREFIX_}node_group_user` VALUES (3, 0, 3, 3); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `node_space` +#-- +INSERT INTO `{_PREFIX_}package_node_space` VALUES (1, 1, 4294967295); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `right` +#-- +INSERT INTO `{_PREFIX_}right` VALUES (1, 'AdminObject', 'actionAdmin', 1, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (2, 'Home', 'actionLecture', 3, 2, 0, 1); +INSERT INTO `{_PREFIX_}right` VALUES (5, 'TextInfo', 'actionAdmin', 3, 100, 0, 1); +INSERT INTO `{_PREFIX_}right` VALUES (12, 'AdminNode', 'actionAdmin', 4, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (13, 'AdminGroup', 'actionAdmin', 6, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (14, 'AdminEntryNode', 'actionAdmin', 7, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (16, 'AdminUser', 'actionAdmin', 8, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (11, 'AddCom', 'actionAdmin', 5, 99, 0, 3); +INSERT INTO `{_PREFIX_}right` VALUES (60, 'InstallManager', 'actionInstall', 35, 99, 0, 1); +INSERT INTO `{_PREFIX_}right` VALUES (17, 'Community', 'actionLecture', 2, 2, 0, 1); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `session` +#-- +#----------------------------------------------------------- +#-- +#-- Contenu de la table `user` +#-- +INSERT INTO `{_PREFIX_}user` VALUES (1, '0', 'Anonyme', '', 'Guest', '', '', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 'on'); +INSERT INTO `{_PREFIX_}user` VALUES (2, '0', '', '', '', '', '', '', '', '', '0', '', '', '', '', '', '', '', '', '', '', '', '', 0, 'on'); +#----------------------------------------------------------- +#-- +#-- Contenu de la table `user_preference` +#--