kuroko2 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kuroko2/definition_linker.js +1 -1
- data/app/assets/stylesheets/kuroko2/application.scss +4 -0
- data/app/controllers/kuroko2/api/job_instances_controller.rb +3 -2
- data/app/controllers/kuroko2/dashboard_controller.rb +1 -1
- data/app/controllers/kuroko2/job_definitions_controller.rb +2 -2
- data/app/controllers/kuroko2/job_instances_controller.rb +8 -18
- data/app/controllers/kuroko2/tokens_controller.rb +3 -3
- data/app/controllers/kuroko2/users_controller.rb +17 -1
- data/app/models/kuroko2/job_definition.rb +11 -0
- data/app/models/kuroko2/job_instance.rb +19 -2
- data/app/models/kuroko2/job_schedule.rb +3 -6
- data/app/models/kuroko2/job_suspend_schedule.rb +1 -1
- data/app/models/kuroko2/token.rb +8 -0
- data/app/views/kuroko2/execution_logs/index.json.jbuilder +1 -1
- data/app/views/kuroko2/job_definitions/_form.html.slim +6 -1
- data/app/views/kuroko2/job_definitions/_list.html.slim +12 -5
- data/app/views/kuroko2/job_definitions/_search_results.html.slim +10 -3
- data/app/views/kuroko2/job_definitions/show.html.slim +5 -3
- data/app/views/kuroko2/job_timelines/dataset.json.jbuilder +1 -1
- data/app/views/kuroko2/logs/index.html.slim +6 -6
- data/app/views/kuroko2/tokens/index.html.slim +2 -2
- data/app/views/kuroko2/users/edit.html.slim +37 -0
- data/app/views/kuroko2/users/show.html.slim +8 -4
- data/db/migrate/026_add_webhook_url_to_job_definitions.rb +5 -0
- data/lib/autoload/kuroko2/workflow/engine.rb +4 -6
- data/lib/autoload/kuroko2/workflow/notifier/concerns/chat_message_builder.rb +12 -0
- data/lib/autoload/kuroko2/workflow/notifier/hipchat.rb +30 -4
- data/lib/autoload/kuroko2/workflow/notifier/mail.rb +9 -1
- data/lib/autoload/kuroko2/workflow/notifier/slack.rb +31 -4
- data/lib/autoload/kuroko2/workflow/notifier/webhook.rb +173 -0
- data/lib/autoload/kuroko2/workflow/task/queue.rb +2 -2
- data/lib/autoload/kuroko2/workflow/task/sub_process.rb +2 -4
- data/lib/kuroko2/version.rb +1 -1
- data/spec/controllers/users_controller_spec.rb +51 -2
- data/spec/dummy/config/kuroko2.yml +2 -0
- data/spec/dummy/db/schema.rb +76 -92
- data/spec/dummy/log/development.log +1143 -0
- data/spec/dummy/log/test.log +271238 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-Q/-QhKaYdB1JJGAsq6Ih7uQZJD46XkY5Gw0-38DBDVg3Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-h/-h4P8jVHGGfJVwG36J8kBUkHFa3HHGNiJQz0936uaxg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/24/24laeo7m53bkbst3Gxu4hlJY-EbnK-rQxH-DA4ujzwY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2e/2eEFzw4UUZHJizptl3nT5jVv3IL25_RdYImr3lAVlJ4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2z/2z8OmZrK1FFsPb8zq9RFli2IVM0gOna92hieZ4cK36c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4K/4Ky9Fg4qo8d_i8bJF6NOhDpxHuJ5kIX8n0w6C8wdHDU.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Di/Di9ZEIp2OLO96tkqFN21AWfdoAhc0OCBOJb3o8RUk1I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ex/ExgjnrLZM8Hc_uT_sWVaQSNR26tGYCGUsbJDXs9GYO0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FJ/FJW4oZDLKhsjg_UHdycQAY88BFtnMeeLCuArx6HIMdM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iq/IqSpSELRWrOQtOK8F6mGZFPvfafM4yn8gB_VquH9E50.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JJ/JJ2dvNSAjiGkZZs_1Dz2TMWDJs4HypQ95b26cHN13I0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LJ/LJsVKu6GCC14s20BfJEDXwajK6-xWF72ANX5ONOTX1w.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LL/LLCxb9El_km568UsA8DDOe8Vh3pPKE8IU6ZNww9ie8s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pq/pqeS6zqHUdv-_25W2PSQMm31ql_cIpaK1iqEcfiNyUQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Q9/Q9TwXzoqqs8Dm9v25gjZxYIkZW1UKm2X8g2koo5aYhQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QJ/QJNiKbGgll2T_0mhQus6ZL9a2SM4Xqz7vs2V2KbELPw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QV/QVVeFw88kC-7HfzOk_dCVoFBnz9W_7-gmJFYh-Xlh-0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qs/QsTn160WUaI8_u8tE8rz37XiSV9qLvSxiXAR-tCtV3Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/V2/V2QhbjrEGa7in5Uj1P-3E1Ziw2AGno_ADefUhPNHw_A.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/VjICw6h8uQ_278ekFlu1znnPR8Gz1vWF_mRgy0KjZXs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dH/dHFrKzzqtF3aoKs2wAI8z0CNHZoNuytfiHur9Zgz9z0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fE/fEFAQG1Uqt2e58VitSFoPsjVjntfPtgL9RKoKHUTS9U.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fM/FMdA_jabowoG5SAWE93G7Hu8A-5GhfzC9Gjy3EJp1Ts.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hI/hIIciXZzgFWXdW0lamhs4r5zFFr4hnXvWAuOihCS5qI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hW/hWOkA9ZbQJy1YfEXThjYPOiXRDVRgAeW8TmLm-uQCYk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iv/ivrIChCv2olhH20VXJQTJgVWlx3t9ncsYxV0QfLT0Bs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/k3/k31T18tx4gR2rhpmDMYMLUa8KPDt7QRIR_qRK56LOdE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oB/oB0c7AuqQVdgqJDgphXXOHw3SXqbDUYfZWxxm9-v_is.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ou/ouMQatdL-PPhPVPw5o0xm5EBkVeVWLti06EUEVmfOBo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qM/qMZbagtANt1BI7qOJXWEpzxx1qa-IKMkyOy6EKEIIbE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rc/rcceqGk009vh5_tK6Y-i1dvbYQwuUtRF888xZcnZrj8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sJ/sJOLo6McRe1YhfgIaGhcDaAoulIdYY7Rs07TAKmrSoY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sh/shGRyWpXjqxMTGB3As4Vibs8VGS0bZHHd4s0qabhwXI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sr/SRfo3vCtDVy0qd-OB9dv5a-xIVTHkJZDn8XwY_ymy7g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vV/vV3Loym0NolgPoXFEVPOr5rDgB_Q5kvUA3InuEEvEvQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wK5S37PPHfwFm-4mrLMMPdOZ29-H75zo1T2gmErWjLI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wm/wm_qI7_LCxbnH6p7BK1Pqcocl-6TcULzTERICGZIdL0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zC/zCYIl3BglB_fMHME2oqK30CF97CBUG09R0ICLpE-pIM.cache +0 -0
- data/spec/features/dashborad_spec.rb +10 -3
- data/spec/features/users_spec.rb +20 -4
- data/spec/models/job_instance_spec.rb +1 -1
- data/spec/models/token_spec.rb +38 -0
- data/spec/workflow/notifier/hipchat_spec.rb +91 -0
- data/spec/workflow/notifier/mail_spec.rb +18 -2
- data/spec/workflow/notifier/slack_spec.rb +85 -0
- data/spec/workflow/notifier/webhook_spec.rb +187 -0
- data/spec/workflow/task/queue_spec.rb +11 -0
- metadata +93 -16
@@ -13,8 +13,8 @@ module Kuroko2
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def validate
|
16
|
-
unless /\A[\w_-]{1,180}\z/ === option
|
17
|
-
raise Workflow::AssertionError, "Queue name must be match with /\A[\w_-]{1,255}\z/: #{option}"
|
16
|
+
unless /\A\@?[\w_-]{1,180}\z/ === option
|
17
|
+
raise Workflow::AssertionError, "Queue name must be match with /\A\@?[\w_-]{1,255}\z/: #{option}"
|
18
18
|
end
|
19
19
|
|
20
20
|
unless Worker.where(queue: option, working: true).exists?
|
@@ -29,13 +29,11 @@ module Kuroko2
|
|
29
29
|
end
|
30
30
|
else
|
31
31
|
definition = JobDefinition.find(@node.option)
|
32
|
-
|
33
|
-
|
34
|
-
instance.logs.info("Launched by '##{token.job_definition.id} #{token.job_definition.name}' instance##{token.job_definition.id}/#{token.job_instance.id}.")
|
32
|
+
launched_by = "'##{token.job_definition.id} #{token.job_definition.name}' instance##{token.job_definition.id}/#{token.job_instance.id}"
|
33
|
+
instance = definition.create_instance(launched_by: launched_by)
|
35
34
|
token.job_instance.logs.info("(token #{token.uuid}) Launched '##{instance.job_definition.id} #{instance.job_definition.name}' instance##{instance.job_definition.id}/#{instance.id} as a sub process.")
|
36
35
|
|
37
36
|
token.context['sub_process_id'] = instance.id
|
38
|
-
|
39
37
|
:pass
|
40
38
|
end
|
41
39
|
rescue ActiveRecord::RecordNotFound
|
data/lib/kuroko2/version.rb
CHANGED
@@ -39,13 +39,62 @@ describe Kuroko2::UsersController do
|
|
39
39
|
it { expect(response).to redirect_to(users_path) }
|
40
40
|
end
|
41
41
|
|
42
|
+
describe '#edit' do
|
43
|
+
let(:name) { 'Test Users' }
|
44
|
+
let(:email) { 'test@example.com' }
|
45
|
+
|
46
|
+
let(:provider) { Kuroko2::User::GROUP_PROVIDER }
|
47
|
+
let(:user) do
|
48
|
+
create(
|
49
|
+
:user,
|
50
|
+
name: 'name',
|
51
|
+
email: 'initial@example.com',
|
52
|
+
provider: provider,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
56
|
+
before { put(:update, params: { id: user.id, user: { name: name, email: email } }) }
|
57
|
+
|
58
|
+
it 'edits the name/email' do
|
59
|
+
user = assigns(:user).reload
|
60
|
+
expect(user.name).to eq(name)
|
61
|
+
expect(user.email).to eq(email)
|
62
|
+
expect(response).to redirect_to(user_path(user))
|
63
|
+
end
|
64
|
+
|
65
|
+
context 'if user is google account' do
|
66
|
+
let(:provider) { Kuroko2::User::GOOGLE_OAUTH2_PROVIDER }
|
67
|
+
|
68
|
+
it 'returns bad request' do
|
69
|
+
expect(response).to have_http_status(:bad_request)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
42
74
|
describe '#destroy' do
|
43
|
-
let(:
|
44
|
-
|
75
|
+
let(:provider) { Kuroko2::User::GROUP_PROVIDER }
|
76
|
+
let(:user) do
|
77
|
+
create(
|
78
|
+
:user,
|
79
|
+
name: 'name',
|
80
|
+
email: 'initial@example.com',
|
81
|
+
provider: provider,
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
before { delete(:destroy, params: { id: user.id }) }
|
45
86
|
|
46
87
|
it do
|
47
88
|
expect(response).to redirect_to(users_path)
|
48
89
|
expect(Kuroko2::User.exists?(user.id)).to be_falsey
|
49
90
|
end
|
91
|
+
|
92
|
+
context 'if user is google account' do
|
93
|
+
let(:provider) { Kuroko2::User::GOOGLE_OAUTH2_PROVIDER }
|
94
|
+
|
95
|
+
it 'returns bad request' do
|
96
|
+
expect(response).to have_http_status(:bad_request)
|
97
|
+
end
|
98
|
+
end
|
50
99
|
end
|
51
100
|
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -11,27 +10,26 @@
|
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 26) do
|
15
14
|
|
16
|
-
create_table "admin_assignments", force: :cascade do |t|
|
17
|
-
t.integer "user_id",
|
18
|
-
t.integer "job_definition_id",
|
15
|
+
create_table "admin_assignments", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
16
|
+
t.integer "user_id", null: false
|
17
|
+
t.integer "job_definition_id", null: false
|
19
18
|
t.datetime "created_at"
|
20
19
|
t.datetime "updated_at"
|
20
|
+
t.index ["user_id", "job_definition_id"], name: "user_id", unique: true, using: :btree
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
create_table "executions", force: :cascade do |t|
|
23
|
+
create_table "executions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
26
24
|
t.string "uuid", limit: 36, null: false
|
27
|
-
t.integer "job_definition_id"
|
28
|
-
t.integer "job_definition_version"
|
29
|
-
t.integer "job_instance_id"
|
30
|
-
t.integer "token_id"
|
25
|
+
t.integer "job_definition_id"
|
26
|
+
t.integer "job_definition_version"
|
27
|
+
t.integer "job_instance_id"
|
28
|
+
t.integer "token_id"
|
31
29
|
t.string "queue", limit: 180, default: "@default", null: false
|
32
30
|
t.text "shell", limit: 65535, null: false
|
33
31
|
t.text "context", limit: 65535, null: false
|
34
|
-
t.integer "pid"
|
32
|
+
t.integer "pid"
|
35
33
|
t.text "output", limit: 4294967295
|
36
34
|
t.integer "exit_status", limit: 1
|
37
35
|
t.integer "term_signal", limit: 1
|
@@ -40,28 +38,26 @@ ActiveRecord::Schema.define(version: 25) do
|
|
40
38
|
t.datetime "mailed_at"
|
41
39
|
t.datetime "created_at"
|
42
40
|
t.datetime "updated_at"
|
41
|
+
t.index ["job_definition_id", "token_id"], name: "index_kuroko2_executions_on_job_definition_id_and_token_id", unique: true, using: :btree
|
42
|
+
t.index ["started_at"], name: "started_at", using: :btree
|
43
43
|
end
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
t.
|
50
|
-
t.
|
51
|
-
t.
|
52
|
-
t.datetime "updated_at", null: false
|
45
|
+
create_table "job_definition_tags", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
46
|
+
t.integer "job_definition_id", null: false
|
47
|
+
t.integer "tag_id", null: false
|
48
|
+
t.datetime "created_at", null: false
|
49
|
+
t.datetime "updated_at", null: false
|
50
|
+
t.index ["job_definition_id", "tag_id"], name: "kuroko2_definition_tag_idx", unique: true, using: :btree
|
51
|
+
t.index ["tag_id"], name: "job_definition_tags_tag_id", using: :btree
|
53
52
|
end
|
54
53
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
create_table "job_definitions", force: :cascade do |t|
|
59
|
-
t.integer "version", limit: 4, default: 0, null: false
|
54
|
+
create_table "job_definitions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
55
|
+
t.integer "version", default: 0, null: false
|
60
56
|
t.string "name", limit: 180, null: false
|
61
57
|
t.text "description", limit: 65535, null: false
|
62
58
|
t.text "script", limit: 65535, null: false
|
63
59
|
t.boolean "suspended", default: false, null: false
|
64
|
-
t.integer "prevent_multi",
|
60
|
+
t.integer "prevent_multi", default: 1, null: false
|
65
61
|
t.boolean "notify_cancellation", default: true, null: false
|
66
62
|
t.string "hipchat_room", limit: 180, default: "", null: false
|
67
63
|
t.boolean "hipchat_notify_finished", default: true, null: false
|
@@ -70,122 +66,112 @@ ActiveRecord::Schema.define(version: 25) do
|
|
70
66
|
t.boolean "api_allowed", default: false, null: false
|
71
67
|
t.datetime "created_at"
|
72
68
|
t.datetime "updated_at"
|
69
|
+
t.text "webhook_url", limit: 65535
|
70
|
+
t.index ["name"], name: "name", using: :btree
|
73
71
|
end
|
74
72
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
t.integer "job_definition_id", limit: 4
|
79
|
-
t.integer "job_definition_version", limit: 4
|
73
|
+
create_table "job_instances", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
74
|
+
t.integer "job_definition_id"
|
75
|
+
t.integer "job_definition_version"
|
80
76
|
t.text "script", limit: 65535
|
81
77
|
t.datetime "finished_at"
|
82
78
|
t.datetime "canceled_at"
|
83
79
|
t.datetime "error_at"
|
84
80
|
t.datetime "created_at"
|
85
81
|
t.datetime "updated_at"
|
82
|
+
t.index ["finished_at", "canceled_at", "job_definition_id"], name: "job_instance_idx", using: :btree
|
83
|
+
t.index ["job_definition_id"], name: "index_kuroko2_job_instances_on_job_definition_id", using: :btree
|
86
84
|
end
|
87
85
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
create_table "job_schedules", force: :cascade do |t|
|
92
|
-
t.integer "job_definition_id", limit: 4
|
86
|
+
create_table "job_schedules", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
87
|
+
t.integer "job_definition_id"
|
93
88
|
t.string "cron", limit: 180
|
94
89
|
t.datetime "created_at"
|
95
90
|
t.datetime "updated_at"
|
91
|
+
t.index ["job_definition_id", "cron"], name: "kuroko2_schedules_definition_id_cron_idx", unique: true, using: :btree
|
96
92
|
end
|
97
93
|
|
98
|
-
|
99
|
-
|
100
|
-
create_table "job_suspend_schedules", force: :cascade do |t|
|
101
|
-
t.integer "job_definition_id", limit: 4
|
94
|
+
create_table "job_suspend_schedules", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
95
|
+
t.integer "job_definition_id"
|
102
96
|
t.string "cron", limit: 180
|
103
97
|
t.datetime "created_at", null: false
|
104
98
|
t.datetime "updated_at", null: false
|
99
|
+
t.index ["job_definition_id", "cron"], name: "kuroko2_suspend_schedules_definition_id_cron_idx", unique: true, using: :btree
|
105
100
|
end
|
106
101
|
|
107
|
-
|
108
|
-
|
109
|
-
create_table "logs", force: :cascade do |t|
|
110
|
-
t.integer "job_instance_id", limit: 4
|
102
|
+
create_table "logs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
103
|
+
t.integer "job_instance_id"
|
111
104
|
t.string "level", limit: 10
|
112
105
|
t.text "message", limit: 4294967295
|
113
106
|
t.datetime "created_at"
|
114
107
|
t.datetime "updated_at"
|
108
|
+
t.index ["job_instance_id"], name: "job_instance_id", using: :btree
|
115
109
|
end
|
116
110
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
t.
|
121
|
-
t.
|
122
|
-
t.
|
123
|
-
t.datetime "updated_at", null: false
|
111
|
+
create_table "memory_consumption_logs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
112
|
+
t.integer "job_instance_id"
|
113
|
+
t.integer "value", null: false
|
114
|
+
t.datetime "created_at", null: false
|
115
|
+
t.datetime "updated_at", null: false
|
116
|
+
t.index ["job_instance_id"], name: "index_kuroko2_memory_consumption_logs_on_job_instance_id", using: :btree
|
124
117
|
end
|
125
118
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
t.
|
130
|
-
t.
|
131
|
-
t.
|
132
|
-
t.datetime "updated_at", null: false
|
119
|
+
create_table "memory_expectancies", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
120
|
+
t.integer "expected_value", default: 0, null: false
|
121
|
+
t.integer "job_definition_id"
|
122
|
+
t.datetime "created_at", null: false
|
123
|
+
t.datetime "updated_at", null: false
|
124
|
+
t.index ["job_definition_id"], name: "index_kuroko2_memory_expectancies_on_job_definition_id", using: :btree
|
133
125
|
end
|
134
126
|
|
135
|
-
|
136
|
-
|
137
|
-
create_table "process_signals", force: :cascade do |t|
|
127
|
+
create_table "process_signals", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
138
128
|
t.string "hostname", limit: 180, default: "", null: false
|
139
|
-
t.integer "pid",
|
129
|
+
t.integer "pid", null: false
|
140
130
|
t.integer "number", limit: 1, default: 15, null: false
|
141
131
|
t.datetime "started_at"
|
142
132
|
t.datetime "created_at"
|
143
133
|
t.datetime "updated_at"
|
144
134
|
t.text "message", limit: 65535
|
135
|
+
t.index ["hostname", "started_at"], name: "hostname_started_at", using: :btree
|
145
136
|
end
|
146
137
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
t.integer "user_id", limit: 4, null: false
|
151
|
-
t.integer "job_definition_id", limit: 4, null: false
|
138
|
+
create_table "stars", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
139
|
+
t.integer "user_id", null: false
|
140
|
+
t.integer "job_definition_id", null: false
|
152
141
|
t.datetime "created_at"
|
153
142
|
t.datetime "updated_at"
|
143
|
+
t.index ["user_id", "job_definition_id"], name: "index_kuroko2_stars_on_user_id_and_job_definition_id", unique: true, using: :btree
|
154
144
|
end
|
155
145
|
|
156
|
-
|
157
|
-
|
158
|
-
create_table "tags", force: :cascade do |t|
|
146
|
+
create_table "tags", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
159
147
|
t.string "name", limit: 100, null: false
|
160
148
|
t.datetime "created_at", null: false
|
161
149
|
t.datetime "updated_at", null: false
|
150
|
+
t.index ["name"], name: "index_kuroko2_tags_on_name", unique: true, using: :btree
|
162
151
|
end
|
163
152
|
|
164
|
-
|
165
|
-
|
166
|
-
create_table "ticks", force: :cascade do |t|
|
153
|
+
create_table "ticks", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
167
154
|
t.datetime "at"
|
168
155
|
end
|
169
156
|
|
170
|
-
create_table "tokens", force: :cascade do |t|
|
157
|
+
create_table "tokens", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
171
158
|
t.string "uuid", limit: 36, null: false
|
172
|
-
t.integer "job_definition_id"
|
173
|
-
t.integer "job_definition_version"
|
174
|
-
t.integer "job_instance_id"
|
175
|
-
t.integer "parent_id"
|
159
|
+
t.integer "job_definition_id"
|
160
|
+
t.integer "job_definition_version"
|
161
|
+
t.integer "job_instance_id"
|
162
|
+
t.integer "parent_id"
|
176
163
|
t.text "script", limit: 65535, null: false
|
177
164
|
t.string "path", limit: 180, default: "/", null: false
|
178
|
-
t.integer "status",
|
165
|
+
t.integer "status", default: 0, null: false
|
179
166
|
t.text "message", limit: 65535, null: false
|
180
167
|
t.text "context", limit: 65535, null: false
|
181
168
|
t.datetime "created_at"
|
182
169
|
t.datetime "updated_at"
|
170
|
+
t.index ["parent_id"], name: "parent_id", using: :btree
|
171
|
+
t.index ["status"], name: "status", using: :btree
|
183
172
|
end
|
184
173
|
|
185
|
-
|
186
|
-
add_index "tokens", ["status"], name: "status", using: :btree
|
187
|
-
|
188
|
-
create_table "users", force: :cascade do |t|
|
174
|
+
create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
189
175
|
t.string "provider", limit: 180, default: "google_oauth2", null: false
|
190
176
|
t.string "uid", limit: 180, null: false
|
191
177
|
t.string "name", limit: 180, default: "", null: false
|
@@ -196,22 +182,20 @@ ActiveRecord::Schema.define(version: 25) do
|
|
196
182
|
t.datetime "suspended_at"
|
197
183
|
t.datetime "created_at"
|
198
184
|
t.datetime "updated_at"
|
185
|
+
t.index ["email"], name: "email", unique: true, using: :btree
|
186
|
+
t.index ["uid", "suspended_at"], name: "uid_2", using: :btree
|
187
|
+
t.index ["uid"], name: "uid", unique: true, using: :btree
|
199
188
|
end
|
200
189
|
|
201
|
-
|
202
|
-
add_index "users", ["uid", "suspended_at"], name: "uid_2", using: :btree
|
203
|
-
add_index "users", ["uid"], name: "uid", unique: true, using: :btree
|
204
|
-
|
205
|
-
create_table "workers", force: :cascade do |t|
|
190
|
+
create_table "workers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
206
191
|
t.string "hostname", limit: 180, null: false
|
207
192
|
t.integer "worker_id", limit: 1, null: false
|
208
193
|
t.string "queue", limit: 180, default: "@default", null: false
|
209
194
|
t.boolean "working", default: false, null: false
|
210
|
-
t.integer "execution_id"
|
195
|
+
t.integer "execution_id"
|
211
196
|
t.datetime "created_at"
|
212
197
|
t.datetime "updated_at"
|
198
|
+
t.index ["hostname", "worker_id"], name: "hostname", unique: true, using: :btree
|
213
199
|
end
|
214
200
|
|
215
|
-
add_index "workers", ["hostname", "worker_id"], name: "hostname", unique: true, using: :btree
|
216
|
-
|
217
201
|
end
|
@@ -679,4 +679,1147 @@ FROM information_schema.key_column_usage fk
|
|
679
679
|
WHERE fk.referenced_column_name is not null
|
680
680
|
AND fk.table_schema = 'kuroko2_dummy_development'
|
681
681
|
AND fk.table_name = 'kuroko2_workers'
|
682
|
+
[0m
|
683
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
684
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT GET_LOCK('4015707761482352670', 0);[0m
|
685
|
+
[1m[36mActiveRecord::SchemaMigration Load (15.0ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
686
|
+
Migrating to AddWebhookUrlToJobDefinitions (26)
|
687
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
688
|
+
|
689
|
+
class AddWebhookUrlToJobDefinitions < ActiveRecord::Migration[4.2] (called from require at bin/rails:13)
|
690
|
+
[1m[35m (44.4ms)[0m [1m[35mALTER TABLE `kuroko2_job_definitions` ADD `webhook_url` text[0m
|
691
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
692
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('26')[0m
|
693
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
694
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
695
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
696
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
697
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('4015707761482352670')[0m
|
698
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
699
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_admin_assignments`[0m
|
700
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_executions`[0m
|
701
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_executions'[0m
|
702
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definition_tags`[0m
|
703
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definitions`[0m
|
704
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_definitions'[0m
|
705
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_instances`[0m
|
706
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_instances'[0m
|
707
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_schedules`[0m
|
708
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_schedules'[0m
|
709
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_suspend_schedules`[0m
|
710
|
+
[1m[35m (1.8ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_suspend_schedules'[0m
|
711
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_logs`[0m
|
712
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_logs'[0m
|
713
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_consumption_logs`[0m
|
714
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_expectancies`[0m
|
715
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_process_signals`[0m
|
716
|
+
[1m[35m (1.7ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_process_signals'[0m
|
717
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_stars`[0m
|
718
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tags`[0m
|
719
|
+
[1m[35m (1.6ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tags'[0m
|
720
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_ticks`[0m
|
721
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tokens`[0m
|
722
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tokens'[0m
|
723
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_users`[0m
|
724
|
+
[1m[35m (1.7ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_users'[0m
|
725
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_workers`[0m
|
726
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_workers'[0m
|
727
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
728
|
+
,fk.referenced_column_name as 'primary_key'
|
729
|
+
,fk.column_name as 'column'
|
730
|
+
,fk.constraint_name as 'name'
|
731
|
+
FROM information_schema.key_column_usage fk
|
732
|
+
WHERE fk.referenced_column_name is not null
|
733
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
734
|
+
AND fk.table_name = 'kuroko2_admin_assignments'
|
735
|
+
[0m
|
736
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
737
|
+
,fk.referenced_column_name as 'primary_key'
|
738
|
+
,fk.column_name as 'column'
|
739
|
+
,fk.constraint_name as 'name'
|
740
|
+
FROM information_schema.key_column_usage fk
|
741
|
+
WHERE fk.referenced_column_name is not null
|
742
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
743
|
+
AND fk.table_name = 'kuroko2_executions'
|
744
|
+
[0m
|
745
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
746
|
+
,fk.referenced_column_name as 'primary_key'
|
747
|
+
,fk.column_name as 'column'
|
748
|
+
,fk.constraint_name as 'name'
|
749
|
+
FROM information_schema.key_column_usage fk
|
750
|
+
WHERE fk.referenced_column_name is not null
|
751
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
752
|
+
AND fk.table_name = 'kuroko2_job_definition_tags'
|
753
|
+
[0m
|
754
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
755
|
+
,fk.referenced_column_name as 'primary_key'
|
756
|
+
,fk.column_name as 'column'
|
757
|
+
,fk.constraint_name as 'name'
|
758
|
+
FROM information_schema.key_column_usage fk
|
759
|
+
WHERE fk.referenced_column_name is not null
|
760
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
761
|
+
AND fk.table_name = 'kuroko2_job_definitions'
|
762
|
+
[0m
|
763
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
764
|
+
,fk.referenced_column_name as 'primary_key'
|
765
|
+
,fk.column_name as 'column'
|
766
|
+
,fk.constraint_name as 'name'
|
767
|
+
FROM information_schema.key_column_usage fk
|
768
|
+
WHERE fk.referenced_column_name is not null
|
769
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
770
|
+
AND fk.table_name = 'kuroko2_job_instances'
|
771
|
+
[0m
|
772
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
773
|
+
,fk.referenced_column_name as 'primary_key'
|
774
|
+
,fk.column_name as 'column'
|
775
|
+
,fk.constraint_name as 'name'
|
776
|
+
FROM information_schema.key_column_usage fk
|
777
|
+
WHERE fk.referenced_column_name is not null
|
778
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
779
|
+
AND fk.table_name = 'kuroko2_job_schedules'
|
780
|
+
[0m
|
781
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
782
|
+
,fk.referenced_column_name as 'primary_key'
|
783
|
+
,fk.column_name as 'column'
|
784
|
+
,fk.constraint_name as 'name'
|
785
|
+
FROM information_schema.key_column_usage fk
|
786
|
+
WHERE fk.referenced_column_name is not null
|
787
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
788
|
+
AND fk.table_name = 'kuroko2_job_suspend_schedules'
|
789
|
+
[0m
|
790
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
791
|
+
,fk.referenced_column_name as 'primary_key'
|
792
|
+
,fk.column_name as 'column'
|
793
|
+
,fk.constraint_name as 'name'
|
794
|
+
FROM information_schema.key_column_usage fk
|
795
|
+
WHERE fk.referenced_column_name is not null
|
796
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
797
|
+
AND fk.table_name = 'kuroko2_logs'
|
798
|
+
[0m
|
799
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
800
|
+
,fk.referenced_column_name as 'primary_key'
|
801
|
+
,fk.column_name as 'column'
|
802
|
+
,fk.constraint_name as 'name'
|
803
|
+
FROM information_schema.key_column_usage fk
|
804
|
+
WHERE fk.referenced_column_name is not null
|
805
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
806
|
+
AND fk.table_name = 'kuroko2_memory_consumption_logs'
|
807
|
+
[0m
|
808
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
809
|
+
,fk.referenced_column_name as 'primary_key'
|
810
|
+
,fk.column_name as 'column'
|
811
|
+
,fk.constraint_name as 'name'
|
812
|
+
FROM information_schema.key_column_usage fk
|
813
|
+
WHERE fk.referenced_column_name is not null
|
814
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
815
|
+
AND fk.table_name = 'kuroko2_memory_expectancies'
|
816
|
+
[0m
|
817
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
818
|
+
,fk.referenced_column_name as 'primary_key'
|
819
|
+
,fk.column_name as 'column'
|
820
|
+
,fk.constraint_name as 'name'
|
821
|
+
FROM information_schema.key_column_usage fk
|
822
|
+
WHERE fk.referenced_column_name is not null
|
823
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
824
|
+
AND fk.table_name = 'kuroko2_process_signals'
|
825
|
+
[0m
|
826
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
827
|
+
,fk.referenced_column_name as 'primary_key'
|
828
|
+
,fk.column_name as 'column'
|
829
|
+
,fk.constraint_name as 'name'
|
830
|
+
FROM information_schema.key_column_usage fk
|
831
|
+
WHERE fk.referenced_column_name is not null
|
832
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
833
|
+
AND fk.table_name = 'kuroko2_stars'
|
834
|
+
[0m
|
835
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
836
|
+
,fk.referenced_column_name as 'primary_key'
|
837
|
+
,fk.column_name as 'column'
|
838
|
+
,fk.constraint_name as 'name'
|
839
|
+
FROM information_schema.key_column_usage fk
|
840
|
+
WHERE fk.referenced_column_name is not null
|
841
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
842
|
+
AND fk.table_name = 'kuroko2_tags'
|
843
|
+
[0m
|
844
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
845
|
+
,fk.referenced_column_name as 'primary_key'
|
846
|
+
,fk.column_name as 'column'
|
847
|
+
,fk.constraint_name as 'name'
|
848
|
+
FROM information_schema.key_column_usage fk
|
849
|
+
WHERE fk.referenced_column_name is not null
|
850
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
851
|
+
AND fk.table_name = 'kuroko2_ticks'
|
852
|
+
[0m
|
853
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
854
|
+
,fk.referenced_column_name as 'primary_key'
|
855
|
+
,fk.column_name as 'column'
|
856
|
+
,fk.constraint_name as 'name'
|
857
|
+
FROM information_schema.key_column_usage fk
|
858
|
+
WHERE fk.referenced_column_name is not null
|
859
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
860
|
+
AND fk.table_name = 'kuroko2_tokens'
|
861
|
+
[0m
|
862
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
863
|
+
,fk.referenced_column_name as 'primary_key'
|
864
|
+
,fk.column_name as 'column'
|
865
|
+
,fk.constraint_name as 'name'
|
866
|
+
FROM information_schema.key_column_usage fk
|
867
|
+
WHERE fk.referenced_column_name is not null
|
868
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
869
|
+
AND fk.table_name = 'kuroko2_users'
|
870
|
+
[0m
|
871
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
872
|
+
,fk.referenced_column_name as 'primary_key'
|
873
|
+
,fk.column_name as 'column'
|
874
|
+
,fk.constraint_name as 'name'
|
875
|
+
FROM information_schema.key_column_usage fk
|
876
|
+
WHERE fk.referenced_column_name is not null
|
877
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
878
|
+
AND fk.table_name = 'kuroko2_workers'
|
879
|
+
[0m
|
880
|
+
[1m[35m (13.3ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci PRIMARY KEY) ENGINE=InnoDB[0m
|
881
|
+
[1m[35m (26.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
882
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
883
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT GET_LOCK('4015707761482352670', 0);[0m
|
884
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
885
|
+
Migrating to CreateJobDefinitions (1)
|
886
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
887
|
+
|
888
|
+
class CreateJobDefinitions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
889
|
+
[1m[35m (37.0ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
890
|
+
[1m[35m (23.9ms)[0m [1m[35mCREATE INDEX `name` USING btree ON `kuroko2_job_definitions` (`name`) [0m
|
891
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
892
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('1')[0m
|
893
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
894
|
+
Migrating to CreateJobInstances (2)
|
895
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
896
|
+
|
897
|
+
class CreateJobInstances < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
898
|
+
[1m[35m (40.3ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int 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) ENGINE=InnoDB[0m
|
899
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE INDEX `job_instance_idx` USING btree ON `kuroko2_job_instances` (`finished_at`, `canceled_at`, `job_definition_id`) [0m
|
900
|
+
[1m[35m (29.6ms)[0m [1m[35mCREATE INDEX `index_kuroko2_job_instances_on_job_definition_id` USING btree ON `kuroko2_job_instances` (`job_definition_id`) [0m
|
901
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
902
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('2')[0m
|
903
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
904
|
+
Migrating to CreateJobSchedules (3)
|
905
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
906
|
+
|
907
|
+
class CreateJobSchedules < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
908
|
+
[1m[35m (48.5ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
909
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` USING btree ON `kuroko2_job_schedules` (`job_definition_id`, `cron`) [0m
|
910
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
911
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('3')[0m
|
912
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
913
|
+
Migrating to CreateTicks (4)
|
914
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
915
|
+
|
916
|
+
class CreateTicks < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
917
|
+
[1m[35m (31.0ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB[0m
|
918
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
919
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('4')[0m
|
920
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
921
|
+
Migrating to CreateLogs (5)
|
922
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
923
|
+
|
924
|
+
class CreateLogs < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
925
|
+
[1m[35m (28.4ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
926
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX `job_instance_id` USING btree ON `kuroko2_logs` (`job_instance_id`) [0m
|
927
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
928
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('5')[0m
|
929
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
930
|
+
Migrating to CreateTokens (6)
|
931
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
932
|
+
|
933
|
+
class CreateTokens < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
934
|
+
[1m[35m (27.3ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int 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) ENGINE=InnoDB[0m
|
935
|
+
[1m[35m (14.6ms)[0m [1m[35mCREATE INDEX `parent_id` USING btree ON `kuroko2_tokens` (`parent_id`) [0m
|
936
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE INDEX `status` USING btree ON `kuroko2_tokens` (`status`) [0m
|
937
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
938
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('6')[0m
|
939
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
940
|
+
Migrating to CreateExecutions (7)
|
941
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
942
|
+
|
943
|
+
class CreateExecutions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
944
|
+
[1m[35m (43.1ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int 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` tinyint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
945
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` USING btree ON `kuroko2_executions` (`job_definition_id`, `token_id`) [0m
|
946
|
+
[1m[35m (36.9ms)[0m [1m[35mCREATE INDEX `started_at` USING btree ON `kuroko2_executions` (`started_at`) [0m
|
947
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
948
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('7')[0m
|
949
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
950
|
+
Migrating to CreateProcessSignals (8)
|
951
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
952
|
+
|
953
|
+
class CreateProcessSignals < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
954
|
+
[1m[35m (46.4ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int 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) ENGINE=InnoDB[0m
|
955
|
+
[1m[35m (13.7ms)[0m [1m[35mCREATE INDEX `hostname_started_at` USING btree ON `kuroko2_process_signals` (`hostname`, `started_at`) [0m
|
956
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
957
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('8')[0m
|
958
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
959
|
+
Migrating to CreateUsers (9)
|
960
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
961
|
+
|
962
|
+
class CreateUsers < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
963
|
+
[1m[35m (28.7ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int 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) ENGINE=InnoDB[0m
|
964
|
+
[1m[35m (14.2ms)[0m [1m[35mCREATE UNIQUE INDEX `email` USING btree ON `kuroko2_users` (`email`) [0m
|
965
|
+
[1m[35m (35.0ms)[0m [1m[35mCREATE INDEX `uid_2` USING btree ON `kuroko2_users` (`uid`, `suspended_at`) [0m
|
966
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE UNIQUE INDEX `uid` USING btree ON `kuroko2_users` (`uid`) [0m
|
967
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
968
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('9')[0m
|
969
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
970
|
+
Migrating to CreateAdminAssignments (10)
|
971
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
972
|
+
|
973
|
+
class CreateAdminAssignments < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
974
|
+
[1m[35m (29.1ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
975
|
+
[1m[35m (13.5ms)[0m [1m[35mCREATE UNIQUE INDEX `user_id` USING btree ON `kuroko2_admin_assignments` (`user_id`, `job_definition_id`) [0m
|
976
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
977
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('10')[0m
|
978
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
979
|
+
Migrating to CreateStars (11)
|
980
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
981
|
+
|
982
|
+
class CreateStars < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
983
|
+
[1m[35m (33.4ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
984
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` USING btree ON `kuroko2_stars` (`user_id`, `job_definition_id`) [0m
|
985
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
986
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('11')[0m
|
987
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
988
|
+
Migrating to CreateWorkers (12)
|
989
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
990
|
+
|
991
|
+
class CreateWorkers < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
992
|
+
[1m[35m (28.3ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int 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) ENGINE=InnoDB[0m
|
993
|
+
[1m[35m (15.4ms)[0m [1m[35mCREATE UNIQUE INDEX `hostname` USING btree ON `kuroko2_workers` (`hostname`, `worker_id`) [0m
|
994
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
995
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('12')[0m
|
996
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
997
|
+
Migrating to CreateJobDefinitionTags (18)
|
998
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
999
|
+
|
1000
|
+
class CreateJobDefinitionTags < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1001
|
+
[1m[35m (35.9ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int 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) ENGINE=InnoDB[0m
|
1002
|
+
[1m[35m (15.6ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_definition_tag_idx` USING btree ON `kuroko2_job_definition_tags` (`job_definition_id`, `tag_id`) [0m
|
1003
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE INDEX `job_definition_tags_tag_id` USING btree ON `kuroko2_job_definition_tags` (`tag_id`) [0m
|
1004
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1005
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('18')[0m
|
1006
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1007
|
+
Migrating to CreateTags (19)
|
1008
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1009
|
+
|
1010
|
+
class CreateTags < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1011
|
+
[1m[35m (25.9ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1012
|
+
[1m[35m (32.4ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_tags_on_name` USING btree ON `kuroko2_tags` (`name`) [0m
|
1013
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1014
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('19')[0m
|
1015
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1016
|
+
Migrating to CreateMemoryExpectancies (21)
|
1017
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1018
|
+
|
1019
|
+
class CreateMemoryExpectancies < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1020
|
+
[1m[35m (37.1ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int 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[0m
|
1021
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int 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[0m
|
1022
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1023
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('21')[0m
|
1024
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1025
|
+
Migrating to CreateJobSuspendSchedules (25)
|
1026
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1027
|
+
|
1028
|
+
class CreateJobSuspendSchedules < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1029
|
+
[1m[35m (29.1ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1030
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` USING btree ON `kuroko2_job_suspend_schedules` (`job_definition_id`, `cron`) [0m
|
1031
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1032
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('25')[0m
|
1033
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1034
|
+
Migrating to AddWebhookUrlToJobDefinitions (26)
|
1035
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1036
|
+
|
1037
|
+
class AddWebhookUrlToJobDefinitions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1038
|
+
[1m[35m (36.8ms)[0m [1m[35mALTER TABLE `kuroko2_job_definitions` ADD `webhook_url` text[0m
|
1039
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1040
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('26')[0m
|
1041
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1042
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1043
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1044
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2016-12-06 09:27:55', '2016-12-06 09:27:55')[0m
|
1045
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1046
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('4015707761482352670')[0m
|
1047
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
1048
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_admin_assignments`[0m
|
1049
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_executions`[0m
|
1050
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_executions'[0m
|
1051
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definition_tags`[0m
|
1052
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definitions`[0m
|
1053
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_definitions'[0m
|
1054
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_instances`[0m
|
1055
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_instances'[0m
|
1056
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_schedules`[0m
|
1057
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_schedules'[0m
|
1058
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_suspend_schedules`[0m
|
1059
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_suspend_schedules'[0m
|
1060
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_logs`[0m
|
1061
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_logs'[0m
|
1062
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_consumption_logs`[0m
|
1063
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_expectancies`[0m
|
1064
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_process_signals`[0m
|
1065
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_process_signals'[0m
|
1066
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_stars`[0m
|
1067
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tags`[0m
|
1068
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tags'[0m
|
1069
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_ticks`[0m
|
1070
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tokens`[0m
|
1071
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tokens'[0m
|
1072
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_users`[0m
|
1073
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_users'[0m
|
1074
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_workers`[0m
|
1075
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_workers'[0m
|
1076
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1077
|
+
,fk.referenced_column_name as 'primary_key'
|
1078
|
+
,fk.column_name as 'column'
|
1079
|
+
,fk.constraint_name as 'name'
|
1080
|
+
FROM information_schema.key_column_usage fk
|
1081
|
+
WHERE fk.referenced_column_name is not null
|
1082
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1083
|
+
AND fk.table_name = 'kuroko2_admin_assignments'
|
1084
|
+
[0m
|
1085
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1086
|
+
,fk.referenced_column_name as 'primary_key'
|
1087
|
+
,fk.column_name as 'column'
|
1088
|
+
,fk.constraint_name as 'name'
|
1089
|
+
FROM information_schema.key_column_usage fk
|
1090
|
+
WHERE fk.referenced_column_name is not null
|
1091
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1092
|
+
AND fk.table_name = 'kuroko2_executions'
|
1093
|
+
[0m
|
1094
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1095
|
+
,fk.referenced_column_name as 'primary_key'
|
1096
|
+
,fk.column_name as 'column'
|
1097
|
+
,fk.constraint_name as 'name'
|
1098
|
+
FROM information_schema.key_column_usage fk
|
1099
|
+
WHERE fk.referenced_column_name is not null
|
1100
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1101
|
+
AND fk.table_name = 'kuroko2_job_definition_tags'
|
1102
|
+
[0m
|
1103
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1104
|
+
,fk.referenced_column_name as 'primary_key'
|
1105
|
+
,fk.column_name as 'column'
|
1106
|
+
,fk.constraint_name as 'name'
|
1107
|
+
FROM information_schema.key_column_usage fk
|
1108
|
+
WHERE fk.referenced_column_name is not null
|
1109
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1110
|
+
AND fk.table_name = 'kuroko2_job_definitions'
|
1111
|
+
[0m
|
1112
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1113
|
+
,fk.referenced_column_name as 'primary_key'
|
1114
|
+
,fk.column_name as 'column'
|
1115
|
+
,fk.constraint_name as 'name'
|
1116
|
+
FROM information_schema.key_column_usage fk
|
1117
|
+
WHERE fk.referenced_column_name is not null
|
1118
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1119
|
+
AND fk.table_name = 'kuroko2_job_instances'
|
1120
|
+
[0m
|
1121
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1122
|
+
,fk.referenced_column_name as 'primary_key'
|
1123
|
+
,fk.column_name as 'column'
|
1124
|
+
,fk.constraint_name as 'name'
|
1125
|
+
FROM information_schema.key_column_usage fk
|
1126
|
+
WHERE fk.referenced_column_name is not null
|
1127
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1128
|
+
AND fk.table_name = 'kuroko2_job_schedules'
|
1129
|
+
[0m
|
1130
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1131
|
+
,fk.referenced_column_name as 'primary_key'
|
1132
|
+
,fk.column_name as 'column'
|
1133
|
+
,fk.constraint_name as 'name'
|
1134
|
+
FROM information_schema.key_column_usage fk
|
1135
|
+
WHERE fk.referenced_column_name is not null
|
1136
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1137
|
+
AND fk.table_name = 'kuroko2_job_suspend_schedules'
|
1138
|
+
[0m
|
1139
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1140
|
+
,fk.referenced_column_name as 'primary_key'
|
1141
|
+
,fk.column_name as 'column'
|
1142
|
+
,fk.constraint_name as 'name'
|
1143
|
+
FROM information_schema.key_column_usage fk
|
1144
|
+
WHERE fk.referenced_column_name is not null
|
1145
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1146
|
+
AND fk.table_name = 'kuroko2_logs'
|
1147
|
+
[0m
|
1148
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1149
|
+
,fk.referenced_column_name as 'primary_key'
|
1150
|
+
,fk.column_name as 'column'
|
1151
|
+
,fk.constraint_name as 'name'
|
1152
|
+
FROM information_schema.key_column_usage fk
|
1153
|
+
WHERE fk.referenced_column_name is not null
|
1154
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1155
|
+
AND fk.table_name = 'kuroko2_memory_consumption_logs'
|
1156
|
+
[0m
|
1157
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1158
|
+
,fk.referenced_column_name as 'primary_key'
|
1159
|
+
,fk.column_name as 'column'
|
1160
|
+
,fk.constraint_name as 'name'
|
1161
|
+
FROM information_schema.key_column_usage fk
|
1162
|
+
WHERE fk.referenced_column_name is not null
|
1163
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1164
|
+
AND fk.table_name = 'kuroko2_memory_expectancies'
|
1165
|
+
[0m
|
1166
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1167
|
+
,fk.referenced_column_name as 'primary_key'
|
1168
|
+
,fk.column_name as 'column'
|
1169
|
+
,fk.constraint_name as 'name'
|
1170
|
+
FROM information_schema.key_column_usage fk
|
1171
|
+
WHERE fk.referenced_column_name is not null
|
1172
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1173
|
+
AND fk.table_name = 'kuroko2_process_signals'
|
1174
|
+
[0m
|
1175
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1176
|
+
,fk.referenced_column_name as 'primary_key'
|
1177
|
+
,fk.column_name as 'column'
|
1178
|
+
,fk.constraint_name as 'name'
|
1179
|
+
FROM information_schema.key_column_usage fk
|
1180
|
+
WHERE fk.referenced_column_name is not null
|
1181
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1182
|
+
AND fk.table_name = 'kuroko2_stars'
|
1183
|
+
[0m
|
1184
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1185
|
+
,fk.referenced_column_name as 'primary_key'
|
1186
|
+
,fk.column_name as 'column'
|
1187
|
+
,fk.constraint_name as 'name'
|
1188
|
+
FROM information_schema.key_column_usage fk
|
1189
|
+
WHERE fk.referenced_column_name is not null
|
1190
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1191
|
+
AND fk.table_name = 'kuroko2_tags'
|
1192
|
+
[0m
|
1193
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1194
|
+
,fk.referenced_column_name as 'primary_key'
|
1195
|
+
,fk.column_name as 'column'
|
1196
|
+
,fk.constraint_name as 'name'
|
1197
|
+
FROM information_schema.key_column_usage fk
|
1198
|
+
WHERE fk.referenced_column_name is not null
|
1199
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1200
|
+
AND fk.table_name = 'kuroko2_ticks'
|
1201
|
+
[0m
|
1202
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1203
|
+
,fk.referenced_column_name as 'primary_key'
|
1204
|
+
,fk.column_name as 'column'
|
1205
|
+
,fk.constraint_name as 'name'
|
1206
|
+
FROM information_schema.key_column_usage fk
|
1207
|
+
WHERE fk.referenced_column_name is not null
|
1208
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1209
|
+
AND fk.table_name = 'kuroko2_tokens'
|
1210
|
+
[0m
|
1211
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1212
|
+
,fk.referenced_column_name as 'primary_key'
|
1213
|
+
,fk.column_name as 'column'
|
1214
|
+
,fk.constraint_name as 'name'
|
1215
|
+
FROM information_schema.key_column_usage fk
|
1216
|
+
WHERE fk.referenced_column_name is not null
|
1217
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1218
|
+
AND fk.table_name = 'kuroko2_users'
|
1219
|
+
[0m
|
1220
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1221
|
+
,fk.referenced_column_name as 'primary_key'
|
1222
|
+
,fk.column_name as 'column'
|
1223
|
+
,fk.constraint_name as 'name'
|
1224
|
+
FROM information_schema.key_column_usage fk
|
1225
|
+
WHERE fk.referenced_column_name is not null
|
1226
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1227
|
+
AND fk.table_name = 'kuroko2_workers'
|
1228
|
+
[0m
|
1229
|
+
[1m[35m (70.1ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_development`[0m
|
1230
|
+
[1m[35m (52.7ms)[0m [1m[35mDROP DATABASE IF EXISTS `kuroko2_dummy_test`[0m
|
1231
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_development` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
1232
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `kuroko2_dummy_test` DEFAULT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_general_ci`[0m
|
1233
|
+
[1m[35m (28.4ms)[0m [1m[35mCREATE TABLE `admin_assignments` (`id` int 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` USING btree (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1234
|
+
[1m[35m (11.0ms)[0m [1m[35mCREATE TABLE `executions` (`id` int 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` tinyint, `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` USING btree (`job_definition_id`, `token_id`), INDEX `started_at` USING btree (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1235
|
+
[1m[35m (30.6ms)[0m [1m[35mCREATE TABLE `job_definition_tags` (`id` int 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` USING btree (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` USING btree (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1236
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE `job_definitions` (`id` int 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` USING btree (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1237
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `job_instances` (`id` int 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, INDEX `job_instance_idx` USING btree (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` USING btree (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1238
|
+
[1m[35m (33.8ms)[0m [1m[35mCREATE TABLE `job_schedules` (`id` int 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` USING btree (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1239
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `job_suspend_schedules` (`id` int 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` USING btree (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1240
|
+
[1m[35m (56.2ms)[0m [1m[35mCREATE TABLE `logs` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` USING btree (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1241
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE `memory_consumption_logs` (`id` int 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` USING btree (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1242
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `memory_expectancies` (`id` int 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` USING btree (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1243
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE `process_signals` (`id` int 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, INDEX `hostname_started_at` USING btree (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1244
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `stars` (`id` int 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` USING btree (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1245
|
+
[1m[35m (33.8ms)[0m [1m[35mCREATE TABLE `tags` (`id` int 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` USING btree (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1246
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `ticks` (`id` int AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1247
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE `tokens` (`id` int 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` USING btree (`parent_id`), INDEX `status` USING btree (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1248
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE `users` (`id` int 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, UNIQUE INDEX `email` USING btree (`email`), INDEX `uid_2` USING btree (`uid`, `suspended_at`), UNIQUE INDEX `uid` USING btree (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1249
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `workers` (`id` int 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` USING btree (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1250
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci PRIMARY KEY) ENGINE=InnoDB[0m
|
1251
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT version FROM `schema_migrations`[0m
|
1252
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES ('26')[0m
|
1253
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('10'), ('11'), ('12'), ('18'), ('19'), ('21'), ('25');
|
1254
|
+
|
1255
|
+
[0m
|
1256
|
+
[1m[35m (40.6ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1257
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1258
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1259
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2016-12-06 09:28:39', '2016-12-06 09:28:39')[0m
|
1260
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
1261
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1262
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1263
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1264
|
+
[1m[35m (25.6ms)[0m [1m[35mCREATE TABLE `admin_assignments` (`id` int 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` USING btree (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1265
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE `executions` (`id` int 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` tinyint, `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` USING btree (`job_definition_id`, `token_id`), INDEX `started_at` USING btree (`started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1266
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `job_definition_tags` (`id` int 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` USING btree (`job_definition_id`, `tag_id`), INDEX `job_definition_tags_tag_id` USING btree (`tag_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1267
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE `job_definitions` (`id` int 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` USING btree (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1268
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `job_instances` (`id` int 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, INDEX `job_instance_idx` USING btree (`finished_at`, `canceled_at`, `job_definition_id`), INDEX `index_kuroko2_job_instances_on_job_definition_id` USING btree (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1269
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE `job_schedules` (`id` int 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` USING btree (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1270
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE `job_suspend_schedules` (`id` int 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` USING btree (`job_definition_id`, `cron`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1271
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `logs` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime, INDEX `job_instance_id` USING btree (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1272
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `memory_consumption_logs` (`id` int 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` USING btree (`job_instance_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1273
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE TABLE `memory_expectancies` (`id` int 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` USING btree (`job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1274
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE `process_signals` (`id` int 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, INDEX `hostname_started_at` USING btree (`hostname`, `started_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1275
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE `stars` (`id` int 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` USING btree (`user_id`, `job_definition_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1276
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE `tags` (`id` int 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` USING btree (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1277
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE `ticks` (`id` int AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1278
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `tokens` (`id` int 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` USING btree (`parent_id`), INDEX `status` USING btree (`status`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1279
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE `users` (`id` int 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, UNIQUE INDEX `email` USING btree (`email`), INDEX `uid_2` USING btree (`uid`, `suspended_at`), UNIQUE INDEX `uid` USING btree (`uid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1280
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE `workers` (`id` int 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` USING btree (`hostname`, `worker_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4[0m
|
1281
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci PRIMARY KEY) ENGINE=InnoDB[0m
|
1282
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT version FROM `schema_migrations`[0m
|
1283
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES ('26')[0m
|
1284
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('10'), ('11'), ('12'), ('18'), ('19'), ('21'), ('25');
|
1285
|
+
|
1286
|
+
[0m
|
1287
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1288
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1289
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1290
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2016-12-06 09:28:39', '2016-12-06 09:28:39')[0m
|
1291
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1292
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1293
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1294
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1295
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1296
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE TABLE `kuroko2_schema_migrations` (`version` varchar(255) COLLATE utf8_general_ci PRIMARY KEY) ENGINE=InnoDB[0m
|
1297
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_ar_internal_metadata` (`key` varchar(255) COLLATE utf8_general_ci PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1298
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT DATABASE() as db[0m
|
1299
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT GET_LOCK('4015707761482352670', 0);[0m
|
1300
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
1301
|
+
Migrating to CreateJobDefinitions (1)
|
1302
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1303
|
+
|
1304
|
+
class CreateJobDefinitions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1305
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definitions` (`id` int AUTO_INCREMENT PRIMARY KEY, `version` int DEFAULT 0 NOT NULL, `name` varchar(180) NOT NULL, `description` text NOT NULL, `script` text NOT NULL, `suspended` tinyint(1) DEFAULT 0 NOT NULL, `prevent_multi` int DEFAULT 1 NOT NULL, `notify_cancellation` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_room` varchar(180) DEFAULT '' NOT NULL, `hipchat_notify_finished` tinyint(1) DEFAULT 1 NOT NULL, `hipchat_additional_text` varchar(180), `slack_channel` varchar(180) DEFAULT '' NOT NULL, `api_allowed` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1306
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE INDEX `name` USING btree ON `kuroko2_job_definitions` (`name`) [0m
|
1307
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1308
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('1')[0m
|
1309
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1310
|
+
Migrating to CreateJobInstances (2)
|
1311
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1312
|
+
|
1313
|
+
class CreateJobInstances < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1314
|
+
[1m[35m (10.7ms)[0m [1m[35mCREATE TABLE `kuroko2_job_instances` (`id` int 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) ENGINE=InnoDB[0m
|
1315
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE INDEX `job_instance_idx` USING btree ON `kuroko2_job_instances` (`finished_at`, `canceled_at`, `job_definition_id`) [0m
|
1316
|
+
[1m[35m (14.4ms)[0m [1m[35mCREATE INDEX `index_kuroko2_job_instances_on_job_definition_id` USING btree ON `kuroko2_job_instances` (`job_definition_id`) [0m
|
1317
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1318
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('2')[0m
|
1319
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1320
|
+
Migrating to CreateJobSchedules (3)
|
1321
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1322
|
+
|
1323
|
+
class CreateJobSchedules < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1324
|
+
[1m[35m (15.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_schedules` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1325
|
+
[1m[35m (34.6ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_schedules_definition_id_cron_idx` USING btree ON `kuroko2_job_schedules` (`job_definition_id`, `cron`) [0m
|
1326
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1327
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('3')[0m
|
1328
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1329
|
+
Migrating to CreateTicks (4)
|
1330
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1331
|
+
|
1332
|
+
class CreateTicks < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1333
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE `kuroko2_ticks` (`id` int AUTO_INCREMENT PRIMARY KEY, `at` datetime) ENGINE=InnoDB[0m
|
1334
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1335
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('4')[0m
|
1336
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1337
|
+
Migrating to CreateLogs (5)
|
1338
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1339
|
+
|
1340
|
+
class CreateLogs < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1341
|
+
[1m[35m (35.2ms)[0m [1m[35mCREATE TABLE `kuroko2_logs` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_instance_id` int, `level` varchar(10), `message` longtext, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1342
|
+
[1m[35m (12.4ms)[0m [1m[35mCREATE INDEX `job_instance_id` USING btree ON `kuroko2_logs` (`job_instance_id`) [0m
|
1343
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1344
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('5')[0m
|
1345
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1346
|
+
Migrating to CreateTokens (6)
|
1347
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1348
|
+
|
1349
|
+
class CreateTokens < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1350
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE `kuroko2_tokens` (`id` int 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) ENGINE=InnoDB[0m
|
1351
|
+
[1m[35m (12.4ms)[0m [1m[35mCREATE INDEX `parent_id` USING btree ON `kuroko2_tokens` (`parent_id`) [0m
|
1352
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE INDEX `status` USING btree ON `kuroko2_tokens` (`status`) [0m
|
1353
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1354
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('6')[0m
|
1355
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1356
|
+
Migrating to CreateExecutions (7)
|
1357
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1358
|
+
|
1359
|
+
class CreateExecutions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1360
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE `kuroko2_executions` (`id` int 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` tinyint, `term_signal` tinyint, `started_at` datetime, `finished_at` datetime, `mailed_at` datetime, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1361
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_executions_on_job_definition_id_and_token_id` USING btree ON `kuroko2_executions` (`job_definition_id`, `token_id`) [0m
|
1362
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE INDEX `started_at` USING btree ON `kuroko2_executions` (`started_at`) [0m
|
1363
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1364
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('7')[0m
|
1365
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1366
|
+
Migrating to CreateProcessSignals (8)
|
1367
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1368
|
+
|
1369
|
+
class CreateProcessSignals < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1370
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE `kuroko2_process_signals` (`id` int 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) ENGINE=InnoDB[0m
|
1371
|
+
[1m[35m (12.6ms)[0m [1m[35mCREATE INDEX `hostname_started_at` USING btree ON `kuroko2_process_signals` (`hostname`, `started_at`) [0m
|
1372
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1373
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('8')[0m
|
1374
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1375
|
+
Migrating to CreateUsers (9)
|
1376
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1377
|
+
|
1378
|
+
class CreateUsers < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1379
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE `kuroko2_users` (`id` int 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) ENGINE=InnoDB[0m
|
1380
|
+
[1m[35m (14.0ms)[0m [1m[35mCREATE UNIQUE INDEX `email` USING btree ON `kuroko2_users` (`email`) [0m
|
1381
|
+
[1m[35m (10.7ms)[0m [1m[35mCREATE INDEX `uid_2` USING btree ON `kuroko2_users` (`uid`, `suspended_at`) [0m
|
1382
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE UNIQUE INDEX `uid` USING btree ON `kuroko2_users` (`uid`) [0m
|
1383
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1384
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('9')[0m
|
1385
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1386
|
+
Migrating to CreateAdminAssignments (10)
|
1387
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1388
|
+
|
1389
|
+
class CreateAdminAssignments < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1390
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE `kuroko2_admin_assignments` (`id` int AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1391
|
+
[1m[35m (14.1ms)[0m [1m[35mCREATE UNIQUE INDEX `user_id` USING btree ON `kuroko2_admin_assignments` (`user_id`, `job_definition_id`) [0m
|
1392
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1393
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('10')[0m
|
1394
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1395
|
+
Migrating to CreateStars (11)
|
1396
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1397
|
+
|
1398
|
+
class CreateStars < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1399
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE `kuroko2_stars` (`id` int AUTO_INCREMENT PRIMARY KEY, `user_id` int NOT NULL, `job_definition_id` int NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
1400
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_stars_on_user_id_and_job_definition_id` USING btree ON `kuroko2_stars` (`user_id`, `job_definition_id`) [0m
|
1401
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1402
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('11')[0m
|
1403
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1404
|
+
Migrating to CreateWorkers (12)
|
1405
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1406
|
+
|
1407
|
+
class CreateWorkers < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1408
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE `kuroko2_workers` (`id` int 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) ENGINE=InnoDB[0m
|
1409
|
+
[1m[35m (13.4ms)[0m [1m[35mCREATE UNIQUE INDEX `hostname` USING btree ON `kuroko2_workers` (`hostname`, `worker_id`) [0m
|
1410
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1411
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('12')[0m
|
1412
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1413
|
+
Migrating to CreateJobDefinitionTags (18)
|
1414
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1415
|
+
|
1416
|
+
class CreateJobDefinitionTags < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1417
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE `kuroko2_job_definition_tags` (`id` int 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) ENGINE=InnoDB[0m
|
1418
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_definition_tag_idx` USING btree ON `kuroko2_job_definition_tags` (`job_definition_id`, `tag_id`) [0m
|
1419
|
+
[1m[35m (10.9ms)[0m [1m[35mCREATE INDEX `job_definition_tags_tag_id` USING btree ON `kuroko2_job_definition_tags` (`tag_id`) [0m
|
1420
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1421
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('18')[0m
|
1422
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1423
|
+
Migrating to CreateTags (19)
|
1424
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1425
|
+
|
1426
|
+
class CreateTags < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1427
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE `kuroko2_tags` (`id` int AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1428
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE UNIQUE INDEX `index_kuroko2_tags_on_name` USING btree ON `kuroko2_tags` (`name`) [0m
|
1429
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1430
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('19')[0m
|
1431
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1432
|
+
Migrating to CreateMemoryExpectancies (21)
|
1433
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1434
|
+
|
1435
|
+
class CreateMemoryExpectancies < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1436
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_expectancies` (`id` int 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[0m
|
1437
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE `kuroko2_memory_consumption_logs` (`id` int 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[0m
|
1438
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1439
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('21')[0m
|
1440
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1441
|
+
Migrating to CreateJobSuspendSchedules (25)
|
1442
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1443
|
+
|
1444
|
+
class CreateJobSuspendSchedules < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1445
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `kuroko2_job_suspend_schedules` (`id` int AUTO_INCREMENT PRIMARY KEY, `job_definition_id` int, `cron` varchar(180), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
1446
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE UNIQUE INDEX `kuroko2_suspend_schedules_definition_id_cron_idx` USING btree ON `kuroko2_job_suspend_schedules` (`job_definition_id`, `cron`) [0m
|
1447
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1448
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('25')[0m
|
1449
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1450
|
+
Migrating to AddWebhookUrlToJobDefinitions (26)
|
1451
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
1452
|
+
|
1453
|
+
class AddWebhookUrlToJobDefinitions < ActiveRecord::Migration[4.2] (called from load at /Users/eisuke-oishi/.rbenv/versions/2.3/bin/rake:23)
|
1454
|
+
[1m[35m (19.2ms)[0m [1m[35mALTER TABLE `kuroko2_job_definitions` ADD `webhook_url` text[0m
|
1455
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1456
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_schema_migrations` (`version`) VALUES ('26')[0m
|
1457
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1458
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `kuroko2_ar_internal_metadata`.* FROM `kuroko2_ar_internal_metadata` WHERE `kuroko2_ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
1459
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1460
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO `kuroko2_ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2016-12-06 09:29:01', '2016-12-06 09:29:01')[0m
|
1461
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1462
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('4015707761482352670')[0m
|
1463
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT `kuroko2_schema_migrations`.* FROM `kuroko2_schema_migrations`[0m
|
1464
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `admin_assignments`[0m
|
1465
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `executions`[0m
|
1466
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'executions'[0m
|
1467
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `job_definition_tags`[0m
|
1468
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `job_definitions`[0m
|
1469
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'job_definitions'[0m
|
1470
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `job_instances`[0m
|
1471
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'job_instances'[0m
|
1472
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `job_schedules`[0m
|
1473
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'job_schedules'[0m
|
1474
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `job_suspend_schedules`[0m
|
1475
|
+
[1m[35m (0.5ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'job_suspend_schedules'[0m
|
1476
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_admin_assignments`[0m
|
1477
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_executions`[0m
|
1478
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_executions'[0m
|
1479
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definition_tags`[0m
|
1480
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_definitions`[0m
|
1481
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_definitions'[0m
|
1482
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_instances`[0m
|
1483
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_instances'[0m
|
1484
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_schedules`[0m
|
1485
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_schedules'[0m
|
1486
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_job_suspend_schedules`[0m
|
1487
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_job_suspend_schedules'[0m
|
1488
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_logs`[0m
|
1489
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_logs'[0m
|
1490
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_consumption_logs`[0m
|
1491
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_memory_expectancies`[0m
|
1492
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_process_signals`[0m
|
1493
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_process_signals'[0m
|
1494
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_stars`[0m
|
1495
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tags`[0m
|
1496
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tags'[0m
|
1497
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_ticks`[0m
|
1498
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_tokens`[0m
|
1499
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_tokens'[0m
|
1500
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_users`[0m
|
1501
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_users'[0m
|
1502
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `kuroko2_workers`[0m
|
1503
|
+
[1m[35m (0.4ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'kuroko2_workers'[0m
|
1504
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `logs`[0m
|
1505
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'logs'[0m
|
1506
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `memory_consumption_logs`[0m
|
1507
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `memory_expectancies`[0m
|
1508
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW CREATE TABLE `process_signals`[0m
|
1509
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'process_signals'[0m
|
1510
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `stars`[0m
|
1511
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `tags`[0m
|
1512
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'tags'[0m
|
1513
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `ticks`[0m
|
1514
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `tokens`[0m
|
1515
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'tokens'[0m
|
1516
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `users`[0m
|
1517
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'users'[0m
|
1518
|
+
[1m[35m (0.2ms)[0m [1m[35mSHOW CREATE TABLE `workers`[0m
|
1519
|
+
[1m[35m (0.3ms)[0m [1m[35mSHOW TABLE STATUS LIKE 'workers'[0m
|
1520
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1521
|
+
,fk.referenced_column_name as 'primary_key'
|
1522
|
+
,fk.column_name as 'column'
|
1523
|
+
,fk.constraint_name as 'name'
|
1524
|
+
FROM information_schema.key_column_usage fk
|
1525
|
+
WHERE fk.referenced_column_name is not null
|
1526
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1527
|
+
AND fk.table_name = 'admin_assignments'
|
1528
|
+
[0m
|
1529
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1530
|
+
,fk.referenced_column_name as 'primary_key'
|
1531
|
+
,fk.column_name as 'column'
|
1532
|
+
,fk.constraint_name as 'name'
|
1533
|
+
FROM information_schema.key_column_usage fk
|
1534
|
+
WHERE fk.referenced_column_name is not null
|
1535
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1536
|
+
AND fk.table_name = 'executions'
|
1537
|
+
[0m
|
1538
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1539
|
+
,fk.referenced_column_name as 'primary_key'
|
1540
|
+
,fk.column_name as 'column'
|
1541
|
+
,fk.constraint_name as 'name'
|
1542
|
+
FROM information_schema.key_column_usage fk
|
1543
|
+
WHERE fk.referenced_column_name is not null
|
1544
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1545
|
+
AND fk.table_name = 'job_definition_tags'
|
1546
|
+
[0m
|
1547
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1548
|
+
,fk.referenced_column_name as 'primary_key'
|
1549
|
+
,fk.column_name as 'column'
|
1550
|
+
,fk.constraint_name as 'name'
|
1551
|
+
FROM information_schema.key_column_usage fk
|
1552
|
+
WHERE fk.referenced_column_name is not null
|
1553
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1554
|
+
AND fk.table_name = 'job_definitions'
|
1555
|
+
[0m
|
1556
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1557
|
+
,fk.referenced_column_name as 'primary_key'
|
1558
|
+
,fk.column_name as 'column'
|
1559
|
+
,fk.constraint_name as 'name'
|
1560
|
+
FROM information_schema.key_column_usage fk
|
1561
|
+
WHERE fk.referenced_column_name is not null
|
1562
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1563
|
+
AND fk.table_name = 'job_instances'
|
1564
|
+
[0m
|
1565
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1566
|
+
,fk.referenced_column_name as 'primary_key'
|
1567
|
+
,fk.column_name as 'column'
|
1568
|
+
,fk.constraint_name as 'name'
|
1569
|
+
FROM information_schema.key_column_usage fk
|
1570
|
+
WHERE fk.referenced_column_name is not null
|
1571
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1572
|
+
AND fk.table_name = 'job_schedules'
|
1573
|
+
[0m
|
1574
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1575
|
+
,fk.referenced_column_name as 'primary_key'
|
1576
|
+
,fk.column_name as 'column'
|
1577
|
+
,fk.constraint_name as 'name'
|
1578
|
+
FROM information_schema.key_column_usage fk
|
1579
|
+
WHERE fk.referenced_column_name is not null
|
1580
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1581
|
+
AND fk.table_name = 'job_suspend_schedules'
|
1582
|
+
[0m
|
1583
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1584
|
+
,fk.referenced_column_name as 'primary_key'
|
1585
|
+
,fk.column_name as 'column'
|
1586
|
+
,fk.constraint_name as 'name'
|
1587
|
+
FROM information_schema.key_column_usage fk
|
1588
|
+
WHERE fk.referenced_column_name is not null
|
1589
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1590
|
+
AND fk.table_name = 'kuroko2_admin_assignments'
|
1591
|
+
[0m
|
1592
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1593
|
+
,fk.referenced_column_name as 'primary_key'
|
1594
|
+
,fk.column_name as 'column'
|
1595
|
+
,fk.constraint_name as 'name'
|
1596
|
+
FROM information_schema.key_column_usage fk
|
1597
|
+
WHERE fk.referenced_column_name is not null
|
1598
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1599
|
+
AND fk.table_name = 'kuroko2_executions'
|
1600
|
+
[0m
|
1601
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1602
|
+
,fk.referenced_column_name as 'primary_key'
|
1603
|
+
,fk.column_name as 'column'
|
1604
|
+
,fk.constraint_name as 'name'
|
1605
|
+
FROM information_schema.key_column_usage fk
|
1606
|
+
WHERE fk.referenced_column_name is not null
|
1607
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1608
|
+
AND fk.table_name = 'kuroko2_job_definition_tags'
|
1609
|
+
[0m
|
1610
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1611
|
+
,fk.referenced_column_name as 'primary_key'
|
1612
|
+
,fk.column_name as 'column'
|
1613
|
+
,fk.constraint_name as 'name'
|
1614
|
+
FROM information_schema.key_column_usage fk
|
1615
|
+
WHERE fk.referenced_column_name is not null
|
1616
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1617
|
+
AND fk.table_name = 'kuroko2_job_definitions'
|
1618
|
+
[0m
|
1619
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1620
|
+
,fk.referenced_column_name as 'primary_key'
|
1621
|
+
,fk.column_name as 'column'
|
1622
|
+
,fk.constraint_name as 'name'
|
1623
|
+
FROM information_schema.key_column_usage fk
|
1624
|
+
WHERE fk.referenced_column_name is not null
|
1625
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1626
|
+
AND fk.table_name = 'kuroko2_job_instances'
|
1627
|
+
[0m
|
1628
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1629
|
+
,fk.referenced_column_name as 'primary_key'
|
1630
|
+
,fk.column_name as 'column'
|
1631
|
+
,fk.constraint_name as 'name'
|
1632
|
+
FROM information_schema.key_column_usage fk
|
1633
|
+
WHERE fk.referenced_column_name is not null
|
1634
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1635
|
+
AND fk.table_name = 'kuroko2_job_schedules'
|
1636
|
+
[0m
|
1637
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1638
|
+
,fk.referenced_column_name as 'primary_key'
|
1639
|
+
,fk.column_name as 'column'
|
1640
|
+
,fk.constraint_name as 'name'
|
1641
|
+
FROM information_schema.key_column_usage fk
|
1642
|
+
WHERE fk.referenced_column_name is not null
|
1643
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1644
|
+
AND fk.table_name = 'kuroko2_job_suspend_schedules'
|
1645
|
+
[0m
|
1646
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1647
|
+
,fk.referenced_column_name as 'primary_key'
|
1648
|
+
,fk.column_name as 'column'
|
1649
|
+
,fk.constraint_name as 'name'
|
1650
|
+
FROM information_schema.key_column_usage fk
|
1651
|
+
WHERE fk.referenced_column_name is not null
|
1652
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1653
|
+
AND fk.table_name = 'kuroko2_logs'
|
1654
|
+
[0m
|
1655
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1656
|
+
,fk.referenced_column_name as 'primary_key'
|
1657
|
+
,fk.column_name as 'column'
|
1658
|
+
,fk.constraint_name as 'name'
|
1659
|
+
FROM information_schema.key_column_usage fk
|
1660
|
+
WHERE fk.referenced_column_name is not null
|
1661
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1662
|
+
AND fk.table_name = 'kuroko2_memory_consumption_logs'
|
1663
|
+
[0m
|
1664
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1665
|
+
,fk.referenced_column_name as 'primary_key'
|
1666
|
+
,fk.column_name as 'column'
|
1667
|
+
,fk.constraint_name as 'name'
|
1668
|
+
FROM information_schema.key_column_usage fk
|
1669
|
+
WHERE fk.referenced_column_name is not null
|
1670
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1671
|
+
AND fk.table_name = 'kuroko2_memory_expectancies'
|
1672
|
+
[0m
|
1673
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1674
|
+
,fk.referenced_column_name as 'primary_key'
|
1675
|
+
,fk.column_name as 'column'
|
1676
|
+
,fk.constraint_name as 'name'
|
1677
|
+
FROM information_schema.key_column_usage fk
|
1678
|
+
WHERE fk.referenced_column_name is not null
|
1679
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1680
|
+
AND fk.table_name = 'kuroko2_process_signals'
|
1681
|
+
[0m
|
1682
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1683
|
+
,fk.referenced_column_name as 'primary_key'
|
1684
|
+
,fk.column_name as 'column'
|
1685
|
+
,fk.constraint_name as 'name'
|
1686
|
+
FROM information_schema.key_column_usage fk
|
1687
|
+
WHERE fk.referenced_column_name is not null
|
1688
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1689
|
+
AND fk.table_name = 'kuroko2_stars'
|
1690
|
+
[0m
|
1691
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1692
|
+
,fk.referenced_column_name as 'primary_key'
|
1693
|
+
,fk.column_name as 'column'
|
1694
|
+
,fk.constraint_name as 'name'
|
1695
|
+
FROM information_schema.key_column_usage fk
|
1696
|
+
WHERE fk.referenced_column_name is not null
|
1697
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1698
|
+
AND fk.table_name = 'kuroko2_tags'
|
1699
|
+
[0m
|
1700
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1701
|
+
,fk.referenced_column_name as 'primary_key'
|
1702
|
+
,fk.column_name as 'column'
|
1703
|
+
,fk.constraint_name as 'name'
|
1704
|
+
FROM information_schema.key_column_usage fk
|
1705
|
+
WHERE fk.referenced_column_name is not null
|
1706
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1707
|
+
AND fk.table_name = 'kuroko2_ticks'
|
1708
|
+
[0m
|
1709
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1710
|
+
,fk.referenced_column_name as 'primary_key'
|
1711
|
+
,fk.column_name as 'column'
|
1712
|
+
,fk.constraint_name as 'name'
|
1713
|
+
FROM information_schema.key_column_usage fk
|
1714
|
+
WHERE fk.referenced_column_name is not null
|
1715
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1716
|
+
AND fk.table_name = 'kuroko2_tokens'
|
1717
|
+
[0m
|
1718
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1719
|
+
,fk.referenced_column_name as 'primary_key'
|
1720
|
+
,fk.column_name as 'column'
|
1721
|
+
,fk.constraint_name as 'name'
|
1722
|
+
FROM information_schema.key_column_usage fk
|
1723
|
+
WHERE fk.referenced_column_name is not null
|
1724
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1725
|
+
AND fk.table_name = 'kuroko2_users'
|
1726
|
+
[0m
|
1727
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1728
|
+
,fk.referenced_column_name as 'primary_key'
|
1729
|
+
,fk.column_name as 'column'
|
1730
|
+
,fk.constraint_name as 'name'
|
1731
|
+
FROM information_schema.key_column_usage fk
|
1732
|
+
WHERE fk.referenced_column_name is not null
|
1733
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1734
|
+
AND fk.table_name = 'kuroko2_workers'
|
1735
|
+
[0m
|
1736
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1737
|
+
,fk.referenced_column_name as 'primary_key'
|
1738
|
+
,fk.column_name as 'column'
|
1739
|
+
,fk.constraint_name as 'name'
|
1740
|
+
FROM information_schema.key_column_usage fk
|
1741
|
+
WHERE fk.referenced_column_name is not null
|
1742
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1743
|
+
AND fk.table_name = 'logs'
|
1744
|
+
[0m
|
1745
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1746
|
+
,fk.referenced_column_name as 'primary_key'
|
1747
|
+
,fk.column_name as 'column'
|
1748
|
+
,fk.constraint_name as 'name'
|
1749
|
+
FROM information_schema.key_column_usage fk
|
1750
|
+
WHERE fk.referenced_column_name is not null
|
1751
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1752
|
+
AND fk.table_name = 'memory_consumption_logs'
|
1753
|
+
[0m
|
1754
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1755
|
+
,fk.referenced_column_name as 'primary_key'
|
1756
|
+
,fk.column_name as 'column'
|
1757
|
+
,fk.constraint_name as 'name'
|
1758
|
+
FROM information_schema.key_column_usage fk
|
1759
|
+
WHERE fk.referenced_column_name is not null
|
1760
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1761
|
+
AND fk.table_name = 'memory_expectancies'
|
1762
|
+
[0m
|
1763
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1764
|
+
,fk.referenced_column_name as 'primary_key'
|
1765
|
+
,fk.column_name as 'column'
|
1766
|
+
,fk.constraint_name as 'name'
|
1767
|
+
FROM information_schema.key_column_usage fk
|
1768
|
+
WHERE fk.referenced_column_name is not null
|
1769
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1770
|
+
AND fk.table_name = 'process_signals'
|
1771
|
+
[0m
|
1772
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1773
|
+
,fk.referenced_column_name as 'primary_key'
|
1774
|
+
,fk.column_name as 'column'
|
1775
|
+
,fk.constraint_name as 'name'
|
1776
|
+
FROM information_schema.key_column_usage fk
|
1777
|
+
WHERE fk.referenced_column_name is not null
|
1778
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1779
|
+
AND fk.table_name = 'stars'
|
1780
|
+
[0m
|
1781
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1782
|
+
,fk.referenced_column_name as 'primary_key'
|
1783
|
+
,fk.column_name as 'column'
|
1784
|
+
,fk.constraint_name as 'name'
|
1785
|
+
FROM information_schema.key_column_usage fk
|
1786
|
+
WHERE fk.referenced_column_name is not null
|
1787
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1788
|
+
AND fk.table_name = 'tags'
|
1789
|
+
[0m
|
1790
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1791
|
+
,fk.referenced_column_name as 'primary_key'
|
1792
|
+
,fk.column_name as 'column'
|
1793
|
+
,fk.constraint_name as 'name'
|
1794
|
+
FROM information_schema.key_column_usage fk
|
1795
|
+
WHERE fk.referenced_column_name is not null
|
1796
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1797
|
+
AND fk.table_name = 'ticks'
|
1798
|
+
[0m
|
1799
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1800
|
+
,fk.referenced_column_name as 'primary_key'
|
1801
|
+
,fk.column_name as 'column'
|
1802
|
+
,fk.constraint_name as 'name'
|
1803
|
+
FROM information_schema.key_column_usage fk
|
1804
|
+
WHERE fk.referenced_column_name is not null
|
1805
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1806
|
+
AND fk.table_name = 'tokens'
|
1807
|
+
[0m
|
1808
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1809
|
+
,fk.referenced_column_name as 'primary_key'
|
1810
|
+
,fk.column_name as 'column'
|
1811
|
+
,fk.constraint_name as 'name'
|
1812
|
+
FROM information_schema.key_column_usage fk
|
1813
|
+
WHERE fk.referenced_column_name is not null
|
1814
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1815
|
+
AND fk.table_name = 'users'
|
1816
|
+
[0m
|
1817
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT fk.referenced_table_name as 'to_table'
|
1818
|
+
,fk.referenced_column_name as 'primary_key'
|
1819
|
+
,fk.column_name as 'column'
|
1820
|
+
,fk.constraint_name as 'name'
|
1821
|
+
FROM information_schema.key_column_usage fk
|
1822
|
+
WHERE fk.referenced_column_name is not null
|
1823
|
+
AND fk.table_schema = 'kuroko2_dummy_development'
|
1824
|
+
AND fk.table_name = 'workers'
|
682
1825
|
[0m
|