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
42913c5a
Commit
42913c5a
authored
Mar 04, 2022
by
pbair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop unused partitioned_foreign_keys table
Changelog: removed
parent
1cb08250
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
30 deletions
+20
-30
db/post_migrate/20220304165107_drop_partitioned_foreign_keys.rb
...t_migrate/20220304165107_drop_partitioned_foreign_keys.rb
+19
-0
db/schema_migrations/20220304165107
db/schema_migrations/20220304165107
+1
-0
db/structure.sql
db/structure.sql
+0
-29
lib/gitlab/database/gitlab_schemas.yml
lib/gitlab/database/gitlab_schemas.yml
+0
-1
No files found.
db/post_migrate/20220304165107_drop_partitioned_foreign_keys.rb
0 → 100644
View file @
42913c5a
# frozen_string_literal: true
class
DropPartitionedForeignKeys
<
Gitlab
::
Database
::
Migration
[
1.0
]
def
up
drop_table
:partitioned_foreign_keys
end
def
down
create_table
:partitioned_foreign_keys
do
|
t
|
t
.
boolean
:cascade_delete
,
null:
false
,
default:
true
t
.
text
:from_table
,
null:
false
,
limit:
63
t
.
text
:from_column
,
null:
false
,
limit:
63
t
.
text
:to_table
,
null:
false
,
limit:
63
t
.
text
:to_column
,
null:
false
,
limit:
63
t
.
index
[
:to_table
,
:from_table
,
:from_column
],
unique:
true
,
name: :index_partitioned_foreign_keys_unique_index
end
end
end
db/schema_migrations/20220304165107
0 → 100644
View file @
42913c5a
b7090327d2638bbee6646e5ca5a8f8597d97631f10f997698b8a1c1b6329c106
\ No newline at end of file
db/structure.sql
View file @
42913c5a
...
...
@@ -18495,28 +18495,6 @@ CREATE SEQUENCE pages_domains_id_seq
ALTER SEQUENCE pages_domains_id_seq OWNED BY pages_domains.id;
CREATE TABLE partitioned_foreign_keys (
id bigint NOT NULL,
cascade_delete boolean DEFAULT true NOT NULL,
from_table text NOT NULL,
from_column text NOT NULL,
to_table text NOT NULL,
to_column text NOT NULL,
CONSTRAINT check_2c2e02a62b CHECK ((char_length(from_column) <= 63)),
CONSTRAINT check_40738efb57 CHECK ((char_length(to_table) <= 63)),
CONSTRAINT check_741676d405 CHECK ((char_length(from_table) <= 63)),
CONSTRAINT check_7e98be694f CHECK ((char_length(to_column) <= 63))
);
CREATE SEQUENCE partitioned_foreign_keys_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE partitioned_foreign_keys_id_seq OWNED BY partitioned_foreign_keys.id;
CREATE TABLE path_locks (
id integer NOT NULL,
path character varying NOT NULL,
...
...
@@ -22860,8 +22838,6 @@ ALTER TABLE ONLY pages_domain_acme_orders ALTER COLUMN id SET DEFAULT nextval('p
ALTER TABLE ONLY pages_domains ALTER COLUMN id SET DEFAULT nextval('pages_domains_id_seq'::regclass);
ALTER TABLE ONLY partitioned_foreign_keys ALTER COLUMN id SET DEFAULT nextval('partitioned_foreign_keys_id_seq'::regclass);
ALTER TABLE ONLY path_locks ALTER COLUMN id SET DEFAULT nextval('path_locks_id_seq'::regclass);
ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass);
...
...
@@ -24914,9 +24890,6 @@ ALTER TABLE ONLY pages_domain_acme_orders
ALTER TABLE ONLY pages_domains
ADD CONSTRAINT pages_domains_pkey PRIMARY KEY (id);
ALTER TABLE ONLY partitioned_foreign_keys
ADD CONSTRAINT partitioned_foreign_keys_pkey PRIMARY KEY (id);
ALTER TABLE ONLY path_locks
ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id);
...
...
@@ -28507,8 +28480,6 @@ CREATE UNIQUE INDEX index_partial_am_alerts_on_project_id_and_fingerprint ON ale
CREATE INDEX index_partial_ci_builds_on_user_id_name_parser_features ON ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text])));
CREATE UNIQUE INDEX index_partitioned_foreign_keys_unique_index ON partitioned_foreign_keys USING btree (to_table, from_table, from_column);
CREATE INDEX index_pat_on_user_id_and_expires_at ON personal_access_tokens USING btree (user_id, expires_at);
CREATE INDEX index_path_locks_on_path ON path_locks USING btree (path);
lib/gitlab/database/gitlab_schemas.yml
View file @
42913c5a
...
...
@@ -381,7 +381,6 @@ pages_deployments: :gitlab_main
pages_deployment_states
:
:gitlab_main
pages_domain_acme_orders
:
:gitlab_main
pages_domains
:
:gitlab_main
partitioned_foreign_keys
:
:gitlab_main
path_locks
:
:gitlab_main
personal_access_tokens
:
:gitlab_main
plan_limits
:
:gitlab_main
...
...
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