Hello, that's my first post!
I'm developing a little module for test, with name ElencoLibri.
I'm realizing the ElencoLibri.install files, to automatically add some tables into my database when the module is installed first time, but i'm having some troubles with drupal_install_schema('ElencoLibri'):
That's my ElencoLibri_schema():
<?php
function ElencoLibri_schema(){
$schema['cliente'] = array(
'description' => 'Tabella dei clienti della biblioteca',
'fields' => array(
'nome' => array(
'description' => 'Il nome del cliente',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE),
'cognome' => array(
'description' => 'Il cognome del cliente',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE),
'idc' => array(
'description' => 'id univoco utente',
'type' => 'serial',
'not null' => TRUE),
'indirizzo' => array(
'description' => 'indirizzo di casa del cliente ',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE),
'tel' => array(
'description' => 'Il numero telefonico del cliente',
'type' => 'varchar',
'not null' => TRUE),
'email' => array(
'description' => 'indirizzo email del cliente',
'type' => 'varchar',