Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Опечатка в миграции таблицы backgroundtasks_task #401

Open
IljaPHP opened this issue Jul 16, 2021 · 0 comments
Open

Comments

@IljaPHP
Copy link

IljaPHP commented Jul 16, 2021

Syntax error near 'UNSIGNED NOT NULL, name VARCHAR(255) NOT NULL, description' at line 5
http://joxi.ru/krDx8nbFKeB9Lr

CREATE TABLE `backgroundtasks_task` (
        `id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
        `action` VARCHAR(255) NOT NULL,
        `type`  enum('EVENT','REPEAT') NOT NULL DEFAULT 'EVENT',
        `initiator` INT UNSIGNED UNSIGNED NOT NULL,
        `name` VARCHAR(255) NOT NULL,
        `description` TEXT DEFAULT NULL,
        `params` TEXT DEFAULT NULL,
        `init_event` VARCHAR(255) DEFAULT NULL,
        `cron_expression` VARCHAR(255) DEFAULT NULL,
        `status`  enum('ACTIVE','STOPPED','RUNNING','FAILED','COMPLETED', 'PROCESS') NOT NULL DEFAULT 'ACTIVE',
        `ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
        `fail_counter` TINYINT UNSIGNED NOT NULL DEFAULT'0',
        `options` TEXT,
        KEY `name` (`name`)
) CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB

UNSIGNED UNSIGNED - два раза

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant