Revision e9734207
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/forum_access/forum_access.install | ||
---|---|---|
86 | 86 |
'unsigned' => TRUE, |
87 | 87 |
'not null' => TRUE, |
88 | 88 |
'default' => 0), |
89 |
'priority' => array( |
|
89 |
'priority' => array(
|
|
90 | 90 |
'description' => 'The priority of this grant.', |
91 | 91 |
'type' => 'int', |
92 | 92 |
'size' => 'small', |
93 | 93 |
'not null' => TRUE, |
94 | 94 |
'default' => 0)), |
95 |
'indexes' => array( |
|
96 |
'tid' => array('tid'), |
|
97 |
'rid' => array('rid')), |
|
95 |
'primary key' => array('tid', 'rid'), |
|
96 |
'indexes' => array('rid' => array('rid')), |
|
98 | 97 |
'foreign keys' => array( |
99 | 98 |
'tid' => array('taxonomy_term_data' => 'tid'), |
100 | 99 |
'rid' => array('role' => 'rid')), |
... | ... | |
184 | 183 |
function forum_access_update_7002() { |
185 | 184 |
variable_del('forum_access_D5_legacy_mode'); |
186 | 185 |
} |
186 |
|
|
187 |
/** |
|
188 |
* Drop tid index and add primary key to forum_access table. |
|
189 |
*/ |
|
190 |
function forum_access_update_7003() { |
|
191 |
db_drop_index('forum_access', 'tid'); |
|
192 |
db_add_primary_key('forum_access', array('tid', 'rid')); |
|
193 |
} |
Also available in: Unified diff
Weekly update of contrib modules