| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- <?php
 
- function cobaltnodes_install() {
 
-   drupal_install_schema('cobaltnodes');
 
- }
 
- function cobaltnodes_uninstall() {
 
-   drupal_uninstall_schema('cobaltnodes');
 
- }
 
- function cobaltnodes_schema() {
 
-   $schema = array();
 
-   $schema['cobalt_node_deletion'] = array(
 
-     'description' => t('Registers node deletions so that deleted nodes can be removed from the index.'),
 
-     'fields' => array(
 
-       'nid' => array(
 
-         'type' => 'int',
 
-         'unsigned' => TRUE,
 
-         'not null' => TRUE,
 
-         'description' => t('Node id'),
 
-       ),
 
-       'deleted' => array(
 
-         'description' => t('The Unix timestamp when the node was deleted.'),
 
-         'type' => 'int',
 
-         'not null' => TRUE,
 
-         'default' => 0),
 
-     ),
 
-     'primary key' => array('nid'),
 
-   );
 
-   return $schema;
 
- }
 
- function cobaltnodes_update_7000() {
 
-   $ret = array();
 
-   db_rename_table($ret, 'cobalt_nodes_deletions', 'cobalt_node_deletion');
 
-   return $ret;
 
- }
 
 
  |