[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / ecrire / maj / v010.php
index c3429f0..4aeb93e 100644 (file)
@@ -3,44 +3,54 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2016                                                *
+ *  Copyright (c) 2001-2017                                                *
  *  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.   *
 \***************************************************************************/
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+/**
+ * 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) {
 
-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);
+               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);
+               maj_version(1.02);
        }
 
        if (upgrade_vers(1.03, $version_installee, $version_cible)) {
                spip_query("DROP TABLE spip_maj");
-               maj_version (1.03);
+               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);
+               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);
+               maj_version(1.05);
        }
 }
-
-
-?>