Select Git revision
ec_ogone.install
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ec_ogone.install 1.29 KiB
<?php
/**
* @file
* Ogone module schema
*/
/**
* Implementation of hook_install().
*
*/
function ec_ogone_install() {
drupal_install_schema('ec_ogone');
}
/**
* Implementation of hook_uninstall().
*
*/
function ec_ogone_uninstall() {
drupal_uninstall_schema('ec_ogone');
}
/**
* Implementation of hook_schema().
*
* @return array $schema
*/
function ec_ogone_schema() {
$schema = array();
$schema['ec_receipt_ogone'] = array(
'fields' => array(
'erid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'payeremail' => array('type' => 'varchar', 'length' => '127', 'not null' => TRUE),
'payid' => array('type' => 'varchar', 'length' => '127', 'not null' => TRUE)),
'primary key' => array('erid'),
'indexes' => array(
'payeremail' => array('payeremail')),
);
$schema['ec_ogone'] = array(
'fields' => array(
'erid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'shasign' => array('type' => 'varchar', 'length' => '32', 'not null' => TRUE),
'status' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10')),
'primary key' => array('erid'),
'indexes' => array(
'erid' => array('erid')),
);
return $schema;
}