Skip to content

Commit

Permalink
correctif : nom de table et erreur SQL 1064
Browse files Browse the repository at this point in the history
  • Loading branch information
ynaessens committed Dec 22, 2024
1 parent bc54611 commit 625a5cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions installation/fonctions/maj.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* installation/fonctions/maj.php
* interface permettant la mise à jour de la base de données
* Ce script fait partie de l'application GRR
* Dernière modification : $Date: 2024-02-12 16:19$
* Dernière modification : $Date: 2024-12-22 11:16$
* @author JeromeB & Laurent Delineau & Yan Naessens
* @author Arnaud Fornerot pour l'intégation au portail Envole http://ent-envole.com/
* @copyright Copyright 2003-2024 Team DEVOME - JeromeB
Expand Down Expand Up @@ -1209,13 +1209,13 @@ function execute_maj4($version_old_bdd, $version_grr_bdd)
$result_inter .= traiteRequete("INSERT INTO ".TABLE_PREFIX."_setting VALUES ('login_logo', '1');");
$result_inter .= traiteRequete("INSERT INTO ".TABLE_PREFIX."_setting VALUES ('login_nom', '1');");

$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_pages ADD `statutmini` VARCHAR(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_pages ADD `lien` VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL;");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_pages ADD `nouveauonglet` TINYINT(1) NOT NULL DEFAULT '1';");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_pages ADD `ordre` SMALLINT(6) NOT NULL DEFAULT '0';");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_pages ADD `emplacement` SMALLINT(6) NOT NULL DEFAULT '1';");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_page ADD `statutmini` VARCHAR(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_page ADD `lien` VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL;");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_page ADD `nouveauonglet` TINYINT(1) NOT NULL DEFAULT '1';");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_page ADD `ordre` SMALLINT(6) NOT NULL DEFAULT '0';");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_page ADD `emplacement` SMALLINT(6) NOT NULL DEFAULT '1';");

$result_inter .= traiteRequete("CREATE TABLE IF NOT EXISTS ".TABLE_PREFIX."_j_group_area `idgroupes` int NOT NULL, id_area int NOT NULL DEFAULT '0', PRIMARY KEY (`idgroupes`,`id_area`) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;");
$result_inter .= traiteRequete("CREATE TABLE IF NOT EXISTS ".TABLE_PREFIX."_j_group_area (`idgroupes` int NOT NULL, `id_area` int NOT NULL DEFAULT '0', PRIMARY KEY (`idgroupes`,`id_area`));");
$result_inter .= traiteRequete("ALTER TABLE ".TABLE_PREFIX."_j_user_area ADD `idgroupes` int(11) NOT NULL DEFAULT '0';");


Expand Down

0 comments on commit 625a5cb

Please sign in to comment.