X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.install;h=e136c59e91669c48462387c1ba37f9872dffa157;hb=56f6c96f082768140f014f15332599db76e034b1;hp=a2d828aa2540de416f5e36764b8efa165c123103;hpb=858d62aff8278c4df989c93a88f14059cebfbce5;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.install b/mkdru.install index a2d828a..e136c59 100644 --- a/mkdru.install +++ b/mkdru.install @@ -11,7 +11,7 @@ function mkdru_schema() { $schema['mkdru'] = array( 'description' => t('Stores settings for mkdru nodes.'), - 'fields' => array ( + 'fields' => array( 'nid' => array( 'description' => t('The primary identifier for a node.'), 'type' => 'int', @@ -55,6 +55,16 @@ function mkdru_schema() { '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')), @@ -79,5 +89,13 @@ function mkdru_install() { function mkdru_uninstall() { // Drop table. drupal_uninstall_schema('mkdru'); + // 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; } -?>