Skip to content

Indentation of non-apache commands #26

@anton-schieber

Description

@anton-schieber
            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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions