-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
migrationBuilder.Sql(@"
SELECT create_hypertable('test.""orders""', 'timestamp', chunk_time_interval => INTERVAL '7 day');
DO $$
DECLARE
license TEXT;
BEGIN
license := current_setting('timescaledb.license', true);
IF license IS NULL OR license != 'apache' THEN
EXECUTE 'ALTER TABLE ""test"".""orders"" SET (timescaledb.compress = true)';
ELSE
RAISE WARNING 'Skipping Community Edition features (compression, chunk skipping) - not available in Apache Edition';
END IF;
END $$;
");
Should be:
migrationBuilder.Sql(@"
SELECT create_hypertable('test.""orders""', 'timestamp', chunk_time_interval => INTERVAL '7 day');
DO $$
DECLARE
license TEXT;
BEGIN
license := current_setting('timescaledb.license', true);
IF license IS NULL OR license != 'apache' THEN
EXECUTE 'ALTER TABLE ""test"".""orders"" SET (timescaledb.compress = true)';
ELSE
RAISE WARNING 'Skipping Community Edition features (compression, chunk skipping) - not available in Apache Edition';
END IF;
END $$;
");
Metadata
Metadata
Assignees
Labels
No labels