I am very new to Drupal, and this is the first time posting here.
When I downloaded DP6 module_builder module to module directory in DP6, and refreshed ../admin/module, I got error saying that schema did not match for module_builder_basic.mid that it did not have "not null" though it is primary key (Sorry I don't have the exact message)
Checked the field definition MySQl which looked fine (i.e. it had NOT NULL specified for "mid" field, but module_builder.install did not have the "not null" => TRUE statement. After adding it as below, it worked fine:
function module_builder_schema() {
$schema['module_builder_basic'] = array(
'description' => t('Stores data having to do with modules.'),
'fields' => array(
'mid' => array(
'type' => 'serial',
'description' => t('The id of the module.'),
'not null' => TRUE,
), ...
I have attached the fixed module_builder.install file here
Hope it helps
SN
| Comment | File | Size | Author |
|---|---|---|---|
| module_builder.install.zip | 708 bytes | sunad |
Comments
Comment #1
sunad commentedChanged priority to minor.
Comment #2
clemens.tolboomHaving the schema module installed I get the error
- module_builder_basic.mid is part of the primary key but is not specified to be 'not null'
The report states:
Comment #3
joachim commentedThanks for the report and the fix.
This is now fixed in CVS.