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
6f173bca
Commit
6f173bca
authored
Feb 05, 2021
by
Alex Buijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup unused namespace_onboarding_actions table
Because it has been renamed to onboarding_progresses
parent
01031763
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
26 deletions
+49
-26
changelogs/unreleased/296754-followup-from-refactor-namespaceonboardingaction-model-to-onboardi.yml
...-refactor-namespaceonboardingaction-model-to-onboardi.yml
+5
-0
db/migrate/20210205143926_remove_namespace_id_foreign_key_on_namespace_onboarding_actions.rb
...mespace_id_foreign_key_on_namespace_onboarding_actions.rb
+19
-0
db/post_migrate/20210205144537_remove_namespace_onboarding_actions_table.rb
...210205144537_remove_namespace_onboarding_actions_table.rb
+23
-0
db/schema_migrations/20210205143926
db/schema_migrations/20210205143926
+1
-0
db/schema_migrations/20210205144537
db/schema_migrations/20210205144537
+1
-0
db/structure.sql
db/structure.sql
+0
-26
No files found.
changelogs/unreleased/296754-followup-from-refactor-namespaceonboardingaction-model-to-onboardi.yml
0 → 100644
View file @
6f173bca
---
title
:
Remove namespace_onboarding_actions table
merge_request
:
53488
author
:
type
:
other
db/migrate/20210205143926_remove_namespace_id_foreign_key_on_namespace_onboarding_actions.rb
0 → 100644
View file @
6f173bca
# frozen_string_literal: true
class
RemoveNamespaceIdForeignKeyOnNamespaceOnboardingActions
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
remove_foreign_key
:namespace_onboarding_actions
,
:namespaces
end
end
def
down
with_lock_retries
do
add_foreign_key
:namespace_onboarding_actions
,
:namespaces
,
on_delete: :cascade
end
end
end
db/post_migrate/20210205144537_remove_namespace_onboarding_actions_table.rb
0 → 100644
View file @
6f173bca
# frozen_string_literal: true
class
RemoveNamespaceOnboardingActionsTable
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
drop_table
:namespace_onboarding_actions
end
end
def
down
with_lock_retries
do
create_table
:namespace_onboarding_actions
do
|
t
|
t
.
references
:namespace
,
index:
true
,
null:
false
t
.
datetime_with_timezone
:created_at
,
null:
false
t
.
integer
:action
,
limit:
2
,
null:
false
end
end
end
end
db/schema_migrations/20210205143926
0 → 100644
View file @
6f173bca
cdf55e9f2b1b9c375920198a438d29fe3c9ab7147f3c670b0d66b11d499573d9
\ No newline at end of file
db/schema_migrations/20210205144537
0 → 100644
View file @
6f173bca
d9cfb7515805e642c562b8be58b6cd482c24e62e76245db35a7d91b25c327d8d
\ No newline at end of file
db/structure.sql
View file @
6f173bca
...
@@ -14287,22 +14287,6 @@ CREATE TABLE namespace_limits (
...
@@ -14287,22 +14287,6 @@ CREATE TABLE namespace_limits (
temporary_storage_increase_ends_on
date
temporary_storage_increase_ends_on
date
);
);
CREATE
TABLE
namespace_onboarding_actions
(
id
bigint
NOT
NULL
,
namespace_id
bigint
NOT
NULL
,
created_at
timestamp
with
time
zone
NOT
NULL
,
action
smallint
NOT
NULL
);
CREATE
SEQUENCE
namespace_onboarding_actions_id_seq
START
WITH
1
INCREMENT
BY
1
NO
MINVALUE
NO
MAXVALUE
CACHE
1
;
ALTER
SEQUENCE
namespace_onboarding_actions_id_seq
OWNED
BY
namespace_onboarding_actions
.
id
;
CREATE
TABLE
namespace_package_settings
(
CREATE
TABLE
namespace_package_settings
(
namespace_id
bigint
NOT
NULL
,
namespace_id
bigint
NOT
NULL
,
maven_duplicates_allowed
boolean
DEFAULT
true
NOT
NULL
,
maven_duplicates_allowed
boolean
DEFAULT
true
NOT
NULL
,
...
@@ -19076,8 +19060,6 @@ ALTER TABLE ONLY metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT ne
...
@@ -19076,8 +19060,6 @@ ALTER TABLE ONLY metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT ne
ALTER
TABLE
ONLY
milestones
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'milestones_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
milestones
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'milestones_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
namespace_onboarding_actions
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'namespace_onboarding_actions_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
namespace_statistics
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'namespace_statistics_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
namespace_statistics
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'namespace_statistics_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
namespaces
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'namespaces_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
namespaces
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'namespaces_id_seq'
::
regclass
);
...
@@ -20420,9 +20402,6 @@ ALTER TABLE ONLY namespace_aggregation_schedules
...
@@ -20420,9 +20402,6 @@ ALTER TABLE ONLY namespace_aggregation_schedules
ALTER
TABLE
ONLY
namespace_limits
ALTER
TABLE
ONLY
namespace_limits
ADD
CONSTRAINT
namespace_limits_pkey
PRIMARY
KEY
(
namespace_id
);
ADD
CONSTRAINT
namespace_limits_pkey
PRIMARY
KEY
(
namespace_id
);
ALTER
TABLE
ONLY
namespace_onboarding_actions
ADD
CONSTRAINT
namespace_onboarding_actions_pkey
PRIMARY
KEY
(
id
);
ALTER
TABLE
ONLY
namespace_package_settings
ALTER
TABLE
ONLY
namespace_package_settings
ADD
CONSTRAINT
namespace_package_settings_pkey
PRIMARY
KEY
(
namespace_id
);
ADD
CONSTRAINT
namespace_package_settings_pkey
PRIMARY
KEY
(
namespace_id
);
...
@@ -22588,8 +22567,6 @@ CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON me
...
@@ -22588,8 +22567,6 @@ CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON me
CREATE
UNIQUE
INDEX
index_namespace_aggregation_schedules_on_namespace_id
ON
namespace_aggregation_schedules
USING
btree
(
namespace_id
);
CREATE
UNIQUE
INDEX
index_namespace_aggregation_schedules_on_namespace_id
ON
namespace_aggregation_schedules
USING
btree
(
namespace_id
);
CREATE
INDEX
index_namespace_onboarding_actions_on_namespace_id
ON
namespace_onboarding_actions
USING
btree
(
namespace_id
);
CREATE
UNIQUE
INDEX
index_namespace_root_storage_statistics_on_namespace_id
ON
namespace_root_storage_statistics
USING
btree
(
namespace_id
);
CREATE
UNIQUE
INDEX
index_namespace_root_storage_statistics_on_namespace_id
ON
namespace_root_storage_statistics
USING
btree
(
namespace_id
);
CREATE
UNIQUE
INDEX
index_namespace_statistics_on_namespace_id
ON
namespace_statistics
USING
btree
(
namespace_id
);
CREATE
UNIQUE
INDEX
index_namespace_statistics_on_namespace_id
ON
namespace_statistics
USING
btree
(
namespace_id
);
...
@@ -25123,9 +25100,6 @@ ALTER TABLE ONLY merge_request_assignees
...
@@ -25123,9 +25100,6 @@ ALTER TABLE ONLY merge_request_assignees
ALTER
TABLE
ONLY
packages_dependency_links
ALTER
TABLE
ONLY
packages_dependency_links
ADD
CONSTRAINT
fk_rails_4437bf4070
FOREIGN
KEY
(
dependency_id
)
REFERENCES
packages_dependencies
(
id
)
ON
DELETE
CASCADE
;
ADD
CONSTRAINT
fk_rails_4437bf4070
FOREIGN
KEY
(
dependency_id
)
REFERENCES
packages_dependencies
(
id
)
ON
DELETE
CASCADE
;
ALTER
TABLE
ONLY
namespace_onboarding_actions
ADD
CONSTRAINT
fk_rails_4504f6875a
FOREIGN
KEY
(
namespace_id
)
REFERENCES
namespaces
(
id
)
ON
DELETE
CASCADE
;
ALTER
TABLE
ONLY
project_auto_devops
ALTER
TABLE
ONLY
project_auto_devops
ADD
CONSTRAINT
fk_rails_45436b12b2
FOREIGN
KEY
(
project_id
)
REFERENCES
projects
(
id
)
ON
DELETE
CASCADE
;
ADD
CONSTRAINT
fk_rails_45436b12b2
FOREIGN
KEY
(
project_id
)
REFERENCES
projects
(
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