diff --git a/PSCouchDB/PSCouchDB.psd1 b/PSCouchDB/PSCouchDB.psd1 index f7dee4e..8ba9c18 100755 --- a/PSCouchDB/PSCouchDB.psd1 +++ b/PSCouchDB/PSCouchDB.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSCouchDB.psm1' # Version number of this module. - ModuleVersion = '1.11.6' + ModuleVersion = '1.12.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/PSCouchDB/PSCouchDB.psm1 b/PSCouchDB/PSCouchDB.psm1 index b8b189e..b4b2ff7 100755 --- a/PSCouchDB/PSCouchDB.psm1 +++ b/PSCouchDB/PSCouchDB.psm1 @@ -3733,12 +3733,12 @@ function Set-CouchDBConfiguration () { ) $Database = "_node" $Document = "$Node/_config" - if ((Get-CouchDBConfiguration -Server $Server -Port $Port -Authorization $Authorization -Ssl:$Ssl).$Element) { + if ((Get-CouchDBConfiguration -Server $Server -Port $Port -Node $Node -Authorization $Authorization -Ssl:$Ssl).$Element) { $Document += "/$Element/$Key" } else { throw "Element $Element not exist!" } - $Data = "$Value" | ConvertTo-Json + $Data = $Value | ConvertTo-Json Send-CouchDBRequest -Server $Server -Port $Port -Method "PUT" -Database $Database -Document $Document -Data $Data -Authorization $Authorization -Ssl:$Ssl } diff --git a/docs/build/doctrees/ddoc.doctree b/docs/build/doctrees/ddoc.doctree index 76ed525..b15b801 100644 Binary files a/docs/build/doctrees/ddoc.doctree and b/docs/build/doctrees/ddoc.doctree differ diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index a414f9c..d7cda3d 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/html/_sources/ddoc.rst.txt b/docs/build/html/_sources/ddoc.rst.txt index 22e3056..93f3b7f 100644 --- a/docs/build/html/_sources/ddoc.rst.txt +++ b/docs/build/html/_sources/ddoc.rst.txt @@ -208,7 +208,7 @@ To remove a design document. Remove design document attachment ********************************* -To modify or add an attachment in a design document. +To remove an attachment in a design document. .. code-block:: powershell diff --git a/docs/build/html/ddoc.html b/docs/build/html/ddoc.html index 6c77586..a74e4e9 100644 --- a/docs/build/html/ddoc.html +++ b/docs/build/html/ddoc.html @@ -338,7 +338,7 @@
To modify or add an attachment in a design document.
+To remove an attachment in a design document.
Remove-CouchDBDesignDocumentAttachment -Database test -Document space -Attachment "C:\test2.txt" -Revision 5-cfae778df80635ad15daa09e0264a988 -Authorization "admin:password"