Ignore:
Timestamp:
Nov 11, 2011, 2:56:45 PM (12 years ago)
Author:
mistic100
Message:

fix many bugs, and management page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/maintain.inc.php

    r12560 r12600  
    99        pwg_query('
    1010CREATE 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`)
    1718) DEFAULT CHARSET=utf8
    1819;');
     
    3536 
    3637  /* 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";');
    3940}
    4041?>
Note: See TracChangeset for help on using the changeset viewer.