You are here

function _uc_addresses_test_schema_fields in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 tests/uc_addresses_test.install \_uc_addresses_test_schema_fields()

Defines which schema fields need to be added to the uc_addresses and uc_orders table.

Return value

array The schema fields to add.

3 calls to _uc_addresses_test_schema_fields()
uc_addresses_test_install in tests/uc_addresses_test.install
Implements hook_install().
uc_addresses_test_schema_alter in tests/uc_addresses_test.install
Implements hook_schema_alter().
uc_addresses_test_uninstall in tests/uc_addresses_test.install
Implements hook_uninstall().

File

tests/uc_addresses_test.install, line 129
Installation file for Ubercart Addresses testing module.

Code

function _uc_addresses_test_schema_fields() {
  return array(
    'billing_extra1' => array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
      'address_type' => 'billing',
    ),
    'shipping_extra2' => array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
      'address_type' => 'delivery',
    ),
  );
}