[1028] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
| 3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
| 4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
[1903] | 5 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
[1028] | 6 | // +-----------------------------------------------------------------------+ |
---|
[2059] | 7 | // | file : $Id: 6-database.php 2059 2007-07-10 05:30:01Z rub $ |
---|
[1912] | 8 | // | last update : $Date: 2007-07-10 05:30:01 +0000 (Tue, 10 Jul 2007) $ |
---|
| 9 | // | last modifier : $Author: rub $ |
---|
| 10 | // | revision : $Revision: 2059 $ |
---|
[1028] | 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 | |
---|
| 27 | if (!defined('PHPWG_ROOT_PATH')) |
---|
| 28 | { |
---|
| 29 | die('Hacking attempt!'); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | $upgrade_description = 'Table #user_mail_notification is required for NBM'; |
---|
| 33 | |
---|
| 34 | // +-----------------------------------------------------------------------+ |
---|
| 35 | // | Upgrade content | |
---|
| 36 | // +-----------------------------------------------------------------------+ |
---|
| 37 | |
---|
| 38 | // Creating table user_mail_notification |
---|
| 39 | $query = ' |
---|
| 40 | CREATE TABLE '.PREFIX_TABLE.'user_mail_notification |
---|
| 41 | ( |
---|
| 42 | user_id smallint(5) NOT NULL default \'0\', |
---|
| 43 | check_key varchar(128) binary NOT NULL, |
---|
| 44 | enabled enum(\'true\',\'false\') NOT NULL default \'false\', |
---|
| 45 | last_send datetime default NULL, |
---|
| 46 | PRIMARY KEY (`user_id`), |
---|
| 47 | UNIQUE KEY `uidx_check_key` (`check_key`) |
---|
| 48 | ) TYPE=MyISAM;'; |
---|
| 49 | pwg_query($query); |
---|
| 50 | |
---|
| 51 | echo |
---|
| 52 | "\n" |
---|
| 53 | .'Table '.PREFIX_TABLE.'user_mail_notification created' |
---|
| 54 | ."\n" |
---|
| 55 | ; |
---|
| 56 | ?> |
---|