source: trunk/install/upgrade_1.6.0.php @ 1932

Last change on this file since 1932 was 1932, checked in by rub, 17 years ago

o add missing $lang
o use of l10n_dec
o normalize file header

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | file          : $Id: upgrade_1.6.0.php 1932 2007-03-29 19:04:54Z rub $
8// | last update   : $Date: 2007-03-29 19:04:54 +0000 (Thu, 29 Mar 2007) $
9// | last modifier : $Author: rub $
10// | revision      : $Revision: 1932 $
11// +-----------------------------------------------------------------------+
12// | This program is free software; you can redistribute it and/or modify  |
13// | it under the terms of the GNU General Public License as published by  |
14// | the Free Software Foundation                                          |
15// |                                                                       |
16// | This program is distributed in the hope that it will be useful, but   |
17// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
18// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
19// | General Public License for more details.                              |
20// |                                                                       |
21// | You should have received a copy of the GNU General Public License     |
22// | along with this program; if not, write to the Free Software           |
23// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
24// | USA.                                                                  |
25// +-----------------------------------------------------------------------+
26
27if (!defined('PHPWG_ROOT_PATH'))
28{
29  die ('This page cannot be loaded directly, load upgrade.php');
30}
31else
32{
33  if (!defined('PHPWG_IN_UPGRADE') or !PHPWG_IN_UPGRADE)
34  {
35    die ('Hacking attempt!');
36  }
37}
38
39$queries = array(
40  "
41ALTER TABLE ".PREFIX_TABLE."user_infos
42  ADD auto_login_key varchar(64) NOT NULL
43;",
44  '
45ALTER TABLE '.PREFIX_TABLE.'users
46  CHANGE username username VARCHAR(100) binary NOT NULL
47;',
48  );
49
50foreach ($queries as $query)
51{
52  pwg_query($query);
53}
54
55// now we upgrade from 1.6.2
56include_once(PHPWG_ROOT_PATH.'install/upgrade_1.6.2.php');
57?>
Note: See TracBrowser for help on using the repository browser.