Merge test branch changes excluding tests directory
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user