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
53b81366
Commit
53b81366
authored
Dec 02, 2021
by
Adam Hegyi
Committed by
Patrick Bair
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop FK from clusters_applications_runners
parent
25f5188e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
db/post_migrate/20211201101541_drop_clusters_applications_runners_ci_runners_fk.rb
...01541_drop_clusters_applications_runners_ci_runners_fk.rb
+15
-0
db/schema_migrations/20211201101541
db/schema_migrations/20211201101541
+1
-0
db/structure.sql
db/structure.sql
+0
-3
No files found.
db/post_migrate/20211201101541_drop_clusters_applications_runners_ci_runners_fk.rb
0 → 100644
View file @
53b81366
# frozen_string_literal: true
class
DropClustersApplicationsRunnersCiRunnersFk
<
Gitlab
::
Database
::
Migration
[
1.0
]
disable_ddl_transaction!
def
up
with_lock_retries
do
remove_foreign_key_if_exists
(
:clusters_applications_runners
,
:ci_runners
,
name:
'fk_02de2ded36'
)
end
end
def
down
add_concurrent_foreign_key
(
:clusters_applications_runners
,
:ci_runners
,
name:
'fk_02de2ded36'
,
column: :runner_id
,
target_column: :id
,
on_delete:
'set null'
)
end
end
db/schema_migrations/20211201101541
0 → 100644
View file @
53b81366
277cfcd1002e32c6cd664d6c0b6a7cbdf2ed7e5242e46dbddc4f99b0e8422361
\ No newline at end of file
db/structure.sql
View file @
53b81366
...
...
@@ -28808,9 +28808,6 @@ ALTER TABLE ONLY deployments
ALTER TABLE ONLY epics
ADD CONSTRAINT fk_013c9f36ca FOREIGN KEY (due_date_sourcing_epic_id) REFERENCES epics(id) ON DELETE SET NULL;
ALTER TABLE ONLY clusters_applications_runners
ADD CONSTRAINT fk_02de2ded36 FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE SET NULL;
ALTER TABLE ONLY incident_management_escalation_rules
ADD CONSTRAINT fk_0314ee86eb 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