kuroko2 0.4.3 → 0.4.4

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