Changeset 109731 in spip-zone


Ignore:
Timestamp:
Mar 29, 2018, 3:04:56 PM (20 months ago)
Author:
fil@…
Message:

bonne version de base a l'upgrade (booz)

Location:
_plugins_/stats_data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/stats_data/base/stats_data.php

    r109320 r109731  
    66
    77function stats_data_declarer_tables_auxiliaires($tables_auxiliaires){
    8         $tables_auxiliaires['spip_referers_articles']['field']['visites_jour'] = "int(10) unsigned not null default '0'";
    9         $tables_auxiliaires['spip_referers_articles']['field']['visites_veille'] = "int(10) unsigned not null default '0'";
     8        $tables_auxiliaires['spip_referers_articles']['field']['visites_jour'] = "int(10) unsigned not null default 0";
     9        $tables_auxiliaires['spip_referers_articles']['field']['visites_veille'] = "int(10) unsigned not null default 0";
    1010        return $tables_auxiliaires;
    1111}
  • _plugins_/stats_data/inclure/stats_data.html

    r109363 r109731  
    441441</div>
    442442<p style="text-align:center;clear:both;">...</p>
     443<div class="debug">
     444        <small>stats_data version #CONFIG{stats_data_base_version}.</small>
     445</div>
  • _plugins_/stats_data/stats_data_administrations.php

    r109320 r109731  
    1414        if ((!isset($GLOBALS['meta'][$nom_meta_base_version]))
    1515                        || (($current_version = $GLOBALS['meta'][$nom_meta_base_version])!=$version_cible)){
    16                         if (version_compare($current_version,'0.1','<')){
     16                        if (version_compare($current_version,'1.0.0','<')){
    1717                                include_spip('base/abstract_sql');
    1818                                sql_alter("TABLE spip_referers_articles ADD visites_jour int(10) unsigned not null default '0'");
    1919                                sql_alter("TABLE spip_referers_articles ADD visites_veille int(10) unsigned not null default '0'");
    20                                 ecrire_meta($nom_meta_base_version,$current_version="0.1");
     20                                ecrire_meta($nom_meta_base_version,$current_version="1.0.0");
    2121                }
    2222        }
Note: See TracChangeset for help on using the changeset viewer.