Révision a2baadd1
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/cas/cas_server.install | ||
---|---|---|
35 | 35 |
'type' => 'int', |
36 | 36 |
'not null' => TRUE, |
37 | 37 |
), |
38 |
'valid' => array( |
|
39 |
'type' => 'int', |
|
40 |
'not null' => TRUE, |
|
41 |
'default' => 1, |
|
42 |
), |
|
38 | 43 |
), |
39 | 44 |
'primary key' => array('ticket'), |
40 | 45 |
); |
... | ... | |
46 | 51 |
/** |
47 | 52 |
* Creates CAS server tickets table. |
48 | 53 |
*/ |
49 |
function cas_server_update_1() {
|
|
54 |
function cas_server_update_7000() {
|
|
50 | 55 |
$schema = array(); |
51 | 56 |
|
52 | 57 |
$schema['cas_server_tickets'] = array( |
... | ... | |
78 | 83 |
); |
79 | 84 |
|
80 | 85 |
$ret = array(); |
81 |
db_create_table($ret, 'cas_server_tickets', $schema['cas_server_tickets']);
|
|
86 |
db_create_table('cas_server_tickets', $schema['cas_server_tickets']); |
|
82 | 87 |
return $ret; |
83 | 88 |
} |
89 |
|
|
90 |
/** |
|
91 |
* Adds valid field to indicate when ticket is valid for reuse. |
|
92 |
*/ |
|
93 |
function cas_server_update_7101() { |
|
94 |
db_add_field('cas_server_tickets', 'valid', array('type' => 'int', 'not null' => TRUE, 'default' => 1, )); |
|
95 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules