source: trunk/install/db/6-database.php @ 1904

Last change on this file since 1904 was 1903, checked in by vdigital, 17 years ago

Updates:

  • Copyrights 2003-2007
  • help
  • Some HTML comform requests
  • Property svn:eol-style set to LF
File size: 2.6 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// | Copyright (C) 2006 Ruben ARNAUD - team@phpwebgallery.net              |
7// +-----------------------------------------------------------------------+
8// | branch        : BSF (Best So Far)
9// | file          : $RCSfile$
10// | last update   : $Date: 2005-09-21 00:04:57 +0200 (mer, 21 sep 2005) $
11// | last modifier : $Author: plg $
12// | revision      : $Revision: 870 $
13// +-----------------------------------------------------------------------+
14// | This program is free software; you can redistribute it and/or modify  |
15// | it under the terms of the GNU General Public License as published by  |
16// | the Free Software Foundation                                          |
17// |                                                                       |
18// | This program is distributed in the hope that it will be useful, but   |
19// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
20// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
21// | General Public License for more details.                              |
22// |                                                                       |
23// | You should have received a copy of the GNU General Public License     |
24// | along with this program; if not, write to the Free Software           |
25// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
26// | USA.                                                                  |
27// +-----------------------------------------------------------------------+
28
29if (!defined('PHPWG_ROOT_PATH'))
30{
31  die('Hacking attempt!');
32}
33
34$upgrade_description = 'Table #user_mail_notification is required for NBM';
35
36// +-----------------------------------------------------------------------+
37// |                            Upgrade content                            |
38// +-----------------------------------------------------------------------+
39
40// Creating table user_mail_notification
41$query = '
42CREATE TABLE '.PREFIX_TABLE.'user_mail_notification
43(
44  user_id smallint(5) NOT NULL default \'0\',
45  check_key varchar(128) binary NOT NULL,
46  enabled enum(\'true\',\'false\') NOT NULL default \'false\',
47  last_send datetime default NULL,
48  PRIMARY KEY  (`user_id`),
49  UNIQUE KEY `uidx_check_key` (`check_key`)
50) TYPE=MyISAM;';
51pwg_query($query);
52
53echo
54"\n"
55.'Table '.PREFIX_TABLE.'user_mail_notification created'
56."\n"
57;
58?>
Note: See TracBrowser for help on using the repository browser.