function farm_soil_nrcs_schema in farmOS 7
Implements hook_schema().
File
- modules/
farm/ farm_soil/ farm_soil_nrcs/ farm_soil_nrcs.install, line 19 - Farm soil nrcs install.
Code
function farm_soil_nrcs_schema() {
$schema['farm_soil_nrcs_stir'] = array(
'description' => 'NRCS STIR values',
'fields' => array(
'operation' => array(
'description' => 'STIR operation name',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'stir' => array(
'description' => 'STIR value',
'type' => 'numeric',
'unsigned' => TRUE,
'precision' => 10,
'scale' => 7,
'not null' => TRUE,
),
),
'primary key' => array(
'operation',
),
);
return $schema;
}