From 1898ba501df4d65618a4abf0f81e158842e041ab Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 9 Aug 2022 15:27:26 +0200 Subject: [PATCH] upgrade should a FK to new column --- db/upgrade-jambonz-db.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/upgrade-jambonz-db.js b/db/upgrade-jambonz-db.js index 39fd9c7..8101aaa 100644 --- a/db/upgrade-jambonz-db.js +++ b/db/upgrade-jambonz-db.js @@ -24,7 +24,9 @@ const opts = { const sql = { '7006': [ - 'ALTER TABLE `accounts` ADD COLUMN `siprec_hook_sid` CHAR(36)' + 'ALTER TABLE `accounts` ADD COLUMN `siprec_hook_sid` CHAR(36)', + // eslint-disable-next-line max-len + 'ALTER TABLE accounts ADD FOREIGN KEY siprec_hook_sid_idxfk (siprec_hook_sid) REFERENCES applications (application_sid)' ] };