Skip to content

Commit

Permalink
Merge pull request #14246 from danidoni/remove-creation-of-foreign-ke…
Browse files Browse the repository at this point in the history
…y-on-notified-projects-project-id

Remove creation of the foreign key on notified_projects project_id
  • Loading branch information
eduardoj authored Apr 27, 2023
2 parents a7bb6dc + 696fc06 commit a361044
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/api/.database_consistency.todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,9 @@ NotifiedProject:
notification:
ForeignKeyChecker:
enabled: false
project:
ForeignKeyChecker:
enabled: false
index_notified_projects_on_notification_id:
RedundantIndexChecker:
enabled: false
Expand Down
4 changes: 0 additions & 4 deletions src/api/app/models/notified_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ class NotifiedProject < ApplicationRecord
# index_notified_projects_on_notification_id_and_project_id (notification_id,project_id) UNIQUE
# index_notified_projects_on_project_id (project_id)
#
# Foreign Keys
#
# fk_rails_... (project_id => projects.id)
#

This file was deleted.

3 changes: 1 addition & 2 deletions src/api/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_04_14_151119) do
ActiveRecord::Schema[7.0].define(version: 2023_04_14_085150) do
create_table "architectures", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
t.string "name", null: false, collation: "utf8mb3_general_ci"
t.boolean "available", default: false
Expand Down Expand Up @@ -1183,7 +1183,6 @@
add_foreign_key "kiwi_packages", "kiwi_package_groups", column: "package_group_id"
add_foreign_key "maintained_projects", "projects", column: "maintenance_project_id", name: "maintained_projects_ibfk_2"
add_foreign_key "maintained_projects", "projects", name: "maintained_projects_ibfk_1"
add_foreign_key "notified_projects", "projects"
add_foreign_key "package_issues", "issues", name: "package_issues_ibfk_2"
add_foreign_key "package_issues", "packages", name: "package_issues_ibfk_1"
add_foreign_key "package_kinds", "packages", name: "package_kinds_ibfk_1"
Expand Down

0 comments on commit a361044

Please sign in to comment.