/[drupal]/contributions/modules/mappingkit/mapcontext/mapcontext.install
ViewVC logotype

Diff of /contributions/modules/mappingkit/mapcontext/mapcontext.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.4, Mon Jun 30 13:01:03 2008 UTC revision 1.1.2.5, Tue Jul 1 06:22:46 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: mapcontext.install,v 1.1.2.3 2008/06/06 08:02:08 openwereld Exp $  // $Id: mapcontext.install 120 2008-06-30 13:37:38Z johnp $
3    
4  function mapcontext_install() {  function mapcontext_install() {
5    // Create tables.    // Create tables.
# Line 43  function mapcontext_schema() { Line 43  function mapcontext_schema() {
43        , 'layer_title' => array('type' => 'varchar', 'length' => 80)        , 'layer_title' => array('type' => 'varchar', 'length' => 80)
44        , 'legendurl' => array('type' => 'varchar', 'length' => 200)        , 'legendurl' => array('type' => 'varchar', 'length' => 200)
45        , 'hidden' => array('type' => 'int', 'default' => 0)        , 'hidden' => array('type' => 'int', 'default' => 0)
46          , 'baselayer' => array('type' => 'int', 'default' => 0, 'description' => t('Is baselayer?'))
47        , 'opacity' => array('type' => 'float', 'not null' => FALSE, 'description' => t('Opacity'))        , 'opacity' => array('type' => 'float', 'not null' => FALSE, 'description' => t('Opacity'))
48        , 'queryable' => array('type' => 'int', 'default' => 1)        , 'queryable' => array('type' => 'int', 'default' => 1)
49        , 'minscaledenominator' => array('type' => 'float', 'default' => 0, 'description' => t('Minimum scale denominator'))        , 'minscaledenominator' => array('type' => 'float', 'default' => 0, 'description' => t('Minimum scale denominator'))
# Line 101  function mapcontext_update_3() { Line 102  function mapcontext_update_3() {
102    return $ret;    return $ret;
103  }  }
104    
105    function mapcontext_update_4() {
106      $ret = array();
107      db_add_field($ret, 'mapcontext_layers', 'baselayer', array('type' => 'int', 'default' => 0, 'description' => t('Is baselayer?')));
108      return $ret;
109    }
110    

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2