Merge test branch changes excluding tests directory

This commit is contained in:
Maksym Buz
2026-05-06 08:03:11 +00:00
parent 7305b79943
commit 6e9c76ad76
7 changed files with 90 additions and 25 deletions

View File

@@ -15,6 +15,14 @@ CREATE TABLE IF NOT EXISTS partitions.config (
PRIMARY KEY (table_name)
);
-- Ensure the future_partitions column exists for users upgrading from older versions
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = 'partitions' AND table_name = 'config' AND column_name = 'future_partitions') THEN
ALTER TABLE partitions.config ADD COLUMN future_partitions integer NOT NULL DEFAULT 5;
END IF;
END $$;
-- Table to track installed version of the partitioning solution
CREATE TABLE IF NOT EXISTS partitions.version (
version text PRIMARY KEY,