source: extensions/Comments_on_Albums/maintain.inc.php @ 9634

Last change on this file since 9634 was 9634, checked in by mistic100, 13 years ago

[plugins] Comments on Albums

  • corrections
  • public list available
File size: 772 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4// Installation
5function plugin_install() {
6        global $prefixeTable;
7
8        pwg_query("CREATE TABLE `" . $prefixeTable . "comments_categories` (
9                `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
10                `category_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
11                `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
12                `author` varchar(255) DEFAULT NULL,
13                `author_id` smallint(5) DEFAULT NULL,
14                `content` longtext,
15                `validated` enum('true','false') NOT NULL DEFAULT 'false',
16                `validation_date` datetime DEFAULT NULL,
17                PRIMARY KEY (`id`)
18        ) DEFAULT CHARSET=utf8;");
19}
20
21// Uninstallation
22function plugin_uninstall() {
23        global $prefixeTable;
24
25        pwg_query("DROP TABLE `" . $prefixeTable . "comments_categories`;");
26}
27?>
Note: See TracBrowser for help on using the repository browser.