module schema api

Fix for Issue with hook_schema and installing a module -- it doesn't create the table

  1. /**
  2.  * Implementation of hook_install().
  3.  */
  4. function header_links_install() {
  5.   drupal_install_schema('header_links');
  6. }
  7.  
  8. /**
  9.  * Implementation of hook_uninstall().
  10.  */
  11. function header_link

Fix for Fix for Issue with hook_schema and installing a module -- installer doesn't like my schema

  1. $schema['sites'] = array(
  2.     'description' => t('Stores site names and private keys'),
  3.     'fields' => array(
  4.       'sid' => array(
  5.         'type' => 'serial',
  6.         'unsigned' => TRUE,
  7.      

Fix for Issue with hook_schema and installing a module -- installer doesn't like my schema

  1. $schema['sites'] = array(
  2.     'description' => t('Stores site names and private keys'),
  3.     'fields' => array(
  4.       'sid' => array(
  5.         'type' => 'serial',
  6.         'unsigned' => TRUE,

Issue with hook_schema and installing a module -- installer doesn't like my schema

  1. $schema['sites'] = array(
  2.     'description' => t('Stores site names and private keys'),
  3.     'fields' => array(
  4.       'sid' => array(
  5.         'type' => 'serial',
  6.         'unsigned' => TRUE,

getting error while installing .. near "_drupal_initialize_schema" and "drupal_install_schema" at foreach($schema as $name => ..

  1. <?php # vim: set filetype=php expandtab tabstop=2 shiftwidth=2 autoindent smartindent:
  2. /*
  3.  * Created on Mar 9, 2008
  4.  *
  5.  * file: emlex_account.install
Syndicate content