Commit 310d1982 authored by Robert Speicher's avatar Robert Speicher

Merge branch '325619-ci_builds-finalize-migration-and-swap-columns' into 'master'

Migration to finalize swap of bigint ci_builds.id

See merge request gitlab-org/gitlab!65201
parents 19043952 c2a50263
387dcbda7c3b32050298d8a679361a17916a66d0ab686211f0d1a0dc708c4a74
\ No newline at end of file
...@@ -11303,7 +11303,7 @@ CREATE TABLE ci_build_trace_metadata ( ...@@ -11303,7 +11303,7 @@ CREATE TABLE ci_build_trace_metadata (
); );
CREATE TABLE ci_builds ( CREATE TABLE ci_builds (
id integer NOT NULL, id_convert_to_bigint integer DEFAULT 0 NOT NULL,
status character varying, status character varying,
finished_at timestamp without time zone, finished_at timestamp without time zone,
trace text, trace text,
...@@ -11348,7 +11348,7 @@ CREATE TABLE ci_builds ( ...@@ -11348,7 +11348,7 @@ CREATE TABLE ci_builds (
waiting_for_resource_at timestamp with time zone, waiting_for_resource_at timestamp with time zone,
processed boolean, processed boolean,
scheduling_type smallint, scheduling_type smallint,
id_convert_to_bigint bigint DEFAULT 0 NOT NULL, id bigint NOT NULL,
stage_id bigint, stage_id bigint,
CONSTRAINT check_1e2fbd1b39 CHECK ((lock_version IS NOT NULL)) CONSTRAINT check_1e2fbd1b39 CHECK ((lock_version IS NOT NULL))
); );
...@@ -27531,9 +27531,6 @@ ALTER TABLE ONLY releases ...@@ -27531,9 +27531,6 @@ ALTER TABLE ONLY releases
ALTER TABLE ONLY geo_event_log ALTER TABLE ONLY geo_event_log
ADD CONSTRAINT fk_4a99ebfd60 FOREIGN KEY (repositories_changed_event_id) REFERENCES geo_repositories_changed_events(id) ON DELETE CASCADE; ADD CONSTRAINT fk_4a99ebfd60 FOREIGN KEY (repositories_changed_event_id) REFERENCES geo_repositories_changed_events(id) ON DELETE CASCADE;
ALTER TABLE ONLY dep_ci_build_trace_sections
ADD CONSTRAINT fk_4ebe41f502 FOREIGN KEY (build_id) REFERENCES ci_builds(id) ON DELETE CASCADE;
ALTER TABLE ONLY alert_management_alerts ALTER TABLE ONLY alert_management_alerts
ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE; ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE;
...@@ -35,6 +35,7 @@ RSpec.describe 'Database schema' do ...@@ -35,6 +35,7 @@ RSpec.describe 'Database schema' do
cluster_providers_gcp: %w[gcp_project_id operation_id], cluster_providers_gcp: %w[gcp_project_id operation_id],
compliance_management_frameworks: %w[group_id], compliance_management_frameworks: %w[group_id],
commit_user_mentions: %w[commit_id], commit_user_mentions: %w[commit_id],
dep_ci_build_trace_sections: %w[build_id],
deploy_keys_projects: %w[deploy_key_id], deploy_keys_projects: %w[deploy_key_id],
deployments: %w[deployable_id user_id], deployments: %w[deployable_id user_id],
draft_notes: %w[discussion_id commit_id], draft_notes: %w[discussion_id commit_id],
......
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