/usr/share/drupal6/modules/openid_provider/openid_provider.install is in drupal6-mod-openid-provider 1.0~beta2-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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | <?php
// $Id: openid_provider.install,v 1.2.2.2 2010/02/15 21:13:15 walkah Exp $
/**
* Implementation of hook_install().
*/
function openid_provider_install() {
// Create tables.
drupal_install_schema('openid_provider');
}
/**
* Implementation of hook_uninstall().
*/
function openid_provider_uninstall() {
// Remove tables.
drupal_uninstall_schema('openid_provider');
}
/**
* Implementation of hook_schema().
*/
function openid_provider_schema() {
$schema['openid_provider_relying_party'] = array(
'description' => t('Tracks relying parties a give user has authenticated.'),
'fields' => array(
'rpid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('The {users}.uid that has authenticated this relying party.'),
),
'realm' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => t('The OpenID realm of the authenticated relying party.'),
),
'first_time' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('Timestamp of the first time this relying party was accessed.')
),
'last_time' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('Timestamp of the most recent access'),
),
'auto_release' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('Whether or not to automatically release this relying party.')
),
),
'indexes' => array('uid' => array('uid')),
'primary key' => array('rpid')
);
$schema['openid_provider_association'] = array(
'description' => t('Stores current associaitons with relying parties.'),
'fields' => array(
'assoc_handle' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => ''
),
'assoc_type' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => ''
),
'session_type' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => ''
),
'mac_key' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => ''
),
'created' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'expires_in' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
)
),
'primary key' => array('assoc_handle')
);
return $schema;
}
|