/usr/share/drupal6/modules/pingback/pingback.install is in drupal6-mod-pingback 1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <?php
// $Id: pingback.install,v 1.0.0.1 2007/07/26 23:17:13 dww Exp $
/**
* Implementation of hook_schema().
*/
function pingback_schema() {
$schema['pingback_sent'] = array(
'description' => t('Table for pingbacks that have been sent.'),
'fields' => array(
'nid' => array(
'description' => t('NID pingback was sent from.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0
),
'url' => array(
'description' => t('URL pingback was sent to.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => ''
),
'timestamp' => array(
'description' => t('Time when pingback was sent.'),
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0
),
),
'primary key' => array('nid', 'url'),
);
return $schema;
}
/**
* Implementation of hook_install().
*/
function pingback_install() {
// Create my tables.
drupal_install_schema('pingback');
}
/**
* Implementation of hook_uninstall().
*/
function pingback_uninstall() {
// Drop my tables.
drupal_uninstall_schema('pingback');
}
|