kuroko2 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/controllers/kuroko2/api/application_controller.rb +4 -0
- data/app/controllers/kuroko2/api/job_definitions_controller.rb +64 -0
- data/app/controllers/kuroko2/job_definitions_controller.rb +9 -2
- data/app/errors/http/unprocessable_entity.rb +4 -0
- data/app/models/kuroko2/api/job_definition_resource.rb +11 -0
- data/app/models/kuroko2/job_definition.rb +1 -1
- data/app/views/kuroko2/job_definitions/_alert.html.slim +1 -1
- data/app/views/kuroko2/job_definitions/_list.html.slim +4 -1
- data/app/views/kuroko2/job_definitions/_search_results.html.slim +4 -1
- data/app/views/kuroko2/job_definitions/show.html.slim +4 -2
- data/app/views/kuroko2/job_timelines/dataset.json.jbuilder +1 -1
- data/app/views/kuroko2/users/index.html.slim +1 -1
- data/config/routes.rb +2 -2
- data/db/migrate/030_add_notify_back_to_normal.rb +5 -0
- data/lib/autoload/kuroko2/workflow/engine.rb +6 -2
- data/lib/autoload/kuroko2/workflow/notifier/concerns/chat_message_builder.rb +4 -0
- data/lib/autoload/kuroko2/workflow/notifier/hipchat.rb +5 -0
- data/lib/autoload/kuroko2/workflow/notifier/mail.rb +4 -0
- data/lib/autoload/kuroko2/workflow/notifier/slack.rb +7 -0
- data/lib/autoload/kuroko2/workflow/notifier/webhook.rb +10 -0
- data/lib/kuroko2/version.rb +1 -1
- data/spec/controllers/job_definitions_controller_spec.rb +62 -0
- data/spec/dummy/db/schema.rb +133 -132
- data/spec/dummy/log/test.log +667 -0
- data/spec/features/job_instance_spec.rb +4 -5
- data/spec/requests/api/job_definitions_spec.rb +178 -0
- data/spec/workflow/engine_spec.rb +2 -0
- data/spec/workflow/notifier/hipchat_spec.rb +11 -0
- data/spec/workflow/notifier/mail_spec.rb +8 -0
- data/spec/workflow/notifier/slack_spec.rb +9 -0
- data/spec/workflow/notifier/webhook_spec.rb +11 -0
- metadata +9 -3
data/spec/dummy/log/test.log
CHANGED
@@ -2110899,3 +2110899,670 @@ Launched by '#806 Job Definition' instance#806/580
|
|
2110899
2110899
|
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2110900
2110900
|
[1m[36mKuroko2::JobDefinition Load (0.3ms)[0m [1m[34mSELECT `kuroko2_job_definitions`.* FROM `kuroko2_job_definitions` WHERE `kuroko2_job_definitions`.`id` = 821 LIMIT 1[0m
|
2110901
2110901
|
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM `kuroko2_admin_assignments`;DELETE FROM `kuroko2_job_definitions`;DELETE FROM `kuroko2_memory_expectancies`;DELETE FROM `kuroko2_users`[0m
|
2110902
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110903
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110904
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110905
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110906
|
+
[1m[35m (5.8ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110907
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110908
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110909
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110910
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110911
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110912
|
+
[1m[35m (304.7ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2110913
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2110914
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110915
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110916
|
+
[1m[35m (5.8ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2110917
|
+
[1m[35m (36.9ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110918
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2110919
|
+
[1m[35m (13.0ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110920
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2110921
|
+
[1m[35m (13.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110922
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2110923
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110924
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2110925
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110926
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2110927
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110928
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2110929
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110930
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2110931
|
+
[1m[35m (12.7ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110932
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2110933
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110934
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2110935
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110936
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2110937
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110938
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2110939
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110940
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2110941
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110942
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2110943
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110944
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2110945
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110946
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2110947
|
+
[1m[35m (12.7ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110948
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2110949
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110950
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2110951
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110952
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2110953
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2110954
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2110955
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2110956
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:18', '2018-02-16 03:04:18')[0m
|
2110957
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2110958
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2110959
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2110960
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2110961
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110962
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110963
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110964
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110965
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110966
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110967
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110968
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110969
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2110970
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2110971
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110972
|
+
[1m[35m (31.1ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2110973
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2110974
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110975
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2110976
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2110977
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110978
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2110979
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110980
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2110981
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110982
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2110983
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110984
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2110985
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110986
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2110987
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110988
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2110989
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110990
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2110991
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110992
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2110993
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110994
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2110995
|
+
[1m[35m (24.0ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110996
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2110997
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2110998
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2110999
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111000
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111001
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111002
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111003
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111004
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111005
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111006
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111007
|
+
[1m[35m (14.1ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111008
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111009
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111010
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111011
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111012
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111013
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111014
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111015
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111016
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:22', '2018-02-16 03:04:22')[0m
|
2111017
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2111018
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111019
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111020
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111021
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111022
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111023
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111024
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111025
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111026
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111027
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111028
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111029
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111030
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111031
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111032
|
+
[1m[35m (25.5ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111033
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111034
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111035
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111036
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111037
|
+
[1m[35m (10.6ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111038
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111039
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111040
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111041
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111042
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111043
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111044
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111045
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111046
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111047
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111048
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111049
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111050
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111051
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111052
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111053
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111054
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111055
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111056
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111057
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111058
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111059
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111060
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111061
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111062
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111063
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111064
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111065
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111066
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111067
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111068
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111069
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111070
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111071
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111072
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111073
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111074
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111075
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111076
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:25', '2018-02-16 03:04:25')[0m
|
2111077
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
2111078
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111079
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111080
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2111081
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111082
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111083
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111084
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111085
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111086
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111087
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111088
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111089
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111090
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111091
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111092
|
+
[1m[35m (27.0ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111093
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111094
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111095
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111096
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111097
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111098
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111099
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111100
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111101
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111102
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111103
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111104
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111105
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111106
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111107
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111108
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111109
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111110
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111111
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111112
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111113
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111114
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111115
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111116
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111117
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111118
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111119
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111120
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111121
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111122
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111123
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111124
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111125
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111126
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111127
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111128
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111129
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111130
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111131
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111132
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111133
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111134
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111135
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111136
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:29', '2018-02-16 03:04:29')[0m
|
2111137
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
2111138
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111139
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111140
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111141
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111142
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111143
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111144
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111145
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111146
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111147
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111148
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111149
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111150
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111151
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111152
|
+
[1m[35m (26.5ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111153
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111154
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111155
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111156
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111157
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111158
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111159
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111160
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111161
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111162
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111163
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111164
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111165
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111166
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111167
|
+
[1m[35m (36.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111168
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111169
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111170
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111171
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111172
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111173
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111174
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111175
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111176
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111177
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111178
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111179
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111180
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111181
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111182
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111183
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111184
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111185
|
+
[1m[35m (14.9ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111186
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111187
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111188
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111189
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111190
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111191
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111192
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111193
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111194
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111195
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111196
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:33', '2018-02-16 03:04:33')[0m
|
2111197
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
2111198
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111199
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111200
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2111201
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111202
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111203
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111204
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111205
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111206
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111207
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111208
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111209
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111210
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111211
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111212
|
+
[1m[35m (28.3ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111213
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111214
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111215
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111216
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111217
|
+
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111218
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111219
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111220
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111221
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111222
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111223
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111224
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111225
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111226
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111227
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111228
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111229
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111230
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111231
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111232
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111233
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111234
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111235
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111236
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111237
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111238
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111239
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111240
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111241
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111242
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111243
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111244
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111245
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111246
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111247
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111248
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111249
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111250
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111251
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111252
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111253
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111254
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111255
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111256
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:36', '2018-02-16 03:04:36')[0m
|
2111257
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2111258
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111259
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111260
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2111261
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111262
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111263
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111264
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111265
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111266
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111267
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111268
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111269
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111270
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111271
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111272
|
+
[1m[35m (26.6ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111273
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111274
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111275
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111276
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111277
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111278
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111279
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111280
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111281
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111282
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111283
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111284
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111285
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111286
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111287
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111288
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111289
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111290
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111291
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111292
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111293
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111294
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111295
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111296
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111297
|
+
[1m[35m (16.7ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111298
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111299
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111300
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111301
|
+
[1m[35m (13.5ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111302
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111303
|
+
[1m[35m (17.8ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111304
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111305
|
+
[1m[35m (14.3ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111306
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111307
|
+
[1m[35m (16.8ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111308
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111309
|
+
[1m[35m (10.9ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111310
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111311
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111312
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111313
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111314
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111315
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111316
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:40', '2018-02-16 03:04:40')[0m
|
2111317
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2111318
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111319
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111320
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111321
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111322
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111323
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111324
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111325
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111326
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111327
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111328
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111329
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111330
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111331
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111332
|
+
[1m[35m (23.9ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111333
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111334
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111335
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111336
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111337
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111338
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111339
|
+
[1m[35m (9.9ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111340
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111341
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111342
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111343
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111344
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111345
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111346
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111347
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111348
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111349
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111350
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111351
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111352
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111353
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111354
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111355
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111356
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111357
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111358
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111359
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111360
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111361
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111362
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111363
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111364
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111365
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111366
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111367
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111368
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111369
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111370
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111371
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
2111372
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT GET_LOCK(8500528990804110330, 0)[0m
|
2111373
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111374
|
+
Migrating to CreateJobDefinitions (1)
|
2111375
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
2111376
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT RELEASE_LOCK(8500528990804110330)[0m
|
2111377
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111378
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111379
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111380
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111381
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111382
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111383
|
+
[1m[35m (25.7ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111384
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111385
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111386
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111387
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111388
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111389
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111390
|
+
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111391
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111392
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111393
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111394
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111395
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111396
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111397
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111398
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111399
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111400
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111401
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111402
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111403
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111404
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111405
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111406
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111407
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111408
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111409
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111410
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111411
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111412
|
+
[1m[35m (10.7ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111413
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111414
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111415
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111416
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111417
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111418
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111419
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111420
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111421
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111422
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111423
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111424
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111425
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111426
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111427
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:04:57', '2018-02-16 03:04:57')[0m
|
2111428
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2111429
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111430
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111431
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111432
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111433
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111434
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111435
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111436
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111437
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111438
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111439
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111440
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111441
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111442
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111443
|
+
[1m[35m (29.6ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111444
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111445
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111446
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111447
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111448
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111449
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111450
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111451
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111452
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111453
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111454
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111455
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111456
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111457
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111458
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111459
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111460
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111461
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111462
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111463
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111464
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111465
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111466
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111467
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111468
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111469
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111470
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111471
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111472
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111473
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111474
|
+
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111475
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111476
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111477
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111478
|
+
[1m[35m (16.0ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111479
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111480
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111481
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111482
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111483
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111484
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111485
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111486
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111487
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:05:01', '2018-02-16 03:05:01')[0m
|
2111488
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2111489
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111490
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111491
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111492
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111493
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111494
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111495
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111496
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111497
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111498
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111499
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111500
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111501
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.`value` FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment'[0m
|
2111502
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111503
|
+
[1m[35m (28.6ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
2111504
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
2111505
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111506
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111507
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_admin_assignments` CASCADE[0m
|
2111508
|
+
[1m[35m (13.9ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `user_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111509
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_executions` CASCADE[0m
|
2111510
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `token_id` int, `queue` varchar(180) DEFAULT '@default' NOT NULL, `shell` text NOT NULL, `context` text NOT NULL, `pid` int, `output` longtext, `exit_status` smallint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` (`job_definition_id`, `token_id`), INDEX `started_at` (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111511
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definition_tags` CASCADE[0m
|
2111512
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int NOT NULL, `tag_id` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_definition_tag_idx` (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111513
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_definitions` CASCADE[0m
|
2111514
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime, `webhook_url` text, INDEX `name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111515
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_instances` CASCADE[0m
|
2111516
|
+
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `job_definition_version` int, `script` text, `finished_at` datetime, `canceled_at` datetime, `error_at` datetime, `created_at` datetime, `updated_at` datetime, `retrying` tinyint(1) DEFAULT 0 NOT NULL, INDEX `job_instance_idx` (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111517
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_schedules` CASCADE[0m
|
2111518
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111519
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_job_suspend_schedules` CASCADE[0m
|
2111520
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111521
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_logs` CASCADE[0m
|
2111522
|
+
[1m[35m (11.0ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111523
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_consumption_logs` CASCADE[0m
|
2111524
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `value` int NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_consumption_logs_on_job_instance_id` (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111525
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_memory_expectancies` CASCADE[0m
|
2111526
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `expected_value` int DEFAULT 0 NOT NULL, `job_definition_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_kuroko2_memory_expectancies_on_job_definition_id` (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111527
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_process_signals` CASCADE[0m
|
2111528
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) DEFAULT '' NOT NULL, `pid` int NOT NULL, `number` tinyint DEFAULT 15 NOT NULL, `started_at` datetime, `created_at` datetime, `updated_at` datetime, `message` text, `execution_id` int, INDEX `index_kuroko2_process_signals_on_execution_id` (`execution_id`), INDEX `hostname_started_at` (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111529
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_stars` CASCADE[0m
|
2111530
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111531
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tags` CASCADE[0m
|
2111532
|
+
[1m[35m (26.5ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_kuroko2_tags_on_name` (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111533
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_ticks` CASCADE[0m
|
2111534
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111535
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_tokens` CASCADE[0m
|
2111536
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `uuid` varchar(36) NOT NULL, `job_definition_id` int, `job_definition_version` int, `job_instance_id` int, `parent_id` int, `script` text NOT NULL, `path` varchar(180) DEFAULT '/' NOT NULL, `status` int DEFAULT 0 NOT NULL, `message` text NOT NULL, `context` text NOT NULL, `created_at` datetime, `updated_at` datetime, INDEX `parent_id` (`parent_id`), INDEX `status` (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111537
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_users` CASCADE[0m
|
2111538
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `provider` varchar(180) DEFAULT 'google_oauth2' NOT NULL, `uid` varchar(180) NOT NULL, `name` varchar(180) DEFAULT '' NOT NULL, `email` varchar(180) NOT NULL, `first_name` varchar(180) DEFAULT '' NOT NULL, `last_name` varchar(180) DEFAULT '' NOT NULL, `image` varchar(180) DEFAULT '' NOT NULL, `suspended_at` datetime, `created_at` datetime, `updated_at` datetime, INDEX `email` (`email`), INDEX `uid_2` (`uid`, `suspended_at`), UNIQUE INDEX `uid` (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111539
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS `kuroko2_workers` CASCADE[0m
|
2111540
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `hostname` varchar(180) NOT NULL, `worker_id` tinyint NOT NULL, `queue` varchar(180) DEFAULT '@default' NOT NULL, `working` tinyint(1) DEFAULT 0 NOT NULL, `execution_id` int, `created_at` datetime, `updated_at` datetime, UNIQUE INDEX `hostname` (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
2111541
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY) ENGINE=InnoDB[0m
|
2111542
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111543
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (version) VALUES (30)[0m
|
2111544
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
2111545
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111546
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111547
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2018-02-16 03:05:04', '2018-02-16 03:05:04')[0m
|
2111548
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2111549
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
2111550
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2111551
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
2111552
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111553
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111554
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111555
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111556
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
2111557
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT GET_LOCK(8500528990804110330, 0)[0m
|
2111558
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111559
|
+
Migrating to CreateJobDefinitions (1)
|
2111560
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
2111561
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT RELEASE_LOCK(8500528990804110330)[0m
|
2111562
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_general_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
2111563
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
2111564
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT GET_LOCK(8500528990804110330, 0)[0m
|
2111565
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.`version` FROM `kuroko2_schema_migrations` ORDER BY `kuroko2_schema_migrations`.`version` ASC[0m
|
2111566
|
+
Migrating to CreateJobDefinitions (1)
|
2111567
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
2111568
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT RELEASE_LOCK(8500528990804110330)[0m
|