Skip to content
代码片段 群组 项目
提交 5de54127 编辑于 作者: Mayra Cabrera's avatar Mayra Cabrera
浏览文件

Merge branch 'add-delivery-test-table' into 'master'

Add post-migration test table

See merge request gitlab-org/gitlab!91119
No related branches found
No related tags found
无相关合并请求
---
table_name: post_migration_test_table
classes: []
feature_categories:
- database
description: Test table to verify the behavior of the post-deploy independent pipeline
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/91119
milestone: '15.2'
# frozen_string_literal: true
class AddPostMigrateTestTable < Gitlab::Database::Migration[2.0]
# Fake table to be used for testing the post-deploy pipeline,
# details can be seen on https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/2352.
#
# It should be deleted after the testing is completed.
def change
create_table :post_migration_test_table do |t|
t.integer :status, null: false
end
end
end
225606ccdf0979aaf70ff8b9a44269e69b1598718e3d7c1944ed41c07b5e33f6
\ No newline at end of file
...@@ -18837,6 +18837,20 @@ CREATE SEQUENCE pool_repositories_id_seq ...@@ -18837,6 +18837,20 @@ CREATE SEQUENCE pool_repositories_id_seq
   
ALTER SEQUENCE pool_repositories_id_seq OWNED BY pool_repositories.id; ALTER SEQUENCE pool_repositories_id_seq OWNED BY pool_repositories.id;
   
CREATE TABLE post_migration_test_table (
id bigint NOT NULL,
status integer NOT NULL
);
CREATE SEQUENCE post_migration_test_table_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE post_migration_test_table_id_seq OWNED BY post_migration_test_table.id;
CREATE TABLE postgres_async_indexes ( CREATE TABLE postgres_async_indexes (
id bigint NOT NULL, id bigint NOT NULL,
created_at timestamp with time zone NOT NULL, created_at timestamp with time zone NOT NULL,
...@@ -23235,6 +23249,8 @@ ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regcl ...@@ -23235,6 +23249,8 @@ ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regcl
   
ALTER TABLE ONLY pool_repositories ALTER COLUMN id SET DEFAULT nextval('pool_repositories_id_seq'::regclass); ALTER TABLE ONLY pool_repositories ALTER COLUMN id SET DEFAULT nextval('pool_repositories_id_seq'::regclass);
   
ALTER TABLE ONLY post_migration_test_table ALTER COLUMN id SET DEFAULT nextval('post_migration_test_table_id_seq'::regclass);
ALTER TABLE ONLY postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('postgres_async_indexes_id_seq'::regclass); ALTER TABLE ONLY postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('postgres_async_indexes_id_seq'::regclass);
   
ALTER TABLE ONLY postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_actions_id_seq'::regclass); ALTER TABLE ONLY postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_actions_id_seq'::regclass);
...@@ -25329,6 +25345,9 @@ ALTER TABLE ONLY plans ...@@ -25329,6 +25345,9 @@ ALTER TABLE ONLY plans
ALTER TABLE ONLY pool_repositories ALTER TABLE ONLY pool_repositories
ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id); ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id);
   
ALTER TABLE ONLY post_migration_test_table
ADD CONSTRAINT post_migration_test_table_pkey PRIMARY KEY (id);
ALTER TABLE ONLY postgres_async_indexes ALTER TABLE ONLY postgres_async_indexes
ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id); ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id);
   
...@@ -390,6 +390,7 @@ personal_access_tokens: :gitlab_main ...@@ -390,6 +390,7 @@ personal_access_tokens: :gitlab_main
plan_limits: :gitlab_main plan_limits: :gitlab_main
plans: :gitlab_main plans: :gitlab_main
pool_repositories: :gitlab_main pool_repositories: :gitlab_main
post_migration_test_table: :gitlab_main
postgres_async_indexes: :gitlab_shared postgres_async_indexes: :gitlab_shared
postgres_autovacuum_activity: :gitlab_shared postgres_autovacuum_activity: :gitlab_shared
postgres_foreign_keys: :gitlab_shared postgres_foreign_keys: :gitlab_shared
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册