S
Size: a a a
ERROR 1062 (23000): Duplicate entry '...' for key '...'
DE
DE
DE
alter table UserActions add column localVarSource varchar(1024) default null after salt;Выполняю этот запрос в терминале, используя bash утилиту mysql
DE
DE
CREATE TABLE UserActions;UserActions | CREATE TABLE `UserActions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`botId` int(11) DEFAULT NULL,
`delayedActionId` int(11) DEFAULT NULL,
`userId` bigint(20) DEFAULT NULL,
`chatId` bigint(20) DEFAULT '0',
`executeTime` int(11) DEFAULT NULL,
`performTime` int(11) DEFAULT '0',
`isCanceled` tinyint(1) DEFAULT '0',
`contentId` int(11) DEFAULT '0',
`buttonId` int(11) DEFAULT '0',
`storeOrderId` int(11) DEFAULT '0',
`salt` bigint(20) DEFAULT NULL,
`replaceCount` tinyint(4) DEFAULT '0',
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_actions_bot_id_delayed_action_id_user_id_perform_time` (`botId`,`delayedActionId`,`userId`,`chatId`,`performTime`,`salt`),
KEY `performTime_isCanceled_executeTime` (`performTime`,`isCanceled`,`executeTime`)
) ENGINE=InnoDB AUTO_INCREMENT=1346383 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
DE
G
DE