Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22.0 FATAL_ERROR)

project(uh-cluster VERSION 1.6.0)
project(uh-cluster VERSION 1.6.1)

#
# Option handling
Expand Down
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.6.1] 2025-09-16
- Fix an error in database migration

## [1.6.0] 2025-07-16
- Add support for S3-compatible object versioning
- Fixes an issue when operating erasure-coded storage groups with disabled
Expand Down
15 changes: 15 additions & 0 deletions data/sql/uh_directory/V11__fix_versioning_functions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--
-- uh_bucket_versioning(bucket): return configured versioning
-- for the given bucket
--
DROP PROCEDURE uh_bucket_set_versioning;
CREATE OR REPLACE PROCEDURE uh_bucket_set_versioning(bucket TEXT, vt versioning_type)
LANGUAGE plpgsql AS $$
BEGIN
UPDATE buckets SET versioning = vt WHERE name = bucket;

IF NOT FOUND THEN
RAISE EXCEPTION 'Bucket "%s" does not exist in buckets table', bucket;
END IF;
END;
$$;
4 changes: 2 additions & 2 deletions data/sql/uh_directory/V9__bucket_version_configuration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ ALTER TABLE buckets ADD COLUMN
-- uh_bucket_versioning(bucket): return configured versioning
-- for the given bucket
--
CREATE OR REPLACE PROCEDURE uh_bucket_set_versioning(bucket TEXT, vt versioning_type)
CREATE OR REPLACE PROCEDURE uh_bucket_set_versioning(bucket TEXT, status versioning_type)
LANGUAGE plpgsql AS $$
BEGIN
UPDATE buckets SET versioning = vt WHERE name = bucket;
UPDATE buckets SET versioning = status WHERE name = bucket;

IF NOT FOUND THEN
RAISE EXCEPTION 'Bucket "%s" does not exist in buckets table', bucket;
Expand Down
Loading