Skip to content

Commit

Permalink
Merge branch 'main' into xsalonx/gaq/O2B-1325/summary-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx authored Jul 31, 2024
2 parents 429aeb4 + 01211ca commit 0173339
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ module.exports = {
up: async (queryInterface) => queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.addConstraint('run_detectors', {
type: 'FOREIGN KEY',
fields: ['detector_id'],
name: 'detector_id_fk_run_detectors',
fields: ['run_number'],
name: 'run_number_fk_run_detectors',
references: {
table: 'detectors',
field: 'id',
table: 'runs',
field: 'run_number',
},
onUpdate: 'CASCADE',
}, { transaction });

await queryInterface.addConstraint('run_detectors', {
type: 'FOREIGN KEY',
fields: ['run_number'],
name: 'run_number_fk_run_detectors',
fields: ['detector_id'],
name: 'detector_id_fk_run_detectors',
references: {
table: 'runs',
field: 'run_number',
table: 'detectors',
field: 'id',
},
onUpdate: 'CASCADE',
}, { transaction });

await queryInterface.addColumn(
Expand Down

0 comments on commit 0173339

Please sign in to comment.