You are here

function paymentmethodbasic_schema in Payment 7

Implements hook_schema().

File

modules/paymentmethodbasic/paymentmethodbasic.install, line 11
Installation and uninstallation functions.

Code

function paymentmethodbasic_schema() {
  $schema['paymentmethodbasic'] = array(
    'fields' => array(
      'message' => array(
        'type' => 'text',
        'size' => 'big',
      ),
      'pmid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'status' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'text_format' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pmid',
    ),
    'unique keys' => array(
      'pmid' => array(
        'pmid',
      ),
    ),
  );
  return $schema;
}