Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
161e6d31
Commit
161e6d31
authored
Aug 14, 2021
by
Baodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create table zentao_tracker_data
See:
https://gitlab.com/gitlab-org/gitlab/-/issues/338178
Changelog: added
parent
15fedb87
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
db/migrate/20210813101742_create_zentao_tracker_data.rb
db/migrate/20210813101742_create_zentao_tracker_data.rb
+18
-0
db/schema_migrations/20210813101742
db/schema_migrations/20210813101742
+1
-0
db/structure.sql
db/structure.sql
+34
-0
No files found.
db/migrate/20210813101742_create_zentao_tracker_data.rb
0 → 100644
View file @
161e6d31
# frozen_string_literal: true
class
CreateZentaoTrackerData
<
ActiveRecord
::
Migration
[
6.1
]
def
change
create_table
:zentao_tracker_data
do
|
t
|
t
.
references
:integration
,
foreign_key:
{
on_delete: :cascade
},
type: :bigint
,
index:
true
,
null:
false
t
.
timestamps_with_timezone
t
.
binary
:encrypted_url
t
.
binary
:encrypted_url_iv
t
.
binary
:encrypted_api_url
t
.
binary
:encrypted_api_url_iv
t
.
binary
:encrypted_zentao_product_xid
t
.
binary
:encrypted_zentao_product_xid_iv
t
.
binary
:encrypted_api_token
t
.
binary
:encrypted_api_token_iv
end
end
end
db/schema_migrations/20210813101742
0 → 100644
View file @
161e6d31
4401423fc602a6d5df95857282bb84851fa99ddeb6c3d1ce4614f12c1dc4ec87
\ No newline at end of file
db/structure.sql
View file @
161e6d31
...
...
@@ -19948,6 +19948,30 @@ CREATE SEQUENCE x509_issuers_id_seq
ALTER SEQUENCE x509_issuers_id_seq OWNED BY x509_issuers.id;
CREATE TABLE zentao_tracker_data (
id bigint NOT NULL,
integration_id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
encrypted_url bytea,
encrypted_url_iv bytea,
encrypted_api_url bytea,
encrypted_api_url_iv bytea,
encrypted_zentao_product_xid bytea,
encrypted_zentao_product_xid_iv bytea,
encrypted_api_token bytea,
encrypted_api_token_iv bytea
);
CREATE SEQUENCE zentao_tracker_data_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE zentao_tracker_data_id_seq OWNED BY zentao_tracker_data.id;
CREATE TABLE zoom_meetings (
id bigint NOT NULL,
project_id bigint NOT NULL,
...
...
@@ -20885,6 +20909,8 @@ ALTER TABLE ONLY x509_commit_signatures ALTER COLUMN id SET DEFAULT nextval('x50
ALTER TABLE ONLY x509_issuers ALTER COLUMN id SET DEFAULT nextval('x509_issuers_id_seq'::regclass);
ALTER TABLE ONLY zentao_tracker_data ALTER COLUMN id SET DEFAULT nextval('zentao_tracker_data_id_seq'::regclass);
ALTER TABLE ONLY zoom_meetings ALTER COLUMN id SET DEFAULT nextval('zoom_meetings_id_seq'::regclass);
ALTER TABLE ONLY product_analytics_events_experimental
...
...
@@ -22654,6 +22680,9 @@ ALTER TABLE ONLY x509_commit_signatures
ALTER TABLE ONLY x509_issuers
ADD CONSTRAINT x509_issuers_pkey PRIMARY KEY (id);
ALTER TABLE ONLY zentao_tracker_data
ADD CONSTRAINT zentao_tracker_data_pkey PRIMARY KEY (id);
ALTER TABLE ONLY zoom_meetings
ADD CONSTRAINT zoom_meetings_pkey PRIMARY KEY (id);
...
...
@@ -25627,6 +25656,8 @@ CREATE INDEX index_x509_commit_signatures_on_x509_certificate_id ON x509_commit_
CREATE INDEX index_x509_issuers_on_subject_key_identifier ON x509_issuers USING btree (subject_key_identifier);
CREATE INDEX index_zentao_tracker_data_on_integration_id ON zentao_tracker_data USING btree (integration_id);
CREATE INDEX index_zoom_meetings_on_issue_id ON zoom_meetings USING btree (issue_id);
CREATE UNIQUE INDEX index_zoom_meetings_on_issue_id_and_issue_status ON zoom_meetings USING btree (issue_id, issue_status) WHERE (issue_status = 1);
...
...
@@ -27673,6 +27704,9 @@ ALTER TABLE ONLY required_code_owners_sections
ALTER TABLE ONLY dast_site_profiles
ADD CONSTRAINT fk_rails_83e309d69e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
ALTER TABLE ONLY zentao_tracker_data
ADD CONSTRAINT fk_rails_84efda7be0 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE;
ALTER TABLE ONLY boards_epic_user_preferences
ADD CONSTRAINT fk_rails_851fe1510a FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment