sql/updates/mysql_1.6.0_to_1.6.1.php
author Dirk Haun <dirk@haun-online.de>
Sun, 11 Oct 2009 11:00:55 +0200
branchHEAD
changeset 7370 e5bbed84d3b1
parent 7254 6230420fef6d
child 7393 d0952e303944
permissions -rw-r--r--
Added new option $_CONF['article_comment_close_enabled'] to enable/disable automatically closing stories for comments after a certain amount of days (bug #0000959). Changed handling of comment_expire field in gl_stories such that 0 means the story is always open for comments.
     1 <?php
     2 
     3 // Add meta tag columns to story table 
     4 $_SQL[] = "ALTER TABLE {$_TABLES['stories']} ADD meta_description TEXT NULL AFTER frontpage, ADD meta_keywords TEXT NULL AFTER meta_description";
     5 
     6 
     7 // Add meta tag columns to topics table 
     8 $_SQL[] = "ALTER TABLE {$_TABLES['topics']} ADD meta_description TEXT NULL AFTER imageurl, ADD meta_keywords TEXT NULL AFTER meta_description";
     9 
    10 /**
    11  * Add new config options
    12  *
    13  */
    14 function update_ConfValuesFor161()
    15 {
    16     global $_CONF, $_TABLES;
    17 
    18     require_once $_CONF['path_system'] . 'classes/config.class.php';
    19 
    20     $c = config::get_instance();
    21 
    22     // meta tag config options.
    23     $c->add('meta_tags',0,'select',0,0,23,2000,TRUE);
    24     $c->add('meta_description','Geeklog, the open source content management system designed with security in mind.','text',0,0,NULL,2010,TRUE);
    25     $c->add('meta_keywords','Geeklog, Blog, Content Management System, CMS, Open Source, Security','text',0,0,NULL,2020,TRUE);
    26 
    27     // new option to enable / disable closing of comments after x days
    28     $c->add('article_comment_close_enabled',0,'select',4,21,0, 1685, TRUE);
    29 
    30     return true;
    31 }
    32 
    33 ?>