| 1 |
<?php
|
| 2 |
// $Id: gnokii.install,v 1.1 2008/08/06 14:55:55 diggersf Exp $
|
| 3 |
function gnokii_install() {
|
| 4 |
$result = drupal_install_schema('gnokii');
|
| 5 |
}
|
| 6 |
|
| 7 |
/**
|
| 8 |
* Implementation of hook_schema().
|
| 9 |
*/
|
| 10 |
function gnokii_schema() {
|
| 11 |
$schema['gnokii'] = array(
|
| 12 |
'fields' => array(
|
| 13 |
'mid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
|
| 14 |
'number' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 32),
|
| 15 |
'message' => array('type' => 'text'),
|
| 16 |
'status' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE),
|
| 17 |
),
|
| 18 |
'primary key' => array('mid'),
|
| 19 |
);
|
| 20 |
|
| 21 |
return $schema;
|
| 22 |
}
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Implementation of hook_uninstall().
|
| 26 |
*/
|
| 27 |
function gnokii_uninstall() {
|
| 28 |
drupal_uninstall_schema('gnokii');
|
| 29 |
}
|