i new drupal, working on custom module, here .install file code, not creating table in database when install module. can please tell me wrong
<?php function make_application_schema() { $schema['make_master'] = array( 'description' => 'make master table', 'fields' => array( 'make_id' => array( 'description' => 'make id primary key auto increment', 'type' => 'serial', 'not null' => true, ), 'make_name' => array( 'description' => 'make name', 'type' => 'varchar', 'length' => '100', 'not null' => true, ), 'make_status' => array( 'description' => 'check make status', 'type' => 'int', 'size' => 'tiny', 'not null' => true, ), ), 'primary key' => array('make_id'), ); return $schema; } function make_application_install() { } function make_application_uninstall() { }
in order install database 'make_master' have call drupal_install_schema module name:
drupal_install_schema('make_application');
Comments
Post a Comment