| 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. |
| 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')) |
| 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 |
|
|