web: logger schema update

This commit is contained in:
Bart Van Der Meerssche 2009-08-27 19:10:28 +00:00
parent dad56e6776
commit 0ada64d2d2
1 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,13 @@ function logger_schema() {
'length' => '32', 'length' => '32',
'not null' => TRUE, 'not null' => TRUE,
), ),
'serial' => array(
'description' => t('TODO: please describe this field!'),
'type' => 'int',
'unsigned' => TRUE,
'size' => 'big',
'not null' => TRUE,
),
'uid' => array( 'uid' => array(
'type' => 'int', 'type' => 'int',
'unsigned' => TRUE, 'unsigned' => TRUE,
@ -158,11 +165,13 @@ function logger_schema() {
'type' => 'varchar', 'type' => 'varchar',
'length' => '16', 'length' => '16',
'not null' => TRUE, 'not null' => TRUE,
'default' => 'electricity',
), ),
'function' => array( 'function' => array(
'type' => 'varchar', 'type' => 'varchar',
'length' => '16', 'length' => '16',
'not null' => TRUE, 'not null' => TRUE,
'default' => 'main',
), ),
'value' => array( 'value' => array(
'type' => 'int', 'type' => 'int',
@ -182,6 +191,7 @@ function logger_schema() {
'type' => 'varchar', 'type' => 'varchar',
'length' => '16', 'length' => '16',
'not null' => TRUE, 'not null' => TRUE,
'default' => 'watt',
), ),
), ),
'primary key' => array('meter'), 'primary key' => array('meter'),