Skip to content

Commit

Permalink
🐞 missing :on_delete => :cascade in MySQL rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Nov 21, 2024
1 parent c8ddc60 commit 6597433
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bosh-director/db/migrations/20110209010747_initial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@

create_table(:errand_runs) do
primary_key :id, :type=>"int"
foreign_key :deployment_id, :deployments, :default=>-1, :type=>"int", :null=>false, :key=>[:id]
foreign_key :deployment_id, :deployments, :default=>-1, :type=>"int", :null=>false, :key=>[:id], :on_delete=>:cascade
column :errand_name, "longtext"
column :successful_state_hash, "varchar(512)"

Expand Down Expand Up @@ -992,7 +992,7 @@
create_table(:local_dns_encoded_groups) do
primary_key :id, :type=>"int"
column :name, "varchar(255)", :null=>false
foreign_key :deployment_id, :deployments, :type=>"int", :null=>false, :key=>[:id]
foreign_key :deployment_id, :deployments, :type=>"int", :null=>false, :key=>[:id], :on_delete=>:cascade
column :type, "varchar(255)", :default=>"instance-group", :null=>false

index [:deployment_id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Bosh::Director
[
{
filename: '20110209010747_initial.rb',
sha1: 'c9b5654ce0a4a5df4805a2acec301fc65e0fd310',
sha1: 'c313f56a60615786b4c38ff72a1e2350e214e182',
},
{
filename: '20210902232124_add_blobstore_and_nats_shas_to_vms.rb',
Expand Down

0 comments on commit 6597433

Please sign in to comment.