Note that there are some explanatory texts on larger screens.

plurals
  1. POin custom module creation how to see the base database table in drupal 7.15
    primarykey
    data
    text
    <p>I am creating a module in drupal 7.15 which is depended on the entity api . my module name is employee I have created a employee.info file, along with employee.install file. But in the database i cant see my own created database schema in the employee.install file. Here is my .info file and .install file respectively edit:</p> <pre><code>name = Employee Management description = A module that describes about the employee management core = 7.x package = Employee management module files[] = employee.module </code></pre> <p>edit:</p> <pre><code>&lt;?php /** * @file * Install for a employee entity - need to create the base table for our entity. * This table can have as many colums as you need to keep track of entity-specific * data that will not be added via attached fields. * The minimum information for the entity to work is an id and an entity name. */ /** * Implements hook_schema() */ function employee_schema() { $schema = array(); $schema['employee'] = array( 'description' =&gt; 'The base table for employee entity.', 'fields' =&gt; array( 'employee_id' =&gt; array( 'description' =&gt; 'Primary Key: Identifier for a employee entity.', 'type' =&gt; 'serial', 'unsigned' =&gt; TRUE, 'not null' =&gt; TRUE, ), 'first_name' =&gt; array( 'description' =&gt; 'The First name of employee entity.', 'type' =&gt; 'varchar', 'length' =&gt; 255, 'not null' =&gt; TRUE, 'default' =&gt; '', ), 'last_name' =&gt; array( 'description' =&gt; 'The Last name of employee entity.', 'type' =&gt; 'varchar', 'length' =&gt; 255, 'not null' =&gt; TRUE, 'default' =&gt; '', ), 'employee_add' =&gt; array( 'description' =&gt; 'The address of employee entity.', 'type' =&gt; 'varchar', 'length' =&gt; 255, 'not null' =&gt; TRUE, 'default' =&gt; '', ), 'employee_doj' =&gt; array( 'description' =&gt; 'The address of employee entity.', 'type' =&gt; 'date', 'not null' =&gt; TRUE, 'default' =&gt; '', ), ), 'primary key' =&gt; array('employee_id'), ); return $schema; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload