From: Giuseppe Careri Date: Tue, 2 Oct 2018 15:53:51 +0000 (+0200) Subject: Fixed Migration Openchannel dispostions X-Git-Tag: 2.0.67^0 X-Git-Url: http://repos.xcallymotion.com/?a=commitdiff_plain;h=b74d677e23b02358c83d6cc74930dc81d709ee69;p=motion2.git Fixed Migration Openchannel dispostions --- diff --git a/server/migrations/2.0.67.js b/server/migrations/2.0.67.js index 5823d31..2707dd7 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -181,14 +181,12 @@ module.exports = { SELECT `name`, `createdAt`, `updatedAt`, `ChatWebsiteId` FROM chat_dispositions;'); migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `MailAccountId`) \ SELECT `name`, `createdAt`, `updatedAt`, `MailAccountId` FROM mail_dispositions;'); - migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `ChatAccountId`) \ - SELECT `name`, `createdAt`, `updatedAt`, `ChatAccountId` FROM chat_dispositions;'); migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `FaxAccountId`) \ SELECT `name`, `createdAt`, `updatedAt`, `FaxAccountId` FROM fax_dispositions;'); migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `SmsAccountId`) \ SELECT `name`, `createdAt`, `updatedAt`, `SmsAccountId` FROM sms_dispositions;'); migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `OpenchannelAccountId`) \ - SELECT `name`, `createdAt`, `updatedAt`, `SmsAccountId` FROM openchannel_dispositions;'); + SELECT `name`, `createdAt`, `updatedAt`, `OpenchannelAccountId` FROM openchannel_dispositions;'); migration.query('INSERT INTO tools_dispositions (`name`, `createdAt`, `updatedAt`, `ListId`) \ SELECT `name`, `createdAt`, `updatedAt`, `ListId` FROM voice_dispositions;'); // END tools_dispositions