You are here

function mollie_payment_schema in Mollie Payment 7.2

Same name and namespace in other branches
  1. 7 mollie_payment.install \mollie_payment_schema()

Implements hook_schema().

File

./mollie_payment.install, line 11
Install and update hooks for Mollie Payment.

Code

function mollie_payment_schema() {
  $schema['mollie_payment_payment_method_configurations'] = array(
    'description' => 'Configuration data for Mollie Payment payment methods.',
    'fields' => array(
      'pmid' => array(
        'description' => 'The pmid of the payment method within Payment.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'configuration' => array(
        'description' => 'Serialized representation of the configuration.',
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pmid',
    ),
  );
  return $schema;
}