You are here

function paypal_donate_schema in Paypal Donation 6

By implementing hook_schema() and specifying the tables your module declares, you can easily create and drop these tables on all supported database engines. You don't have to deal with the different SQL dialects for table creation and alteration of the supported database engines.

@since 1.0

Return value

void

File

./paypal_donate.install, line 27

Code

function paypal_donate_schema() {
  $schema = array();
  $schema['paypal_donate'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'paypal_account' => array(
        'type' => 'varchar',
        'length' => '255',
      ),
    ),
  );
  return $schema;
}