*/
/**
-* Implementation of hook_schema().
+* Implements hook_schema().
*/
function mkdru_schema() {
$schema['mkdru'] = array(
'unsigned' => TRUE,
'not null' => TRUE,
),
+ 'sp_user' => array(
+ 'type' => 'text',
+ 'not null' => FALSE,
+ 'description' => t('Service Proxy username')
+ ),
+ 'sp_pass' => array(
+ 'type' => 'text',
+ 'not null' => FALSE,
+ 'description' => t('Service Proxy password')
+ ),
),
'primary key' => array('nid', 'vid'),
'unique keys' => array('vid' => array('vid')),
}
/**
-* Implementation of hook_install().
+* Implements hook_install().
*/
function mkdru_install() {
// Disable comments by default
}
/**
-* Implementation of hook_uninstall().
+* Implements hook_uninstall().
*/
function mkdru_uninstall() {
// Drop table.
// Delete variables
variable_del('pz2_js_path');
}
+
+function mkdru_update_6100() {
+ $ret = array();
+ db_add_field($ret, 'mkdru', 'sp_user', array('type' => 'varchar', 'length' => 32, 'not null' => FALSE, 'default' => '') );
+ db_add_field($ret, 'mkdru', 'sp_pass', array('type' => 'varchar', 'length' => 32, 'not null' => FALSE, 'default' => '') );
+ return $ret;
+}