Commit 7de9eee7 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'replace_analytics_table_with_bigints' into 'master'

Fix integer columns on new VSA table

See merge request gitlab-org/gitlab!69531
parents 8cb90996 d80caad0
# frozen_string_literal: true
class RecreateStageIssueEventsTableWithBigints < Gitlab::Database::Migration[1.0]
include Gitlab::Database::PartitioningMigrationHelpers::TableManagementHelpers
def up
drop_table :analytics_cycle_analytics_issue_stage_events # rubocop:disable Migration/DropTable
execute <<~SQL
CREATE TABLE analytics_cycle_analytics_issue_stage_events (
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone,
PRIMARY KEY (stage_event_hash_id, issue_id)
) PARTITION BY HASH (stage_event_hash_id)
SQL
create_hash_partitions :analytics_cycle_analytics_issue_stage_events, 32
end
def down
drop_table :analytics_cycle_analytics_issue_stage_events
execute <<~SQL
CREATE TABLE analytics_cycle_analytics_issue_stage_events (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone,
PRIMARY KEY (stage_event_hash_id, issue_id)
) PARTITION BY HASH (stage_event_hash_id)
SQL
create_hash_partitions :analytics_cycle_analytics_issue_stage_events, 32
end
end
113d6bb813a89646d48c8ba6a86fc8e73f741d5c345f603bfe33939fb90f9428
\ No newline at end of file
......@@ -222,396 +222,396 @@ CREATE TABLE web_hook_logs (
PARTITION BY RANGE (created_at);
CREATE TABLE analytics_cycle_analytics_issue_stage_events (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
)
PARTITION BY HASH (stage_event_hash_id);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30);
CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 (
stage_event_hash_id integer NOT NULL,
issue_id integer NOT NULL,
group_id integer NOT NULL,
project_id integer NOT NULL,
milestone_id integer,
author_id integer,
stage_event_hash_id bigint NOT NULL,
issue_id bigint NOT NULL,
group_id bigint NOT NULL,
project_id bigint NOT NULL,
milestone_id bigint,
author_id bigint,
start_event_timestamp timestamp with time zone NOT NULL,
end_event_timestamp timestamp with time zone
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment