Skip to content

Commit

Permalink
db schema upgrade to add system_information.private_network_cidr in 0…
Browse files Browse the repository at this point in the history
….9.2
  • Loading branch information
davehorton committed Aug 14, 2024
1 parent 1e88b2f commit c695170
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/upgrade-jambonz-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ const sql = {
'ALTER TABLE applications MODIFY COLUMN speech_synthesis_voice VARCHAR(256)',
'ALTER TABLE applications MODIFY COLUMN fallback_speech_synthesis_voice VARCHAR(256)',
'ALTER TABLE sip_gateways ADD COLUMN use_sips_scheme BOOLEAN NOT NULL DEFAULT 0',
],
9002: [
'ALTER TABLE system_information ADD COLUMN private_network_cidr VARCHAR(255)',
]
};

Expand Down Expand Up @@ -230,6 +233,7 @@ const doIt = async() => {
if (val < 8004) upgrades.push(...sql['8004']);
if (val < 8005) upgrades.push(...sql['8005']);
if (val < 9000) upgrades.push(...sql['9000']);
if (val < 9002) upgrades.push(...sql['9002']);

// perform all upgrades
logger.info({upgrades}, 'applying schema upgrades..');
Expand Down

0 comments on commit c695170

Please sign in to comment.