source: extensions/AddInfousers/maintain.inc.php @ 27446

Last change on this file since 27446 was 10574, checked in by ddtddt, 14 years ago

[extensions] - AddInfousers - First release

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 754 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5function plugin_install()
6{
7    global $prefixeTable;
8
9if (!defined('ADDINFOUSERS_TABLE')) define('ADDINFOUSERS_TABLE', $prefixeTable.'AddInfo_users');
10        $query = "CREATE TABLE IF NOT EXISTS ". ADDINFOUSERS_TABLE ." (
11id SMALLINT( 5 ) UNSIGNED NOT NULL ,
12info1 VARCHAR( 255 ) NOT NULL ,
13info2 VARCHAR( 255 ) NOT NULL ,
14info3 VARCHAR( 255 ) NOT NULL ,
15info4 VARCHAR( 255 ) NOT NULL ,
16info5 VARCHAR( 255 ) NOT NULL ,
17info6 VARCHAR( 255 ) NOT NULL ,
18info7 VARCHAR( 255 ) NOT NULL ,
19PRIMARY KEY (id))DEFAULT CHARSET=utf8;";
20        $result = pwg_query($query);
21
22}
23
24function plugin_uninstall()
25{
26        global $prefixeTable;
27
28        $q = 'DROP TABLE ' . $prefixeTable . 'AddInfo_users;';
29    pwg_query($q);
30}
31
32
33?>
Note: See TracBrowser for help on using the repository browser.