Skip to content

Commit

Permalink
changes to db upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Nov 5, 2023
1 parent cf0fdaa commit 82ea883
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/upgrade-jambonz-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ const sql = {
`,
'CREATE INDEX google_custom_voice_sid_idx ON google_custom_voices (google_custom_voice_sid)',
'CREATE INDEX speech_credential_sid_idx ON google_custom_voices (speech_credential_sid)',
'ALTER TABLE google_custom_voices ADD FOREIGN KEY speech_credential_sid_idxfk (speech_credential_sid) REFERENCES speech_credentials (speech_credential_sid) ON DELETE CASCADE'
'ALTER TABLE google_custom_voices ADD FOREIGN KEY speech_credential_sid_idxfk (speech_credential_sid) REFERENCES speech_credentials (speech_credential_sid) ON DELETE CASCADE',
'ALTER TABLE CLIENTS ADD COLUMN allow_direct_queue_calling BOOLEAN NOT NULL DEFAULT 1',
'ALTER TABLE CLIENTS ADD COLUMN allow_direct_user_calling BOOLEAN NOT NULL DEFAULT 1',
'ALTER TABLE CLIENTS ADD COLUMN allow_direct_app_calling BOOLEAN NOT NULL DEFAULT 1'
]
};

Expand Down

0 comments on commit 82ea883

Please sign in to comment.