function print_mail_update_6001 in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.4 print_mail/print_mail.install \print_mail_update_6001()
- 5.x print_mail/print_mail.install \print_mail_update_6001()
Update to version 6.x-1.1
File
- print_mail/
print_mail.install, line 158 - Install file of the print_mail module
Code
function print_mail_update_6001() {
$schema['print_mail_node_conf'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'link' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => '1',
'size' => 'tiny',
),
'comments' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => '1',
'size' => 'tiny',
),
'url_list' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => '1',
'size' => 'tiny',
),
),
'primary key' => array(
'nid',
),
);
$schema['print_mail_page_counter'] = array(
'fields' => array(
'path' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'totalcount' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
),
'timestamp' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'sentcount' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
),
'sent_timestamp' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'path',
),
);
$ret = array();
db_create_table($ret, 'print_mail_node_conf', $schema['print_mail_node_conf']);
db_create_table($ret, 'print_mail_page_counter', $schema['print_mail_page_counter']);
return $ret;
}