Changeset 12600 for extensions/Subscribe_to_comments/maintain.inc.php
- Timestamp:
- Nov 11, 2011, 2:56:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/maintain.inc.php
r12560 r12600 9 9 pwg_query(' 10 10 CREATE TABLE IF NOT EXISTS `' . $prefixeTable . 'subscribe_to_comments` ( 11 `email` varchar(255) NOT NULL, 12 `image_id` mediumint(8) NOT NULL DEFAULT 0, 13 `category_id` smallint(5) NOT NULL DEFAULT 0, 14 `registration_date` datetime NOT NULL, 15 `validated` enum("true", "false") NOT NULL DEFAULT "false", 16 UNIQUE KEY `UNIQUE` (`mail`, `image_id`, `category_id`) 11 `id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , 12 `email` VARCHAR( 255 ) NOT NULL , 13 `image_id` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT "0", 14 `category_id` SMALLINT( 5 ) UNSIGNED NOT NULL DEFAULT "0", 15 `registration_date` DATETIME NOT NULL, 16 `validated` ENUM( "true", "false" ) NOT NULL DEFAULT "false", 17 UNIQUE KEY `UNIQUE` (`email`, `image_id`, `category_id`) 17 18 ) DEFAULT CHARSET=utf8 18 19 ;'); … … 35 36 36 37 /* delete table and config */ 37 //pwg_query('DROP TABLE `' . $prefixeTable . 'subscribe_to_comments`;');38 pwg_query('DELETE FROM `' . CONFIG_TABLE . '` WHERE param = "Subscribe_to_Comments";');38 pwg_query('DROP TABLE `' . $prefixeTable . 'subscribe_to_comments`;'); 39 // pwg_query('DELETE FROM `' . CONFIG_TABLE . '` WHERE param = "Subscribe_to_Comments";'); 39 40 } 40 41 ?>
Note: See TracChangeset
for help on using the changeset viewer.