[*] MQ миграции таблиц

This commit is contained in:
rsgrinko committed 2022-07-06 22:46:29 +03:00
1 parent 2bcd7f16cb
commit 90af02f6cb
5 files changed
+26 -25

No files matched your search

+4 -3
View File
@@ -1,10 +1,11 @@
CREATE TABLE if not exists `threads` (
CREATE TABLE `threads` (
`id` int(11) NOT NULL,
`active` varchar(1) NOT NULL DEFAULT 'N',
`in_progress` varchar(1) NOT NULL DEFAULT 'N',
`executed` varchar(1) NOT NULL DEFAULT 'N',
`priority` int(11) DEFAULT NULL,
`execution_time` varchar(255) DEFAULT NULL,
`attempts` int(11) NOT NULL,
`attempts_limit` int(11) DEFAULT '1',
`date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date_updated` datetime DEFAULT NULL,
`class` varchar(255) DEFAULT NULL,
@@ -14,4 +15,4 @@ CREATE TABLE if not exists `threads` (
`response` text
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
ALTER TABLE `threads` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `threads` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17923;
ALTER TABLE `threads` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78989;