function devel_debug_log_install in Devel Debug Log 7
Implements hook_install().
File
- ./
devel_debug_log.install, line 11 - Devel debug log module install/schema hooks.
Code
function devel_debug_log_install() {
if (!db_table_exists('devel_debug_log')) {
$schema = array(
'description' => 'Table for storing debug messages.',
'fields' => array(
'id' => array(
'description' => 'The message identifier.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'timestamp' => array(
'description' => 'The Unix timestamp when the message was saved.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'title' => array(
'description' => 'The title of the debug message.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'message' => array(
'description' => 'The debug message.',
'type' => 'text',
'size' => 'big',
'not null' => TRUE,
),
'serialized' => array(
'description' => 'Indicates whether the message is serialized.',
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'id',
),
);
db_create_table('devel_debug_log', $schema);
}
}