source: extensions/HasHigh/maintain.inc.php @ 3307

Last change on this file since 3307 was 3297, checked in by patdenice, 16 years ago

New extension added:
Has High (2.0.c)

File size: 399 bytes
Line 
1<?php
2
3function plugin_install()
4{
5  $q = pwg_query('SHOW COLUMNS FROM ' . HISTORY_TABLE . ' LIKE "section"');
6  $section = mysql_fetch_array($q);
7  $type = $section['Type'];
8
9  if (substr_count($type, 'has_high') == 0)
10    $type = strtr($type , array(')' => ',\'has_high\')'));
11
12  pwg_query('ALTER TABLE ' . HISTORY_TABLE . ' CHANGE section section ' . $type . ' DEFAULT NULL');
13}
14
15?>
Note: See TracBrowser for help on using the repository browser.