Drupal 6-Modul-Installationsdatei erstellt keine Tabellen in der Datenbank
Ich benutze die Schema-API, um Tabellen für mein Modul auf Drupa 6.17 zu erstellen, aber die Tabellen werden einfach nicht in der Datenbank erstellt. Ich habe das Schema-Modul installiert und es sagt mir, dass das Schema für mein Modul zwar erkannt wird, seine Tabelle sich jedoch nicht in der Datenbank befindet. Es kommt unter Vermisst:
Tables in the schema that are not present in the database.
test
* test_table
Hier ist der Inhalt für meine test.install-Datei.
<?php
// $Id$
function test_schema() {
$schema['test_table'] = array(
'description' => t('Test table'),
'fields' => array(
'nid' => array(
'description' => t('test field'),
'type' => 'serial',
'not null' => TRUE,
),
'options' => array(
'description' => t('other test field'),
'type' => 'text',
'not null' => FALSE,
),
),
'primary key' => array('nid'),
);
return $schema;
}
function test_install() {
drupal_install_schema('test');
}
function test_uninstall() {
drupal_uninstall_schema('test');
}