root/alternc-webalizer/trunk/webalizer.sql

Revision 1482, 0.9 kB (checked in by anonymous, 4 years ago)

fusionner le fichier d'upgrade dans le fichier de config principal de
sql, puisqu'il est omnipotent.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2 CREATE TABLE IF NOT EXISTS `stats` (
3   `id` int(10) unsigned NOT NULL auto_increment,
4   `uid` int(10) unsigned NOT NULL default '0',
5   `hostname` varchar(255) NOT NULL default '',
6   `dir` varchar(255) NOT NULL default '',
7   `lang` varchar(6) NOT NULL default 'fr_FR',
8   PRIMARY KEY  (`id`)
9 ) TYPE=MyISAM COMMENT='Statistiques web par Webalizer';
10
11 # --------------------------------------------------------
12
13 # fixes integrated for 0.9.3
14
15 # First, we change the lang field to a 6 char long varchar instead of an enum
16 ALTER TABLE `stats` CHANGE `lang` `lang` VARCHAR(6) DEFAULT 'fr_FR' NOT NULL;
17
18 # Then we convert th 4 formers languages :
19 UPDATE `stats` SET `lang`='fr_FR' WHERE `lang`='FR' OR `lang`=''; # default
20 UPDATE `stats` SET `lang`='en_US' WHERE `lang`='EN';
21 UPDATE `stats` SET `lang`='es_ES' WHERE `lang`='ES';
22 UPDATE `stats` SET `lang`='de_DE' WHERE `lang`='DE';
Note: See TracBrowser for help on using the browser.