Установочный файл модуля Drupal 6 не создает таблицы в базе данных
Я использую API схемы для создания таблиц для моего модуля на Drupa 6.17, но таблицы просто не создаются в базе данных. У меня установлен модуль Schema, и он говорит мне, что хотя схема для моего модуля распознана, его таблицы нет в базе данных. Это подходит под Missing:
Tables in the schema that are not present in the database.
test
* test_table
Вот содержимое моего файла test.install.
<?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');
}