You are here

function uc_product_power_tools_update_6105 in Ubercart Product Power Tools 6.2

Same name and namespace in other branches
  1. 6 uc_product_power_tools.install \uc_product_power_tools_update_6105()

Implements hook_update_N().

File

./uc_product_power_tools.install, line 349
Install, update, and uninstall functions for the uc_product_power_tools module.

Code

function uc_product_power_tools_update_6105() {
  $changes = array();
  db_change_field($changes, 'uc_power_tools', 'asku-settings', 'asku_settings', array(
    'description' => t('replacement pattern'),
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_change_field($changes, 'uc_power_tools', 'lp-settings', 'lp_settings', array(
    'description' => t('default list price value'),
    'type' => 'numeric',
    'precision' => 15,
    'scale' => 3,
    'not null' => TRUE,
    'default' => 0.0,
  ));
  db_change_field($changes, 'uc_power_tools', 'cost-settings', 'cost_settings', array(
    'description' => t('default list price value'),
    'type' => 'numeric',
    'precision' => 15,
    'scale' => 3,
    'not null' => TRUE,
    'default' => 0.0,
  ));
  db_change_field($changes, 'uc_power_tools', 'sp-settings', 'sp_settings', array(
    'description' => t('default list price value'),
    'type' => 'numeric',
    'precision' => 15,
    'scale' => 3,
    'not null' => TRUE,
    'default' => 0.0,
  ));
  db_change_field($changes, 'uc_power_tools', 'dq-settings', 'dq_settings', array(
    'description' => t('default quantity value'),
    'type' => 'int',
    'not null' => TRUE,
    'default' => 1,
  ));
  db_change_field($changes, 'uc_power_tools', 'pq-settings', 'pq_settings', array(
    'description' => t('package quantity value'),
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field($changes, 'uc_power_tools', 'lpos-settings', 'lpos_settings', array(
    'description' => t('default list position value'),
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  ));
  db_change_field($changes, 'uc_power_tools', 'stock-settings', 'stock_settings', array(
    'description' => t('default stock value'),
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  ));
  db_change_field($changes, 'uc_power_tools', 'stock-threshold', 'stock_threshold', array(
    'description' => t('stock threshold'),
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  ));
  return $changes;
}