-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathversioncontrol_git.install
More file actions
executable file
·66 lines (63 loc) · 1.77 KB
/
Copy pathversioncontrol_git.install
File metadata and controls
executable file
·66 lines (63 loc) · 1.77 KB
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
<?php
// $Id: versioncontrol_git.install,v 1.16.2.1 2009/04/07 17:35:32 marvil07 Exp $
/**
* @file
* Git backend for Version Control API - Provides Git commit information and
* account management as a pluggable backend.
*
* Copyright 2008 by Jimmy Berry ("boombatower", http://drupal.org/user/214218)
* Copyright 2009 by Cornelius Riemenschneider ("CorniI", http://drupal.org/user/136353)
*/
/**
* Implementation of hook_schema().
*/
function versioncontrol_git_schema() {
$schema['versioncontrol_git_repositories'] = array(
'description' => t('Git repositories.'),
'fields' => array(
'repo_id' => array(
'description' => t('Repository identifier.'),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'update_method' => array(
'description' => t('Update method.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'updated' => array(
'description' => t('Last update.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'locked' => array(
'description' => t('True when there is an update in progress.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
),
),
'primary key' => array('repo_id'),
);
return $schema;
}
/**
* Implementation of hook_install().
*/
function versioncontrol_git_install() {
drupal_install_schema('versioncontrol_git');
}
/**
* Implementation of hook_uninstall().
*/
function versioncontrol_git_uninstall() {
drupal_uninstall_schema('versioncontrol_git');
cache_clear_all('versioncontrol_git_rev_cache', 'cache');
}