|
| 1 | +/* |
| 2 | + Warnings: |
| 3 | +
|
| 4 | + - You are about to alter the column `createdAt` on the `Chat` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 5 | + - You are about to alter the column `updatedAt` on the `Chat` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 6 | + - You are about to alter the column `createdAt` on the `Chatwoot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 7 | + - You are about to alter the column `updatedAt` on the `Chatwoot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 8 | + - You are about to alter the column `createdAt` on the `Contact` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 9 | + - You are about to alter the column `updatedAt` on the `Contact` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 10 | + - You are about to alter the column `createdAt` on the `Dify` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 11 | + - You are about to alter the column `updatedAt` on the `Dify` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 12 | + - You are about to alter the column `createdAt` on the `DifySetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 13 | + - You are about to alter the column `updatedAt` on the `DifySetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 14 | + - You are about to alter the column `createdAt` on the `EvolutionBot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 15 | + - You are about to alter the column `updatedAt` on the `EvolutionBot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 16 | + - You are about to alter the column `createdAt` on the `EvolutionBotSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 17 | + - You are about to alter the column `updatedAt` on the `EvolutionBotSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 18 | + - You are about to alter the column `createdAt` on the `Flowise` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 19 | + - You are about to alter the column `updatedAt` on the `Flowise` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 20 | + - You are about to alter the column `createdAt` on the `FlowiseSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 21 | + - You are about to alter the column `updatedAt` on the `FlowiseSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 22 | + - You are about to alter the column `disconnectionAt` on the `Instance` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 23 | + - You are about to alter the column `createdAt` on the `Instance` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 24 | + - You are about to alter the column `updatedAt` on the `Instance` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 25 | + - You are about to alter the column `createdAt` on the `IntegrationSession` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 26 | + - You are about to alter the column `updatedAt` on the `IntegrationSession` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 27 | + - You are about to alter the column `createdAt` on the `IsOnWhatsapp` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 28 | + - You are about to alter the column `updatedAt` on the `IsOnWhatsapp` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 29 | + - You are about to alter the column `createdAt` on the `Label` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 30 | + - You are about to alter the column `updatedAt` on the `Label` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 31 | + - You are about to alter the column `createdAt` on the `Media` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 32 | + - You are about to alter the column `createdAt` on the `OpenaiBot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 33 | + - You are about to alter the column `updatedAt` on the `OpenaiBot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 34 | + - You are about to alter the column `createdAt` on the `OpenaiCreds` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 35 | + - You are about to alter the column `updatedAt` on the `OpenaiCreds` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 36 | + - You are about to alter the column `createdAt` on the `OpenaiSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 37 | + - You are about to alter the column `updatedAt` on the `OpenaiSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 38 | + - You are about to alter the column `createdAt` on the `Proxy` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 39 | + - You are about to alter the column `updatedAt` on the `Proxy` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 40 | + - You are about to alter the column `createdAt` on the `Pusher` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 41 | + - You are about to alter the column `updatedAt` on the `Pusher` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 42 | + - You are about to alter the column `createdAt` on the `Rabbitmq` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 43 | + - You are about to alter the column `updatedAt` on the `Rabbitmq` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 44 | + - You are about to alter the column `createdAt` on the `Session` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 45 | + - You are about to alter the column `createdAt` on the `Setting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 46 | + - You are about to alter the column `updatedAt` on the `Setting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 47 | + - You are about to alter the column `createdAt` on the `Sqs` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 48 | + - You are about to alter the column `updatedAt` on the `Sqs` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 49 | + - You are about to alter the column `createdAt` on the `Template` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 50 | + - You are about to alter the column `updatedAt` on the `Template` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 51 | + - You are about to alter the column `createdAt` on the `Typebot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 52 | + - You are about to alter the column `updatedAt` on the `Typebot` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 53 | + - You are about to alter the column `createdAt` on the `TypebotSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 54 | + - You are about to alter the column `updatedAt` on the `TypebotSetting` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 55 | + - You are about to alter the column `createdAt` on the `Webhook` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 56 | + - You are about to alter the column `updatedAt` on the `Webhook` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 57 | + - You are about to alter the column `createdAt` on the `Websocket` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 58 | + - You are about to alter the column `updatedAt` on the `Websocket` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`. |
| 59 | + - A unique constraint covering the columns `[instanceId,remoteJid]` on the table `Chat` will be added. If there are existing duplicate values, this will fail. |
| 60 | +
|
| 61 | +*/ |
| 62 | +-- AlterTable |
| 63 | +ALTER TABLE `Chat` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 64 | + MODIFY `updatedAt` TIMESTAMP NULL; |
| 65 | + |
| 66 | +-- AlterTable |
| 67 | +ALTER TABLE `Chatwoot` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 68 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 69 | + |
| 70 | +-- AlterTable |
| 71 | +ALTER TABLE `Contact` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 72 | + MODIFY `updatedAt` TIMESTAMP NULL; |
| 73 | + |
| 74 | +-- AlterTable |
| 75 | +ALTER TABLE `Dify` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 76 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 77 | + |
| 78 | +-- AlterTable |
| 79 | +ALTER TABLE `DifySetting` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 80 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 81 | + |
| 82 | +-- AlterTable |
| 83 | +ALTER TABLE `EvolutionBot` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 84 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 85 | + |
| 86 | +-- AlterTable |
| 87 | +ALTER TABLE `EvolutionBotSetting` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 88 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 89 | + |
| 90 | +-- AlterTable |
| 91 | +ALTER TABLE `Flowise` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 92 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 93 | + |
| 94 | +-- AlterTable |
| 95 | +ALTER TABLE `FlowiseSetting` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 96 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 97 | + |
| 98 | +-- AlterTable |
| 99 | +ALTER TABLE `Instance` MODIFY `disconnectionAt` TIMESTAMP NULL, |
| 100 | + MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 101 | + MODIFY `updatedAt` TIMESTAMP NULL; |
| 102 | + |
| 103 | +-- AlterTable |
| 104 | +ALTER TABLE `IntegrationSession` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 105 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 106 | + |
| 107 | +-- AlterTable |
| 108 | +ALTER TABLE `IsOnWhatsapp` MODIFY `createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 109 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 110 | + |
| 111 | +-- AlterTable |
| 112 | +ALTER TABLE `Label` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 113 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 114 | + |
| 115 | +-- AlterTable |
| 116 | +ALTER TABLE `Media` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP; |
| 117 | + |
| 118 | +-- AlterTable |
| 119 | +ALTER TABLE `OpenaiBot` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 120 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 121 | + |
| 122 | +-- AlterTable |
| 123 | +ALTER TABLE `OpenaiCreds` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 124 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 125 | + |
| 126 | +-- AlterTable |
| 127 | +ALTER TABLE `OpenaiSetting` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 128 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 129 | + |
| 130 | +-- AlterTable |
| 131 | +ALTER TABLE `Proxy` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 132 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 133 | + |
| 134 | +-- AlterTable |
| 135 | +ALTER TABLE `Pusher` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 136 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 137 | + |
| 138 | +-- AlterTable |
| 139 | +ALTER TABLE `Rabbitmq` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 140 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 141 | + |
| 142 | +-- AlterTable |
| 143 | +ALTER TABLE `Session` MODIFY `createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; |
| 144 | + |
| 145 | +-- AlterTable |
| 146 | +ALTER TABLE `Setting` ADD COLUMN `wavoipToken` VARCHAR(100) NULL, |
| 147 | + MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 148 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 149 | + |
| 150 | +-- AlterTable |
| 151 | +ALTER TABLE `Sqs` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 152 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 153 | + |
| 154 | +-- AlterTable |
| 155 | +ALTER TABLE `Template` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 156 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 157 | + |
| 158 | +-- AlterTable |
| 159 | +ALTER TABLE `Typebot` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 160 | + MODIFY `updatedAt` TIMESTAMP NULL; |
| 161 | + |
| 162 | +-- AlterTable |
| 163 | +ALTER TABLE `TypebotSetting` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 164 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 165 | + |
| 166 | +-- AlterTable |
| 167 | +ALTER TABLE `Webhook` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 168 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 169 | + |
| 170 | +-- AlterTable |
| 171 | +ALTER TABLE `Websocket` MODIFY `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, |
| 172 | + MODIFY `updatedAt` TIMESTAMP NOT NULL; |
| 173 | + |
| 174 | +-- CreateIndex |
| 175 | +CREATE UNIQUE INDEX `Chat_instanceId_remoteJid_key` ON `Chat`(`instanceId`, `remoteJid`); |
0 commit comments