X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=mkdru.install;h=594fd018851748437340878a50e26a6fd770bef8;hb=f1795ec17ae3999b5e652bdabb4016345533b35b;hp=15f55682f207a0b5b3ae9aaf2caddc98e4c6b6d3;hpb=9bb075c111afad0a4dc12d6b9bee8b21b532500c;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.install b/mkdru.install index 15f5568..594fd01 100644 --- a/mkdru.install +++ b/mkdru.install @@ -6,12 +6,12 @@ */ /** -* Implementation of hook_schema(). +* Implements hook_schema(). */ 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')), @@ -64,7 +74,7 @@ function mkdru_schema() { } /** -* Implementation of hook_install(). +* Implements hook_install(). */ function mkdru_install() { // Disable comments by default @@ -74,7 +84,7 @@ function mkdru_install() { } /** -* Implementation of hook_uninstall(). +* Implements hook_uninstall(). */ function mkdru_uninstall() { // Drop table. @@ -82,4 +92,10 @@ function mkdru_uninstall() { // 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; +}