archiving 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/archiving/archive_table.rb +5 -3
- data/test/archive_table_test.rb +19 -0
- data/test/dummy/app/models/postrw.rb +3 -0
- data/test/dummy/db/migrate/20190711112558_create_postrws.rb +16 -0
- data/test/dummy/db/schema.rb +45 -32
- data/test/dummy/log/test.log +475 -35891
- data/test/migrations_test.rb +1 -1
- metadata +41 -39
- data/test/dummy/log/development.log +0 -3226
data/test/migrations_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archiving
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Vangberg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- test/dummy/app/models/log_line.rb
|
148
148
|
- test/dummy/app/models/log_other.rb
|
149
149
|
- test/dummy/app/models/post.rb
|
150
|
+
- test/dummy/app/models/postrw.rb
|
150
151
|
- test/dummy/app/views/layouts/application.html.erb
|
151
152
|
- test/dummy/bin/bundle
|
152
153
|
- test/dummy/bin/rails
|
@@ -175,8 +176,8 @@ files:
|
|
175
176
|
- test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
|
176
177
|
- test/dummy/db/migrate/20161103093656_create_log_other.rb
|
177
178
|
- test/dummy/db/migrate/20161103100644_create_log_other_archive.rb
|
179
|
+
- test/dummy/db/migrate/20190711112558_create_postrws.rb
|
178
180
|
- test/dummy/db/schema.rb
|
179
|
-
- test/dummy/log/development.log
|
180
181
|
- test/dummy/log/test.log
|
181
182
|
- test/dummy/public/404.html
|
182
183
|
- test/dummy/public/422.html
|
@@ -205,59 +206,60 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
version: '0'
|
206
207
|
requirements: []
|
207
208
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
209
|
+
rubygems_version: 2.5.2
|
209
210
|
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: MySQL Archive Tables
|
212
213
|
test_files:
|
213
|
-
- test/archive_table_test.rb
|
214
214
|
- test/archiving_test.rb
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
-
- test/dummy/app/controllers/application_controller.rb
|
218
|
-
- test/dummy/app/helpers/application_helper.rb
|
219
|
-
- test/dummy/app/models/log_day.rb
|
220
|
-
- test/dummy/app/models/log_line.rb
|
221
|
-
- test/dummy/app/models/log_other.rb
|
222
|
-
- test/dummy/app/models/post.rb
|
223
|
-
- test/dummy/app/views/layouts/application.html.erb
|
224
|
-
- test/dummy/bin/bundle
|
225
|
-
- test/dummy/bin/rails
|
226
|
-
- test/dummy/bin/rake
|
227
|
-
- test/dummy/config/application.rb
|
215
|
+
- test/test_helper.rb
|
216
|
+
- test/archive_table_test.rb
|
228
217
|
- test/dummy/config/boot.rb
|
218
|
+
- test/dummy/config/application.rb
|
219
|
+
- test/dummy/config/initializers/secret_token.rb
|
220
|
+
- test/dummy/config/initializers/inflections.rb
|
221
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
222
|
+
- test/dummy/config/initializers/session_store.rb
|
223
|
+
- test/dummy/config/initializers/mime_types.rb
|
224
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
225
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
229
226
|
- test/dummy/config/database.yml
|
230
|
-
- test/dummy/config/environment.rb
|
231
227
|
- test/dummy/config/environments/development.rb
|
232
228
|
- test/dummy/config/environments/production.rb
|
233
229
|
- test/dummy/config/environments/test.rb
|
234
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
235
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
236
|
-
- test/dummy/config/initializers/inflections.rb
|
237
|
-
- test/dummy/config/initializers/mime_types.rb
|
238
|
-
- test/dummy/config/initializers/secret_token.rb
|
239
|
-
- test/dummy/config/initializers/session_store.rb
|
240
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
241
|
-
- test/dummy/config/locales/en.yml
|
242
230
|
- test/dummy/config/routes.rb
|
243
|
-
- test/dummy/config.
|
231
|
+
- test/dummy/config/environment.rb
|
232
|
+
- test/dummy/config/locales/en.yml
|
233
|
+
- test/dummy/script/rails
|
234
|
+
- test/dummy/db/migrate/20190711112558_create_postrws.rb
|
235
|
+
- test/dummy/db/migrate/20140220140952_posts_tag.rb
|
244
236
|
- test/dummy/db/migrate/20140220134827_create_posts.rb
|
237
|
+
- test/dummy/db/migrate/20161103100644_create_log_other_archive.rb
|
245
238
|
- test/dummy/db/migrate/20140220140852_posts_archive.rb
|
246
|
-
- test/dummy/db/migrate/20140220140952_posts_tag.rb
|
247
|
-
- test/dummy/db/migrate/20140317201702_create_logs.rb
|
248
239
|
- test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
|
249
240
|
- test/dummy/db/migrate/20161103093656_create_log_other.rb
|
250
|
-
- test/dummy/db/migrate/
|
241
|
+
- test/dummy/db/migrate/20140317201702_create_logs.rb
|
251
242
|
- test/dummy/db/schema.rb
|
252
|
-
- test/dummy/log/development.log
|
253
|
-
- test/dummy/log/test.log
|
254
|
-
- test/dummy/public/404.html
|
255
|
-
- test/dummy/public/422.html
|
256
|
-
- test/dummy/public/500.html
|
257
|
-
- test/dummy/public/favicon.ico
|
258
243
|
- test/dummy/Rakefile
|
259
244
|
- test/dummy/README.rdoc
|
260
|
-
- test/dummy/script/rails
|
261
245
|
- test/dummy/test/unit/post_test.rb
|
246
|
+
- test/dummy/app/models/log_line.rb
|
247
|
+
- test/dummy/app/models/log_other.rb
|
248
|
+
- test/dummy/app/models/post.rb
|
249
|
+
- test/dummy/app/models/postrw.rb
|
250
|
+
- test/dummy/app/models/log_day.rb
|
251
|
+
- test/dummy/app/controllers/application_controller.rb
|
252
|
+
- test/dummy/app/assets/stylesheets/application.css
|
253
|
+
- test/dummy/app/assets/javascripts/application.js
|
254
|
+
- test/dummy/app/helpers/application_helper.rb
|
255
|
+
- test/dummy/app/views/layouts/application.html.erb
|
256
|
+
- test/dummy/public/500.html
|
257
|
+
- test/dummy/public/404.html
|
258
|
+
- test/dummy/public/favicon.ico
|
259
|
+
- test/dummy/public/422.html
|
260
|
+
- test/dummy/log/test.log
|
261
|
+
- test/dummy/bin/rake
|
262
|
+
- test/dummy/bin/rails
|
263
|
+
- test/dummy/bin/bundle
|
264
|
+
- test/dummy/config.ru
|
262
265
|
- test/migrations_test.rb
|
263
|
-
- test/test_helper.rb
|
@@ -1,3226 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
|
-
[1m[36m (18.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
4
|
-
[1m[35m (22.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
5
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
6
|
-
Migrating to CreatePosts (20140220134827)
|
7
|
-
[1m[35m (11.7ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
8
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140220134827')[0m
|
9
|
-
Migrating to PostsArchive (20140220140852)
|
10
|
-
[1m[35m (15.4ms)[0m CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
11
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140220140852')[0m
|
12
|
-
Migrating to PostsTag (20140220140952)
|
13
|
-
[1m[35m (19.2ms)[0m ALTER TABLE `posts` ADD `tag` varchar(255)
|
14
|
-
[1m[36m (10.3ms)[0m [1mALTER TABLE `posts_archive` ADD `tag` varchar(255)[0m
|
15
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140952')
|
16
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
17
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
18
|
-
[1m[36m (26.3ms)[0m [1mDROP DATABASE IF EXISTS `archiving_test`[0m
|
19
|
-
[1m[35m (2.8ms)[0m CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
20
|
-
[1m[36m (17.9ms)[0m [1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
21
|
-
[1m[35m (15.0ms)[0m CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
22
|
-
[1m[36m (15.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
23
|
-
[1m[35m (18.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
24
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
25
|
-
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
|
26
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220134827')[0m
|
27
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
|
28
|
-
Connecting to database specified by database.yml
|
29
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
30
|
-
[1m[35m (4.7ms)[0m DROP DATABASE IF EXISTS `archiving_test`
|
31
|
-
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
32
|
-
[1m[35m (24.8ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
33
|
-
[1m[36m (16.5ms)[0m [1mCREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
34
|
-
[1m[35m (7.9ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
35
|
-
[1m[36m (13.6ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
36
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
37
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140952')[0m
|
38
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
|
39
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140852')[0m
|
40
|
-
Connecting to database specified by database.yml
|
41
|
-
Connecting to database specified by database.yml
|
42
|
-
Connecting to database specified by database.yml
|
43
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
44
|
-
Migrating to CreatePosts (20140220134827)
|
45
|
-
Migrating to PostsArchive (20140220140852)
|
46
|
-
Migrating to PostsTag (20140220140952)
|
47
|
-
Migrating to CreateLogs (20140317201702)
|
48
|
-
[1m[35m (29.9ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
|
49
|
-
[1m[36m (18.0ms)[0m [1mCREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
50
|
-
[1m[35m (6.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
|
51
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
52
|
-
Connecting to database specified by database.yml
|
53
|
-
[1m[36m (0.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
54
|
-
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
55
|
-
Migrating to CreateLogs (20140317201702)
|
56
|
-
[1m[36m (18.8ms)[0m [1mDROP TABLE `log_lines`[0m
|
57
|
-
[1m[35m (6.9ms)[0m DROP TABLE `log_days`
|
58
|
-
[1m[36m (1.3ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140317201702'[0m
|
59
|
-
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
60
|
-
Connecting to database specified by database.yml
|
61
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
62
|
-
Migrating to CreatePosts (20140220134827)
|
63
|
-
Migrating to PostsArchive (20140220140852)
|
64
|
-
Migrating to PostsTag (20140220140952)
|
65
|
-
Migrating to CreateLogs (20140317201702)
|
66
|
-
[1m[35m (19.6ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
|
67
|
-
[1m[36m (7.7ms)[0m [1mCREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB[0m
|
68
|
-
[1m[35m (8.1ms)[0m CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
69
|
-
[1m[36m (14.9ms)[0m [1mCREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
70
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
|
71
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
72
|
-
Connecting to database specified by database.yml
|
73
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
74
|
-
[1m[35m (7.1ms)[0m DROP DATABASE IF EXISTS `archiving_test`
|
75
|
-
[1m[36m (0.5ms)[0m [1mCREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
76
|
-
[1m[35m (19.4ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
|
77
|
-
[1m[36m (17.2ms)[0m [1mCREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB[0m
|
78
|
-
[1m[35m (14.4ms)[0m CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
79
|
-
[1m[36m (12.7ms)[0m [1mCREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
80
|
-
[1m[35m (7.3ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
81
|
-
[1m[36m (7.2ms)[0m [1mCREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
82
|
-
[1m[35m (6.8ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
83
|
-
[1m[36m (16.6ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
84
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
85
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140317201702')[0m
|
86
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
|
87
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140852')[0m
|
88
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
|
89
|
-
Connecting to database specified by database.yml
|
90
|
-
Connecting to database specified by database.yml
|
91
|
-
[1m[36m (239.0ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
92
|
-
Migrating to CreatePosts (20140220134827)
|
93
|
-
Migrating to PostsArchive (20140220140852)
|
94
|
-
Migrating to PostsTag (20140220140952)
|
95
|
-
Migrating to CreateLogs (20140317201702)
|
96
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
97
|
-
[1m[35m (13.6ms)[0m ALTER TABLE `log_lines` ADD `postable` reference
|
98
|
-
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reference' at line 1: ALTER TABLE `log_lines` ADD `postable` reference
|
99
|
-
Connecting to database specified by database.yml
|
100
|
-
[1m[36m (0.4ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
101
|
-
Migrating to CreatePosts (20140220134827)
|
102
|
-
Migrating to PostsArchive (20140220140852)
|
103
|
-
Migrating to PostsTag (20140220140952)
|
104
|
-
Migrating to CreateLogs (20140317201702)
|
105
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
106
|
-
[1m[35m (106.1ms)[0m ALTER TABLE `log_lines` ADD `postable_type` varchar(255)
|
107
|
-
[1m[36m (19.8ms)[0m [1mALTER TABLE `log_lines` ADD `postable_id` int(11)[0m
|
108
|
-
[1m[35m (7.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
|
109
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
110
|
-
Connecting to database specified by database.yml
|
111
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
112
|
-
[1m[35m (54.6ms)[0m DROP DATABASE IF EXISTS `archiving_test`
|
113
|
-
[1m[36m (3.4ms)[0m [1mCREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
114
|
-
[1m[35m (34.7ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
|
115
|
-
[1m[36m (34.1ms)[0m [1mCREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB[0m
|
116
|
-
[1m[35m (12.9ms)[0m CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255), `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
117
|
-
[1m[36m (11.5ms)[0m [1mCREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
118
|
-
[1m[35m (29.2ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
119
|
-
[1m[36m (15.9ms)[0m [1mCREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
120
|
-
[1m[35m (11.0ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
121
|
-
[1m[36m (28.3ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
122
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
123
|
-
[1m[36m (0.9ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140414124125')[0m
|
124
|
-
[1m[35m (2.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
|
125
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140852')[0m
|
126
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
|
127
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140317201702')[0m
|
128
|
-
Connecting to database specified by database.yml
|
129
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
130
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
131
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
132
|
-
[1m[36m (61.0ms)[0m [1mALTER TABLE `log_lines` DROP `postable_id`[0m
|
133
|
-
[1m[35m (49.3ms)[0m ALTER TABLE `log_lines` DROP `postable_type`
|
134
|
-
[1m[36m (20.0ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'[0m
|
135
|
-
[1m[35m (1.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
136
|
-
Connecting to database specified by database.yml
|
137
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
138
|
-
Migrating to CreatePosts (20140220134827)
|
139
|
-
Migrating to PostsArchive (20140220140852)
|
140
|
-
Migrating to PostsTag (20140220140952)
|
141
|
-
Migrating to CreateLogs (20140317201702)
|
142
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
143
|
-
[1m[35m (19.1ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
144
|
-
[1m[36m (11.7ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
145
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
|
146
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
147
|
-
Connecting to database specified by database.yml
|
148
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
149
|
-
[1m[35m (11.5ms)[0m DROP DATABASE IF EXISTS `archiving_test`
|
150
|
-
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
151
|
-
[1m[35m (20.4ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
152
|
-
[1m[36m (7.2ms)[0m [1mCREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB[0m
|
153
|
-
[1m[35m (13.6ms)[0m CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
154
|
-
[1m[36m (14.9ms)[0m [1mCREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
155
|
-
[1m[35m (13.7ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
156
|
-
[1m[36m (12.5ms)[0m [1mCREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
157
|
-
[1m[35m (8.0ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
158
|
-
[1m[36m (13.3ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
159
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
160
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140414124125')[0m
|
161
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
|
162
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140852')[0m
|
163
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
|
164
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140317201702')[0m
|
165
|
-
Connecting to database specified by database.yml
|
166
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
167
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
168
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
169
|
-
[1m[36m (32.0ms)[0m [1mALTER TABLE `log_days` DROP `postable_id`[0m
|
170
|
-
[1m[35m (21.7ms)[0m ALTER TABLE `log_days` DROP `postable_type`
|
171
|
-
[1m[36m (1.2ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'[0m
|
172
|
-
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
173
|
-
Connecting to database specified by database.yml
|
174
|
-
[1m[36m (0.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
175
|
-
Migrating to CreatePosts (20140220134827)
|
176
|
-
Migrating to PostsArchive (20140220140852)
|
177
|
-
Migrating to PostsTag (20140220140952)
|
178
|
-
Migrating to CreateLogs (20140317201702)
|
179
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
180
|
-
[1m[35m (11.7ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
181
|
-
[1m[36m (14.8ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
182
|
-
[1m[35m (30.3ms)[0m ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
|
183
|
-
[1m[36m (16.6ms)[0m [1mALTER TABLE `log_days_archive` ADD `postable_id` int(11)[0m
|
184
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
|
185
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
186
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
187
|
-
[1m[36m (37.9ms)[0m [1mDROP DATABASE IF EXISTS `archiving_test`[0m
|
188
|
-
[1m[35m (0.6ms)[0m CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
189
|
-
[1m[36m (18.4ms)[0m [1mCREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB[0m
|
190
|
-
[1m[35m (16.8ms)[0m CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
191
|
-
[1m[36m (17.3ms)[0m [1mCREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
192
|
-
[1m[35m (12.6ms)[0m CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
193
|
-
[1m[36m (25.6ms)[0m [1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
194
|
-
[1m[35m (7.6ms)[0m CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
195
|
-
[1m[36m (7.3ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
196
|
-
[1m[35m (21.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
197
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
198
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
|
199
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220134827')[0m
|
200
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
|
201
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140952')[0m
|
202
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
|
203
|
-
Connecting to database specified by database.yml
|
204
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
205
|
-
Migrating to CreatePosts (20140220134827)
|
206
|
-
Migrating to PostsArchive (20140220140852)
|
207
|
-
Migrating to PostsTag (20140220140952)
|
208
|
-
Migrating to CreateLogs (20140317201702)
|
209
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
210
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
211
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
212
|
-
[1m[35m (27.6ms)[0m DROP DATABASE IF EXISTS `archiving_test`
|
213
|
-
[1m[36m (0.6ms)[0m [1mCREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
214
|
-
[1m[35m (21.4ms)[0m CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
215
|
-
[1m[36m (7.2ms)[0m [1mCREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB[0m
|
216
|
-
[1m[35m (7.5ms)[0m CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
217
|
-
[1m[36m (12.4ms)[0m [1mCREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
218
|
-
[1m[35m (14.6ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
219
|
-
[1m[36m (12.4ms)[0m [1mCREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
220
|
-
[1m[35m (12.9ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
221
|
-
[1m[36m (13.2ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
222
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
223
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140414124125')[0m
|
224
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
|
225
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140852')[0m
|
226
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
|
227
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140317201702')[0m
|
228
|
-
Connecting to database specified by database.yml
|
229
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
230
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
231
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
232
|
-
[1m[36m (25.7ms)[0m [1mALTER TABLE `log_days_archive` DROP `postable_id`[0m
|
233
|
-
[1m[35m (10.5ms)[0m ALTER TABLE `log_days_archive` DROP `postable_type`
|
234
|
-
[1m[36m (10.0ms)[0m [1mALTER TABLE `log_days` DROP `postable_id`[0m
|
235
|
-
[1m[35m (18.7ms)[0m ALTER TABLE `log_days` DROP `postable_type`
|
236
|
-
[1m[36m (0.7ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'[0m
|
237
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
238
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
239
|
-
Migrating to CreatePosts (20140220134827)
|
240
|
-
Migrating to PostsArchive (20140220140852)
|
241
|
-
Migrating to PostsTag (20140220140952)
|
242
|
-
Migrating to CreateLogs (20140317201702)
|
243
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
244
|
-
[1m[35m (28.0ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
245
|
-
[1m[36m (10.7ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
246
|
-
[1m[35m (9.8ms)[0m ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
|
247
|
-
[1m[36m (13.2ms)[0m [1mALTER TABLE `log_days_archive` ADD `postable_id` int(11)[0m
|
248
|
-
[1m[35m (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
|
249
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
250
|
-
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
251
|
-
[1m[36m (24.8ms)[0m [1mDROP DATABASE IF EXISTS `archiving_test`[0m
|
252
|
-
[1m[35m (0.4ms)[0m CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
253
|
-
[1m[36m (13.2ms)[0m [1mCREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB[0m
|
254
|
-
[1m[35m (8.1ms)[0m CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
255
|
-
[1m[36m (6.6ms)[0m [1mCREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
256
|
-
[1m[35m (6.9ms)[0m CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
257
|
-
[1m[36m (15.2ms)[0m [1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB[0m
|
258
|
-
[1m[35m (13.9ms)[0m CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
|
259
|
-
[1m[36m (12.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
260
|
-
[1m[35m (18.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
261
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
262
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
|
263
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220134827')[0m
|
264
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
|
265
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140952')[0m
|
266
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
|
267
|
-
[1m[36m (11.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
268
|
-
[1m[35m (15.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
269
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
270
|
-
Migrating to CreatePosts (20140220134827)
|
271
|
-
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/kongkyed/Documents/src/firmafon/archiving/test/dummy/db/migrate/20140220134827_create_posts.rb:7)
|
272
|
-
[1m[35m (12.5ms)[0m CREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
273
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
274
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140220134827')
|
275
|
-
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
276
|
-
Migrating to PostsArchive (20140220140852)
|
277
|
-
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/kongkyed/Documents/src/firmafon/archiving/test/dummy/db/migrate/20140220140852_posts_archive.rb:7)
|
278
|
-
[1m[35m (11.8ms)[0m CREATE TABLE `posts_archive` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
279
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
280
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140852')
|
281
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
282
|
-
Migrating to PostsTag (20140220140952)
|
283
|
-
[1m[35m (17.5ms)[0m ALTER TABLE `posts` ADD `tag` varchar(255)
|
284
|
-
[1m[36m (17.0ms)[0m [1mALTER TABLE `posts_archive` ADD `tag` varchar(255)[0m
|
285
|
-
[1m[35m (0.1ms)[0m BEGIN
|
286
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140220140952')[0m
|
287
|
-
[1m[35m (0.5ms)[0m COMMIT
|
288
|
-
Migrating to CreateLogs (20140317201702)
|
289
|
-
[1m[36m (9.9ms)[0m [1mCREATE TABLE `log_days` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB[0m
|
290
|
-
[1m[35m (11.3ms)[0m CREATE TABLE `log_days_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
|
291
|
-
[1m[36m (15.6ms)[0m [1mCREATE TABLE `log_lines` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
292
|
-
[1m[35m (11.0ms)[0m CREATE TABLE `log_lines_archive` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
293
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
294
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
|
295
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
296
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
297
|
-
[1m[35m (19.1ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
298
|
-
[1m[36m (18.1ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
299
|
-
[1m[35m (19.0ms)[0m ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
|
300
|
-
[1m[36m (18.1ms)[0m [1mALTER TABLE `log_days_archive` ADD `postable_id` int(11)[0m
|
301
|
-
[1m[35m (0.2ms)[0m BEGIN
|
302
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')[0m
|
303
|
-
[1m[35m (0.3ms)[0m COMMIT
|
304
|
-
Migrating to LogOther (20161103093656)
|
305
|
-
[1m[36m (12.4ms)[0m [1mCREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
306
|
-
[1m[35m (0.1ms)[0m BEGIN
|
307
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
308
|
-
[1m[35m (0.3ms)[0m COMMIT
|
309
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
310
|
-
[1m[35m (6.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
311
|
-
,fk.referenced_column_name as 'primary_key'
|
312
|
-
,fk.column_name as 'column'
|
313
|
-
,fk.constraint_name as 'name'
|
314
|
-
FROM information_schema.key_column_usage fk
|
315
|
-
WHERE fk.referenced_column_name is not null
|
316
|
-
AND fk.table_schema = 'archiving_development'
|
317
|
-
AND fk.table_name = 'log_days'
|
318
|
-
|
319
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
320
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
321
|
-
,fk.referenced_column_name as 'primary_key'
|
322
|
-
,fk.column_name as 'column'
|
323
|
-
,fk.constraint_name as 'name'
|
324
|
-
FROM information_schema.key_column_usage fk
|
325
|
-
WHERE fk.referenced_column_name is not null
|
326
|
-
AND fk.table_schema = 'archiving_development'
|
327
|
-
AND fk.table_name = 'log_days_archive'
|
328
|
-
|
329
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
330
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
331
|
-
,fk.referenced_column_name as 'primary_key'
|
332
|
-
,fk.column_name as 'column'
|
333
|
-
,fk.constraint_name as 'name'
|
334
|
-
FROM information_schema.key_column_usage fk
|
335
|
-
WHERE fk.referenced_column_name is not null
|
336
|
-
AND fk.table_schema = 'archiving_development'
|
337
|
-
AND fk.table_name = 'log_lines'
|
338
|
-
|
339
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
340
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
341
|
-
,fk.referenced_column_name as 'primary_key'
|
342
|
-
,fk.column_name as 'column'
|
343
|
-
,fk.constraint_name as 'name'
|
344
|
-
FROM information_schema.key_column_usage fk
|
345
|
-
WHERE fk.referenced_column_name is not null
|
346
|
-
AND fk.table_schema = 'archiving_development'
|
347
|
-
AND fk.table_name = 'log_lines_archive'
|
348
|
-
|
349
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
350
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
351
|
-
,fk.referenced_column_name as 'primary_key'
|
352
|
-
,fk.column_name as 'column'
|
353
|
-
,fk.constraint_name as 'name'
|
354
|
-
FROM information_schema.key_column_usage fk
|
355
|
-
WHERE fk.referenced_column_name is not null
|
356
|
-
AND fk.table_schema = 'archiving_development'
|
357
|
-
AND fk.table_name = 'log_others'
|
358
|
-
|
359
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
360
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
361
|
-
,fk.referenced_column_name as 'primary_key'
|
362
|
-
,fk.column_name as 'column'
|
363
|
-
,fk.constraint_name as 'name'
|
364
|
-
FROM information_schema.key_column_usage fk
|
365
|
-
WHERE fk.referenced_column_name is not null
|
366
|
-
AND fk.table_schema = 'archiving_development'
|
367
|
-
AND fk.table_name = 'posts'
|
368
|
-
|
369
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
370
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
371
|
-
,fk.referenced_column_name as 'primary_key'
|
372
|
-
,fk.column_name as 'column'
|
373
|
-
,fk.constraint_name as 'name'
|
374
|
-
FROM information_schema.key_column_usage fk
|
375
|
-
WHERE fk.referenced_column_name is not null
|
376
|
-
AND fk.table_schema = 'archiving_development'
|
377
|
-
AND fk.table_name = 'posts_archive'
|
378
|
-
|
379
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
380
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
381
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
382
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
383
|
-
,fk.referenced_column_name as 'primary_key'
|
384
|
-
,fk.column_name as 'column'
|
385
|
-
,fk.constraint_name as 'name'
|
386
|
-
FROM information_schema.key_column_usage fk
|
387
|
-
WHERE fk.referenced_column_name is not null
|
388
|
-
AND fk.table_schema = 'archiving_development'
|
389
|
-
AND fk.table_name = 'log_days'
|
390
|
-
[0m
|
391
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
392
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
393
|
-
,fk.referenced_column_name as 'primary_key'
|
394
|
-
,fk.column_name as 'column'
|
395
|
-
,fk.constraint_name as 'name'
|
396
|
-
FROM information_schema.key_column_usage fk
|
397
|
-
WHERE fk.referenced_column_name is not null
|
398
|
-
AND fk.table_schema = 'archiving_development'
|
399
|
-
AND fk.table_name = 'log_days_archive'
|
400
|
-
[0m
|
401
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
402
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
403
|
-
,fk.referenced_column_name as 'primary_key'
|
404
|
-
,fk.column_name as 'column'
|
405
|
-
,fk.constraint_name as 'name'
|
406
|
-
FROM information_schema.key_column_usage fk
|
407
|
-
WHERE fk.referenced_column_name is not null
|
408
|
-
AND fk.table_schema = 'archiving_development'
|
409
|
-
AND fk.table_name = 'log_lines'
|
410
|
-
[0m
|
411
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
412
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
413
|
-
,fk.referenced_column_name as 'primary_key'
|
414
|
-
,fk.column_name as 'column'
|
415
|
-
,fk.constraint_name as 'name'
|
416
|
-
FROM information_schema.key_column_usage fk
|
417
|
-
WHERE fk.referenced_column_name is not null
|
418
|
-
AND fk.table_schema = 'archiving_development'
|
419
|
-
AND fk.table_name = 'log_lines_archive'
|
420
|
-
[0m
|
421
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
422
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
423
|
-
,fk.referenced_column_name as 'primary_key'
|
424
|
-
,fk.column_name as 'column'
|
425
|
-
,fk.constraint_name as 'name'
|
426
|
-
FROM information_schema.key_column_usage fk
|
427
|
-
WHERE fk.referenced_column_name is not null
|
428
|
-
AND fk.table_schema = 'archiving_development'
|
429
|
-
AND fk.table_name = 'log_others'
|
430
|
-
[0m
|
431
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
432
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
433
|
-
,fk.referenced_column_name as 'primary_key'
|
434
|
-
,fk.column_name as 'column'
|
435
|
-
,fk.constraint_name as 'name'
|
436
|
-
FROM information_schema.key_column_usage fk
|
437
|
-
WHERE fk.referenced_column_name is not null
|
438
|
-
AND fk.table_schema = 'archiving_development'
|
439
|
-
AND fk.table_name = 'posts'
|
440
|
-
[0m
|
441
|
-
[1m[35m (0.3ms)[0m SHOW CREATE TABLE `posts`
|
442
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
443
|
-
,fk.referenced_column_name as 'primary_key'
|
444
|
-
,fk.column_name as 'column'
|
445
|
-
,fk.constraint_name as 'name'
|
446
|
-
FROM information_schema.key_column_usage fk
|
447
|
-
WHERE fk.referenced_column_name is not null
|
448
|
-
AND fk.table_schema = 'archiving_development'
|
449
|
-
AND fk.table_name = 'posts_archive'
|
450
|
-
[0m
|
451
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
452
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
453
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
454
|
-
Migrating to LogOther (20161103093656)
|
455
|
-
[1m[36m (24.5ms)[0m [1mDROP TABLE `log_others`[0m
|
456
|
-
[1m[35mSQL (28.7ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
457
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
458
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
459
|
-
,fk.referenced_column_name as 'primary_key'
|
460
|
-
,fk.column_name as 'column'
|
461
|
-
,fk.constraint_name as 'name'
|
462
|
-
FROM information_schema.key_column_usage fk
|
463
|
-
WHERE fk.referenced_column_name is not null
|
464
|
-
AND fk.table_schema = 'archiving_development'
|
465
|
-
AND fk.table_name = 'log_days'
|
466
|
-
|
467
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
468
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
469
|
-
,fk.referenced_column_name as 'primary_key'
|
470
|
-
,fk.column_name as 'column'
|
471
|
-
,fk.constraint_name as 'name'
|
472
|
-
FROM information_schema.key_column_usage fk
|
473
|
-
WHERE fk.referenced_column_name is not null
|
474
|
-
AND fk.table_schema = 'archiving_development'
|
475
|
-
AND fk.table_name = 'log_days_archive'
|
476
|
-
|
477
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
478
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
479
|
-
,fk.referenced_column_name as 'primary_key'
|
480
|
-
,fk.column_name as 'column'
|
481
|
-
,fk.constraint_name as 'name'
|
482
|
-
FROM information_schema.key_column_usage fk
|
483
|
-
WHERE fk.referenced_column_name is not null
|
484
|
-
AND fk.table_schema = 'archiving_development'
|
485
|
-
AND fk.table_name = 'log_lines'
|
486
|
-
|
487
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
488
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
489
|
-
,fk.referenced_column_name as 'primary_key'
|
490
|
-
,fk.column_name as 'column'
|
491
|
-
,fk.constraint_name as 'name'
|
492
|
-
FROM information_schema.key_column_usage fk
|
493
|
-
WHERE fk.referenced_column_name is not null
|
494
|
-
AND fk.table_schema = 'archiving_development'
|
495
|
-
AND fk.table_name = 'log_lines_archive'
|
496
|
-
|
497
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
498
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
499
|
-
,fk.referenced_column_name as 'primary_key'
|
500
|
-
,fk.column_name as 'column'
|
501
|
-
,fk.constraint_name as 'name'
|
502
|
-
FROM information_schema.key_column_usage fk
|
503
|
-
WHERE fk.referenced_column_name is not null
|
504
|
-
AND fk.table_schema = 'archiving_development'
|
505
|
-
AND fk.table_name = 'posts'
|
506
|
-
|
507
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
508
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
509
|
-
,fk.referenced_column_name as 'primary_key'
|
510
|
-
,fk.column_name as 'column'
|
511
|
-
,fk.constraint_name as 'name'
|
512
|
-
FROM information_schema.key_column_usage fk
|
513
|
-
WHERE fk.referenced_column_name is not null
|
514
|
-
AND fk.table_schema = 'archiving_development'
|
515
|
-
AND fk.table_name = 'posts_archive'
|
516
|
-
|
517
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
518
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
519
|
-
Migrating to LogOther (20161103093656)
|
520
|
-
[1m[35m (53.9ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
521
|
-
[1m[36m (10.4ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
522
|
-
[1m[35m (0.1ms)[0m BEGIN
|
523
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
524
|
-
[1m[35m (22.5ms)[0m COMMIT
|
525
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
526
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
527
|
-
,fk.referenced_column_name as 'primary_key'
|
528
|
-
,fk.column_name as 'column'
|
529
|
-
,fk.constraint_name as 'name'
|
530
|
-
FROM information_schema.key_column_usage fk
|
531
|
-
WHERE fk.referenced_column_name is not null
|
532
|
-
AND fk.table_schema = 'archiving_development'
|
533
|
-
AND fk.table_name = 'log_days'
|
534
|
-
|
535
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
536
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
537
|
-
,fk.referenced_column_name as 'primary_key'
|
538
|
-
,fk.column_name as 'column'
|
539
|
-
,fk.constraint_name as 'name'
|
540
|
-
FROM information_schema.key_column_usage fk
|
541
|
-
WHERE fk.referenced_column_name is not null
|
542
|
-
AND fk.table_schema = 'archiving_development'
|
543
|
-
AND fk.table_name = 'log_days_archive'
|
544
|
-
|
545
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
546
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
547
|
-
,fk.referenced_column_name as 'primary_key'
|
548
|
-
,fk.column_name as 'column'
|
549
|
-
,fk.constraint_name as 'name'
|
550
|
-
FROM information_schema.key_column_usage fk
|
551
|
-
WHERE fk.referenced_column_name is not null
|
552
|
-
AND fk.table_schema = 'archiving_development'
|
553
|
-
AND fk.table_name = 'log_lines'
|
554
|
-
|
555
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
556
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
557
|
-
,fk.referenced_column_name as 'primary_key'
|
558
|
-
,fk.column_name as 'column'
|
559
|
-
,fk.constraint_name as 'name'
|
560
|
-
FROM information_schema.key_column_usage fk
|
561
|
-
WHERE fk.referenced_column_name is not null
|
562
|
-
AND fk.table_schema = 'archiving_development'
|
563
|
-
AND fk.table_name = 'log_lines_archive'
|
564
|
-
|
565
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
566
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
567
|
-
,fk.referenced_column_name as 'primary_key'
|
568
|
-
,fk.column_name as 'column'
|
569
|
-
,fk.constraint_name as 'name'
|
570
|
-
FROM information_schema.key_column_usage fk
|
571
|
-
WHERE fk.referenced_column_name is not null
|
572
|
-
AND fk.table_schema = 'archiving_development'
|
573
|
-
AND fk.table_name = 'log_others'
|
574
|
-
|
575
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
576
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
577
|
-
,fk.referenced_column_name as 'primary_key'
|
578
|
-
,fk.column_name as 'column'
|
579
|
-
,fk.constraint_name as 'name'
|
580
|
-
FROM information_schema.key_column_usage fk
|
581
|
-
WHERE fk.referenced_column_name is not null
|
582
|
-
AND fk.table_schema = 'archiving_development'
|
583
|
-
AND fk.table_name = 'log_others_archive'
|
584
|
-
|
585
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others_archive`[0m
|
586
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
587
|
-
,fk.referenced_column_name as 'primary_key'
|
588
|
-
,fk.column_name as 'column'
|
589
|
-
,fk.constraint_name as 'name'
|
590
|
-
FROM information_schema.key_column_usage fk
|
591
|
-
WHERE fk.referenced_column_name is not null
|
592
|
-
AND fk.table_schema = 'archiving_development'
|
593
|
-
AND fk.table_name = 'posts'
|
594
|
-
|
595
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
596
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
597
|
-
,fk.referenced_column_name as 'primary_key'
|
598
|
-
,fk.column_name as 'column'
|
599
|
-
,fk.constraint_name as 'name'
|
600
|
-
FROM information_schema.key_column_usage fk
|
601
|
-
WHERE fk.referenced_column_name is not null
|
602
|
-
AND fk.table_schema = 'archiving_development'
|
603
|
-
AND fk.table_name = 'posts_archive'
|
604
|
-
|
605
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
606
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
607
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
608
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
609
|
-
,fk.referenced_column_name as 'primary_key'
|
610
|
-
,fk.column_name as 'column'
|
611
|
-
,fk.constraint_name as 'name'
|
612
|
-
FROM information_schema.key_column_usage fk
|
613
|
-
WHERE fk.referenced_column_name is not null
|
614
|
-
AND fk.table_schema = 'archiving_development'
|
615
|
-
AND fk.table_name = 'log_days'
|
616
|
-
[0m
|
617
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_days`
|
618
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
619
|
-
,fk.referenced_column_name as 'primary_key'
|
620
|
-
,fk.column_name as 'column'
|
621
|
-
,fk.constraint_name as 'name'
|
622
|
-
FROM information_schema.key_column_usage fk
|
623
|
-
WHERE fk.referenced_column_name is not null
|
624
|
-
AND fk.table_schema = 'archiving_development'
|
625
|
-
AND fk.table_name = 'log_days_archive'
|
626
|
-
[0m
|
627
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
628
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
629
|
-
,fk.referenced_column_name as 'primary_key'
|
630
|
-
,fk.column_name as 'column'
|
631
|
-
,fk.constraint_name as 'name'
|
632
|
-
FROM information_schema.key_column_usage fk
|
633
|
-
WHERE fk.referenced_column_name is not null
|
634
|
-
AND fk.table_schema = 'archiving_development'
|
635
|
-
AND fk.table_name = 'log_lines'
|
636
|
-
[0m
|
637
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
638
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
639
|
-
,fk.referenced_column_name as 'primary_key'
|
640
|
-
,fk.column_name as 'column'
|
641
|
-
,fk.constraint_name as 'name'
|
642
|
-
FROM information_schema.key_column_usage fk
|
643
|
-
WHERE fk.referenced_column_name is not null
|
644
|
-
AND fk.table_schema = 'archiving_development'
|
645
|
-
AND fk.table_name = 'log_lines_archive'
|
646
|
-
[0m
|
647
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
648
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
649
|
-
,fk.referenced_column_name as 'primary_key'
|
650
|
-
,fk.column_name as 'column'
|
651
|
-
,fk.constraint_name as 'name'
|
652
|
-
FROM information_schema.key_column_usage fk
|
653
|
-
WHERE fk.referenced_column_name is not null
|
654
|
-
AND fk.table_schema = 'archiving_development'
|
655
|
-
AND fk.table_name = 'log_others'
|
656
|
-
[0m
|
657
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_others`
|
658
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
659
|
-
,fk.referenced_column_name as 'primary_key'
|
660
|
-
,fk.column_name as 'column'
|
661
|
-
,fk.constraint_name as 'name'
|
662
|
-
FROM information_schema.key_column_usage fk
|
663
|
-
WHERE fk.referenced_column_name is not null
|
664
|
-
AND fk.table_schema = 'archiving_development'
|
665
|
-
AND fk.table_name = 'log_others_archive'
|
666
|
-
[0m
|
667
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others_archive`
|
668
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
669
|
-
,fk.referenced_column_name as 'primary_key'
|
670
|
-
,fk.column_name as 'column'
|
671
|
-
,fk.constraint_name as 'name'
|
672
|
-
FROM information_schema.key_column_usage fk
|
673
|
-
WHERE fk.referenced_column_name is not null
|
674
|
-
AND fk.table_schema = 'archiving_development'
|
675
|
-
AND fk.table_name = 'posts'
|
676
|
-
[0m
|
677
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
678
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
679
|
-
,fk.referenced_column_name as 'primary_key'
|
680
|
-
,fk.column_name as 'column'
|
681
|
-
,fk.constraint_name as 'name'
|
682
|
-
FROM information_schema.key_column_usage fk
|
683
|
-
WHERE fk.referenced_column_name is not null
|
684
|
-
AND fk.table_schema = 'archiving_development'
|
685
|
-
AND fk.table_name = 'posts_archive'
|
686
|
-
[0m
|
687
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
688
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
689
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
690
|
-
Migrating to LogOther (20161103093656)
|
691
|
-
[1m[36m (26.0ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
692
|
-
[1m[35m (1.9ms)[0m DROP TABLE `log_others`
|
693
|
-
[1m[36mSQL (5.9ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'[0m
|
694
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
695
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
696
|
-
,fk.referenced_column_name as 'primary_key'
|
697
|
-
,fk.column_name as 'column'
|
698
|
-
,fk.constraint_name as 'name'
|
699
|
-
FROM information_schema.key_column_usage fk
|
700
|
-
WHERE fk.referenced_column_name is not null
|
701
|
-
AND fk.table_schema = 'archiving_development'
|
702
|
-
AND fk.table_name = 'log_days'
|
703
|
-
[0m
|
704
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
705
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
706
|
-
,fk.referenced_column_name as 'primary_key'
|
707
|
-
,fk.column_name as 'column'
|
708
|
-
,fk.constraint_name as 'name'
|
709
|
-
FROM information_schema.key_column_usage fk
|
710
|
-
WHERE fk.referenced_column_name is not null
|
711
|
-
AND fk.table_schema = 'archiving_development'
|
712
|
-
AND fk.table_name = 'log_days_archive'
|
713
|
-
[0m
|
714
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
715
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
716
|
-
,fk.referenced_column_name as 'primary_key'
|
717
|
-
,fk.column_name as 'column'
|
718
|
-
,fk.constraint_name as 'name'
|
719
|
-
FROM information_schema.key_column_usage fk
|
720
|
-
WHERE fk.referenced_column_name is not null
|
721
|
-
AND fk.table_schema = 'archiving_development'
|
722
|
-
AND fk.table_name = 'log_lines'
|
723
|
-
[0m
|
724
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
725
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
726
|
-
,fk.referenced_column_name as 'primary_key'
|
727
|
-
,fk.column_name as 'column'
|
728
|
-
,fk.constraint_name as 'name'
|
729
|
-
FROM information_schema.key_column_usage fk
|
730
|
-
WHERE fk.referenced_column_name is not null
|
731
|
-
AND fk.table_schema = 'archiving_development'
|
732
|
-
AND fk.table_name = 'log_lines_archive'
|
733
|
-
[0m
|
734
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
735
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
736
|
-
,fk.referenced_column_name as 'primary_key'
|
737
|
-
,fk.column_name as 'column'
|
738
|
-
,fk.constraint_name as 'name'
|
739
|
-
FROM information_schema.key_column_usage fk
|
740
|
-
WHERE fk.referenced_column_name is not null
|
741
|
-
AND fk.table_schema = 'archiving_development'
|
742
|
-
AND fk.table_name = 'posts'
|
743
|
-
[0m
|
744
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
745
|
-
[1m[36m (0.2ms)[0m [1mSELECT 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 = 'archiving_development'
|
752
|
-
AND fk.table_name = 'posts_archive'
|
753
|
-
[0m
|
754
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
755
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
756
|
-
Migrating to LogOther (20161103093656)
|
757
|
-
[1m[35m (12.0ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
758
|
-
[1m[36m (10.5ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
759
|
-
[1m[35m (0.2ms)[0m BEGIN
|
760
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
761
|
-
[1m[35m (10.9ms)[0m COMMIT
|
762
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
763
|
-
[1m[35m (0.2ms)[0m SELECT 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 = 'archiving_development'
|
770
|
-
AND fk.table_name = 'log_days'
|
771
|
-
|
772
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
773
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
774
|
-
,fk.referenced_column_name as 'primary_key'
|
775
|
-
,fk.column_name as 'column'
|
776
|
-
,fk.constraint_name as 'name'
|
777
|
-
FROM information_schema.key_column_usage fk
|
778
|
-
WHERE fk.referenced_column_name is not null
|
779
|
-
AND fk.table_schema = 'archiving_development'
|
780
|
-
AND fk.table_name = 'log_days_archive'
|
781
|
-
|
782
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
783
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
784
|
-
,fk.referenced_column_name as 'primary_key'
|
785
|
-
,fk.column_name as 'column'
|
786
|
-
,fk.constraint_name as 'name'
|
787
|
-
FROM information_schema.key_column_usage fk
|
788
|
-
WHERE fk.referenced_column_name is not null
|
789
|
-
AND fk.table_schema = 'archiving_development'
|
790
|
-
AND fk.table_name = 'log_lines'
|
791
|
-
|
792
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
793
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
794
|
-
,fk.referenced_column_name as 'primary_key'
|
795
|
-
,fk.column_name as 'column'
|
796
|
-
,fk.constraint_name as 'name'
|
797
|
-
FROM information_schema.key_column_usage fk
|
798
|
-
WHERE fk.referenced_column_name is not null
|
799
|
-
AND fk.table_schema = 'archiving_development'
|
800
|
-
AND fk.table_name = 'log_lines_archive'
|
801
|
-
|
802
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
803
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
804
|
-
,fk.referenced_column_name as 'primary_key'
|
805
|
-
,fk.column_name as 'column'
|
806
|
-
,fk.constraint_name as 'name'
|
807
|
-
FROM information_schema.key_column_usage fk
|
808
|
-
WHERE fk.referenced_column_name is not null
|
809
|
-
AND fk.table_schema = 'archiving_development'
|
810
|
-
AND fk.table_name = 'log_others'
|
811
|
-
|
812
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
813
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
814
|
-
,fk.referenced_column_name as 'primary_key'
|
815
|
-
,fk.column_name as 'column'
|
816
|
-
,fk.constraint_name as 'name'
|
817
|
-
FROM information_schema.key_column_usage fk
|
818
|
-
WHERE fk.referenced_column_name is not null
|
819
|
-
AND fk.table_schema = 'archiving_development'
|
820
|
-
AND fk.table_name = 'log_others_archive'
|
821
|
-
|
822
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others_archive`[0m
|
823
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
824
|
-
,fk.referenced_column_name as 'primary_key'
|
825
|
-
,fk.column_name as 'column'
|
826
|
-
,fk.constraint_name as 'name'
|
827
|
-
FROM information_schema.key_column_usage fk
|
828
|
-
WHERE fk.referenced_column_name is not null
|
829
|
-
AND fk.table_schema = 'archiving_development'
|
830
|
-
AND fk.table_name = 'posts'
|
831
|
-
|
832
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
833
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
834
|
-
,fk.referenced_column_name as 'primary_key'
|
835
|
-
,fk.column_name as 'column'
|
836
|
-
,fk.constraint_name as 'name'
|
837
|
-
FROM information_schema.key_column_usage fk
|
838
|
-
WHERE fk.referenced_column_name is not null
|
839
|
-
AND fk.table_schema = 'archiving_development'
|
840
|
-
AND fk.table_name = 'posts_archive'
|
841
|
-
|
842
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
843
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
844
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
845
|
-
Migrating to LogOther (20161103093656)
|
846
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
847
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
848
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
849
|
-
Migrating to LogOther (20161103093656)
|
850
|
-
[1m[36m (2.1ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
851
|
-
[1m[35m (1.3ms)[0m DROP TABLE `log_others`
|
852
|
-
[1m[36mSQL (5.8ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'[0m
|
853
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
854
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
855
|
-
,fk.referenced_column_name as 'primary_key'
|
856
|
-
,fk.column_name as 'column'
|
857
|
-
,fk.constraint_name as 'name'
|
858
|
-
FROM information_schema.key_column_usage fk
|
859
|
-
WHERE fk.referenced_column_name is not null
|
860
|
-
AND fk.table_schema = 'archiving_development'
|
861
|
-
AND fk.table_name = 'log_days'
|
862
|
-
[0m
|
863
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
864
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
865
|
-
,fk.referenced_column_name as 'primary_key'
|
866
|
-
,fk.column_name as 'column'
|
867
|
-
,fk.constraint_name as 'name'
|
868
|
-
FROM information_schema.key_column_usage fk
|
869
|
-
WHERE fk.referenced_column_name is not null
|
870
|
-
AND fk.table_schema = 'archiving_development'
|
871
|
-
AND fk.table_name = 'log_days_archive'
|
872
|
-
[0m
|
873
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
874
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
875
|
-
,fk.referenced_column_name as 'primary_key'
|
876
|
-
,fk.column_name as 'column'
|
877
|
-
,fk.constraint_name as 'name'
|
878
|
-
FROM information_schema.key_column_usage fk
|
879
|
-
WHERE fk.referenced_column_name is not null
|
880
|
-
AND fk.table_schema = 'archiving_development'
|
881
|
-
AND fk.table_name = 'log_lines'
|
882
|
-
[0m
|
883
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
884
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
885
|
-
,fk.referenced_column_name as 'primary_key'
|
886
|
-
,fk.column_name as 'column'
|
887
|
-
,fk.constraint_name as 'name'
|
888
|
-
FROM information_schema.key_column_usage fk
|
889
|
-
WHERE fk.referenced_column_name is not null
|
890
|
-
AND fk.table_schema = 'archiving_development'
|
891
|
-
AND fk.table_name = 'log_lines_archive'
|
892
|
-
[0m
|
893
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
894
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
895
|
-
,fk.referenced_column_name as 'primary_key'
|
896
|
-
,fk.column_name as 'column'
|
897
|
-
,fk.constraint_name as 'name'
|
898
|
-
FROM information_schema.key_column_usage fk
|
899
|
-
WHERE fk.referenced_column_name is not null
|
900
|
-
AND fk.table_schema = 'archiving_development'
|
901
|
-
AND fk.table_name = 'posts'
|
902
|
-
[0m
|
903
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
904
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
905
|
-
,fk.referenced_column_name as 'primary_key'
|
906
|
-
,fk.column_name as 'column'
|
907
|
-
,fk.constraint_name as 'name'
|
908
|
-
FROM information_schema.key_column_usage fk
|
909
|
-
WHERE fk.referenced_column_name is not null
|
910
|
-
AND fk.table_schema = 'archiving_development'
|
911
|
-
AND fk.table_name = 'posts_archive'
|
912
|
-
[0m
|
913
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `posts_archive`
|
914
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
915
|
-
Migrating to LogOther (20161103093656)
|
916
|
-
[1m[35m (9.8ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
917
|
-
[1m[36m (9.4ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
918
|
-
[1m[35m (0.1ms)[0m BEGIN
|
919
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
920
|
-
[1m[35m (0.3ms)[0m COMMIT
|
921
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
922
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
923
|
-
,fk.referenced_column_name as 'primary_key'
|
924
|
-
,fk.column_name as 'column'
|
925
|
-
,fk.constraint_name as 'name'
|
926
|
-
FROM information_schema.key_column_usage fk
|
927
|
-
WHERE fk.referenced_column_name is not null
|
928
|
-
AND fk.table_schema = 'archiving_development'
|
929
|
-
AND fk.table_name = 'log_days'
|
930
|
-
|
931
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
932
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
933
|
-
,fk.referenced_column_name as 'primary_key'
|
934
|
-
,fk.column_name as 'column'
|
935
|
-
,fk.constraint_name as 'name'
|
936
|
-
FROM information_schema.key_column_usage fk
|
937
|
-
WHERE fk.referenced_column_name is not null
|
938
|
-
AND fk.table_schema = 'archiving_development'
|
939
|
-
AND fk.table_name = 'log_days_archive'
|
940
|
-
|
941
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
942
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
943
|
-
,fk.referenced_column_name as 'primary_key'
|
944
|
-
,fk.column_name as 'column'
|
945
|
-
,fk.constraint_name as 'name'
|
946
|
-
FROM information_schema.key_column_usage fk
|
947
|
-
WHERE fk.referenced_column_name is not null
|
948
|
-
AND fk.table_schema = 'archiving_development'
|
949
|
-
AND fk.table_name = 'log_lines'
|
950
|
-
|
951
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
952
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
953
|
-
,fk.referenced_column_name as 'primary_key'
|
954
|
-
,fk.column_name as 'column'
|
955
|
-
,fk.constraint_name as 'name'
|
956
|
-
FROM information_schema.key_column_usage fk
|
957
|
-
WHERE fk.referenced_column_name is not null
|
958
|
-
AND fk.table_schema = 'archiving_development'
|
959
|
-
AND fk.table_name = 'log_lines_archive'
|
960
|
-
|
961
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
962
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
963
|
-
,fk.referenced_column_name as 'primary_key'
|
964
|
-
,fk.column_name as 'column'
|
965
|
-
,fk.constraint_name as 'name'
|
966
|
-
FROM information_schema.key_column_usage fk
|
967
|
-
WHERE fk.referenced_column_name is not null
|
968
|
-
AND fk.table_schema = 'archiving_development'
|
969
|
-
AND fk.table_name = 'log_others'
|
970
|
-
|
971
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
972
|
-
[1m[35m (0.5ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
973
|
-
,fk.referenced_column_name as 'primary_key'
|
974
|
-
,fk.column_name as 'column'
|
975
|
-
,fk.constraint_name as 'name'
|
976
|
-
FROM information_schema.key_column_usage fk
|
977
|
-
WHERE fk.referenced_column_name is not null
|
978
|
-
AND fk.table_schema = 'archiving_development'
|
979
|
-
AND fk.table_name = 'log_others_archive'
|
980
|
-
|
981
|
-
[1m[36m (0.3ms)[0m [1mSHOW CREATE TABLE `log_others_archive`[0m
|
982
|
-
[1m[35m (0.6ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
983
|
-
,fk.referenced_column_name as 'primary_key'
|
984
|
-
,fk.column_name as 'column'
|
985
|
-
,fk.constraint_name as 'name'
|
986
|
-
FROM information_schema.key_column_usage fk
|
987
|
-
WHERE fk.referenced_column_name is not null
|
988
|
-
AND fk.table_schema = 'archiving_development'
|
989
|
-
AND fk.table_name = 'posts'
|
990
|
-
|
991
|
-
[1m[36m (0.4ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
992
|
-
[1m[35m (0.6ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
993
|
-
,fk.referenced_column_name as 'primary_key'
|
994
|
-
,fk.column_name as 'column'
|
995
|
-
,fk.constraint_name as 'name'
|
996
|
-
FROM information_schema.key_column_usage fk
|
997
|
-
WHERE fk.referenced_column_name is not null
|
998
|
-
AND fk.table_schema = 'archiving_development'
|
999
|
-
AND fk.table_name = 'posts_archive'
|
1000
|
-
|
1001
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1002
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1003
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1004
|
-
[1m[35m (0.4ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1005
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1006
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1007
|
-
Migrating to LogOther (20161103093656)
|
1008
|
-
[1m[36m (2.0ms)[0m [1mDROP TABLE `log_others`[0m
|
1009
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1010
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1011
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1012
|
-
,fk.referenced_column_name as 'primary_key'
|
1013
|
-
,fk.column_name as 'column'
|
1014
|
-
,fk.constraint_name as 'name'
|
1015
|
-
FROM information_schema.key_column_usage fk
|
1016
|
-
WHERE fk.referenced_column_name is not null
|
1017
|
-
AND fk.table_schema = 'archiving_development'
|
1018
|
-
AND fk.table_name = 'log_days'
|
1019
|
-
|
1020
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1021
|
-
[1m[35m (0.7ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1022
|
-
,fk.referenced_column_name as 'primary_key'
|
1023
|
-
,fk.column_name as 'column'
|
1024
|
-
,fk.constraint_name as 'name'
|
1025
|
-
FROM information_schema.key_column_usage fk
|
1026
|
-
WHERE fk.referenced_column_name is not null
|
1027
|
-
AND fk.table_schema = 'archiving_development'
|
1028
|
-
AND fk.table_name = 'log_days_archive'
|
1029
|
-
|
1030
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1031
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1032
|
-
,fk.referenced_column_name as 'primary_key'
|
1033
|
-
,fk.column_name as 'column'
|
1034
|
-
,fk.constraint_name as 'name'
|
1035
|
-
FROM information_schema.key_column_usage fk
|
1036
|
-
WHERE fk.referenced_column_name is not null
|
1037
|
-
AND fk.table_schema = 'archiving_development'
|
1038
|
-
AND fk.table_name = 'log_lines'
|
1039
|
-
|
1040
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1041
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1042
|
-
,fk.referenced_column_name as 'primary_key'
|
1043
|
-
,fk.column_name as 'column'
|
1044
|
-
,fk.constraint_name as 'name'
|
1045
|
-
FROM information_schema.key_column_usage fk
|
1046
|
-
WHERE fk.referenced_column_name is not null
|
1047
|
-
AND fk.table_schema = 'archiving_development'
|
1048
|
-
AND fk.table_name = 'log_lines_archive'
|
1049
|
-
|
1050
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1051
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1052
|
-
,fk.referenced_column_name as 'primary_key'
|
1053
|
-
,fk.column_name as 'column'
|
1054
|
-
,fk.constraint_name as 'name'
|
1055
|
-
FROM information_schema.key_column_usage fk
|
1056
|
-
WHERE fk.referenced_column_name is not null
|
1057
|
-
AND fk.table_schema = 'archiving_development'
|
1058
|
-
AND fk.table_name = 'log_others_archive'
|
1059
|
-
|
1060
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others_archive`[0m
|
1061
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1062
|
-
,fk.referenced_column_name as 'primary_key'
|
1063
|
-
,fk.column_name as 'column'
|
1064
|
-
,fk.constraint_name as 'name'
|
1065
|
-
FROM information_schema.key_column_usage fk
|
1066
|
-
WHERE fk.referenced_column_name is not null
|
1067
|
-
AND fk.table_schema = 'archiving_development'
|
1068
|
-
AND fk.table_name = 'posts'
|
1069
|
-
|
1070
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1071
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1072
|
-
,fk.referenced_column_name as 'primary_key'
|
1073
|
-
,fk.column_name as 'column'
|
1074
|
-
,fk.constraint_name as 'name'
|
1075
|
-
FROM information_schema.key_column_usage fk
|
1076
|
-
WHERE fk.referenced_column_name is not null
|
1077
|
-
AND fk.table_schema = 'archiving_development'
|
1078
|
-
AND fk.table_name = 'posts_archive'
|
1079
|
-
|
1080
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1081
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1082
|
-
Migrating to LogOther (20161103093656)
|
1083
|
-
[1m[35m (9.2ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1084
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1085
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
1086
|
-
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
1087
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1088
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1089
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1090
|
-
[1m[35m (9.2ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1091
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1092
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
1093
|
-
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
1094
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1095
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1096
|
-
,fk.referenced_column_name as 'primary_key'
|
1097
|
-
,fk.column_name as 'column'
|
1098
|
-
,fk.constraint_name as 'name'
|
1099
|
-
FROM information_schema.key_column_usage fk
|
1100
|
-
WHERE fk.referenced_column_name is not null
|
1101
|
-
AND fk.table_schema = 'archiving_development'
|
1102
|
-
AND fk.table_name = 'log_days'
|
1103
|
-
[0m
|
1104
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
1105
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1106
|
-
,fk.referenced_column_name as 'primary_key'
|
1107
|
-
,fk.column_name as 'column'
|
1108
|
-
,fk.constraint_name as 'name'
|
1109
|
-
FROM information_schema.key_column_usage fk
|
1110
|
-
WHERE fk.referenced_column_name is not null
|
1111
|
-
AND fk.table_schema = 'archiving_development'
|
1112
|
-
AND fk.table_name = 'log_days_archive'
|
1113
|
-
[0m
|
1114
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
1115
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1116
|
-
,fk.referenced_column_name as 'primary_key'
|
1117
|
-
,fk.column_name as 'column'
|
1118
|
-
,fk.constraint_name as 'name'
|
1119
|
-
FROM information_schema.key_column_usage fk
|
1120
|
-
WHERE fk.referenced_column_name is not null
|
1121
|
-
AND fk.table_schema = 'archiving_development'
|
1122
|
-
AND fk.table_name = 'log_lines'
|
1123
|
-
[0m
|
1124
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
1125
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1126
|
-
,fk.referenced_column_name as 'primary_key'
|
1127
|
-
,fk.column_name as 'column'
|
1128
|
-
,fk.constraint_name as 'name'
|
1129
|
-
FROM information_schema.key_column_usage fk
|
1130
|
-
WHERE fk.referenced_column_name is not null
|
1131
|
-
AND fk.table_schema = 'archiving_development'
|
1132
|
-
AND fk.table_name = 'log_lines_archive'
|
1133
|
-
[0m
|
1134
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
1135
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1136
|
-
,fk.referenced_column_name as 'primary_key'
|
1137
|
-
,fk.column_name as 'column'
|
1138
|
-
,fk.constraint_name as 'name'
|
1139
|
-
FROM information_schema.key_column_usage fk
|
1140
|
-
WHERE fk.referenced_column_name is not null
|
1141
|
-
AND fk.table_schema = 'archiving_development'
|
1142
|
-
AND fk.table_name = 'log_others'
|
1143
|
-
[0m
|
1144
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
1145
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1146
|
-
,fk.referenced_column_name as 'primary_key'
|
1147
|
-
,fk.column_name as 'column'
|
1148
|
-
,fk.constraint_name as 'name'
|
1149
|
-
FROM information_schema.key_column_usage fk
|
1150
|
-
WHERE fk.referenced_column_name is not null
|
1151
|
-
AND fk.table_schema = 'archiving_development'
|
1152
|
-
AND fk.table_name = 'log_others_archive'
|
1153
|
-
[0m
|
1154
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others_archive`
|
1155
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1156
|
-
,fk.referenced_column_name as 'primary_key'
|
1157
|
-
,fk.column_name as 'column'
|
1158
|
-
,fk.constraint_name as 'name'
|
1159
|
-
FROM information_schema.key_column_usage fk
|
1160
|
-
WHERE fk.referenced_column_name is not null
|
1161
|
-
AND fk.table_schema = 'archiving_development'
|
1162
|
-
AND fk.table_name = 'posts'
|
1163
|
-
[0m
|
1164
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
1165
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1166
|
-
,fk.referenced_column_name as 'primary_key'
|
1167
|
-
,fk.column_name as 'column'
|
1168
|
-
,fk.constraint_name as 'name'
|
1169
|
-
FROM information_schema.key_column_usage fk
|
1170
|
-
WHERE fk.referenced_column_name is not null
|
1171
|
-
AND fk.table_schema = 'archiving_development'
|
1172
|
-
AND fk.table_name = 'posts_archive'
|
1173
|
-
[0m
|
1174
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
1175
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1176
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1177
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1178
|
-
[1m[36m (2.0ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
1179
|
-
[1m[35mSQL (0.4ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
1180
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1181
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1182
|
-
,fk.referenced_column_name as 'primary_key'
|
1183
|
-
,fk.column_name as 'column'
|
1184
|
-
,fk.constraint_name as 'name'
|
1185
|
-
FROM information_schema.key_column_usage fk
|
1186
|
-
WHERE fk.referenced_column_name is not null
|
1187
|
-
AND fk.table_schema = 'archiving_development'
|
1188
|
-
AND fk.table_name = 'log_days'
|
1189
|
-
|
1190
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1191
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1192
|
-
,fk.referenced_column_name as 'primary_key'
|
1193
|
-
,fk.column_name as 'column'
|
1194
|
-
,fk.constraint_name as 'name'
|
1195
|
-
FROM information_schema.key_column_usage fk
|
1196
|
-
WHERE fk.referenced_column_name is not null
|
1197
|
-
AND fk.table_schema = 'archiving_development'
|
1198
|
-
AND fk.table_name = 'log_days_archive'
|
1199
|
-
|
1200
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1201
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1202
|
-
,fk.referenced_column_name as 'primary_key'
|
1203
|
-
,fk.column_name as 'column'
|
1204
|
-
,fk.constraint_name as 'name'
|
1205
|
-
FROM information_schema.key_column_usage fk
|
1206
|
-
WHERE fk.referenced_column_name is not null
|
1207
|
-
AND fk.table_schema = 'archiving_development'
|
1208
|
-
AND fk.table_name = 'log_lines'
|
1209
|
-
|
1210
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1211
|
-
[1m[35m (0.2ms)[0m SELECT 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 = 'archiving_development'
|
1218
|
-
AND fk.table_name = 'log_lines_archive'
|
1219
|
-
|
1220
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1221
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1222
|
-
,fk.referenced_column_name as 'primary_key'
|
1223
|
-
,fk.column_name as 'column'
|
1224
|
-
,fk.constraint_name as 'name'
|
1225
|
-
FROM information_schema.key_column_usage fk
|
1226
|
-
WHERE fk.referenced_column_name is not null
|
1227
|
-
AND fk.table_schema = 'archiving_development'
|
1228
|
-
AND fk.table_name = 'log_others'
|
1229
|
-
|
1230
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
1231
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1232
|
-
,fk.referenced_column_name as 'primary_key'
|
1233
|
-
,fk.column_name as 'column'
|
1234
|
-
,fk.constraint_name as 'name'
|
1235
|
-
FROM information_schema.key_column_usage fk
|
1236
|
-
WHERE fk.referenced_column_name is not null
|
1237
|
-
AND fk.table_schema = 'archiving_development'
|
1238
|
-
AND fk.table_name = 'posts'
|
1239
|
-
|
1240
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1241
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1242
|
-
,fk.referenced_column_name as 'primary_key'
|
1243
|
-
,fk.column_name as 'column'
|
1244
|
-
,fk.constraint_name as 'name'
|
1245
|
-
FROM information_schema.key_column_usage fk
|
1246
|
-
WHERE fk.referenced_column_name is not null
|
1247
|
-
AND fk.table_schema = 'archiving_development'
|
1248
|
-
AND fk.table_name = 'posts_archive'
|
1249
|
-
|
1250
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1251
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1252
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1253
|
-
Migrating to CreateLogOther (20161103093656)
|
1254
|
-
[1m[36m (1.8ms)[0m [1mDROP TABLE `log_others`[0m
|
1255
|
-
[1m[35mSQL (0.4ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1256
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1257
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1258
|
-
,fk.referenced_column_name as 'primary_key'
|
1259
|
-
,fk.column_name as 'column'
|
1260
|
-
,fk.constraint_name as 'name'
|
1261
|
-
FROM information_schema.key_column_usage fk
|
1262
|
-
WHERE fk.referenced_column_name is not null
|
1263
|
-
AND fk.table_schema = 'archiving_development'
|
1264
|
-
AND fk.table_name = 'log_days'
|
1265
|
-
|
1266
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1267
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1268
|
-
,fk.referenced_column_name as 'primary_key'
|
1269
|
-
,fk.column_name as 'column'
|
1270
|
-
,fk.constraint_name as 'name'
|
1271
|
-
FROM information_schema.key_column_usage fk
|
1272
|
-
WHERE fk.referenced_column_name is not null
|
1273
|
-
AND fk.table_schema = 'archiving_development'
|
1274
|
-
AND fk.table_name = 'log_days_archive'
|
1275
|
-
|
1276
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1277
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1278
|
-
,fk.referenced_column_name as 'primary_key'
|
1279
|
-
,fk.column_name as 'column'
|
1280
|
-
,fk.constraint_name as 'name'
|
1281
|
-
FROM information_schema.key_column_usage fk
|
1282
|
-
WHERE fk.referenced_column_name is not null
|
1283
|
-
AND fk.table_schema = 'archiving_development'
|
1284
|
-
AND fk.table_name = 'log_lines'
|
1285
|
-
|
1286
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1287
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1288
|
-
,fk.referenced_column_name as 'primary_key'
|
1289
|
-
,fk.column_name as 'column'
|
1290
|
-
,fk.constraint_name as 'name'
|
1291
|
-
FROM information_schema.key_column_usage fk
|
1292
|
-
WHERE fk.referenced_column_name is not null
|
1293
|
-
AND fk.table_schema = 'archiving_development'
|
1294
|
-
AND fk.table_name = 'log_lines_archive'
|
1295
|
-
|
1296
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1297
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1298
|
-
,fk.referenced_column_name as 'primary_key'
|
1299
|
-
,fk.column_name as 'column'
|
1300
|
-
,fk.constraint_name as 'name'
|
1301
|
-
FROM information_schema.key_column_usage fk
|
1302
|
-
WHERE fk.referenced_column_name is not null
|
1303
|
-
AND fk.table_schema = 'archiving_development'
|
1304
|
-
AND fk.table_name = 'posts'
|
1305
|
-
|
1306
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1307
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1308
|
-
,fk.referenced_column_name as 'primary_key'
|
1309
|
-
,fk.column_name as 'column'
|
1310
|
-
,fk.constraint_name as 'name'
|
1311
|
-
FROM information_schema.key_column_usage fk
|
1312
|
-
WHERE fk.referenced_column_name is not null
|
1313
|
-
AND fk.table_schema = 'archiving_development'
|
1314
|
-
AND fk.table_name = 'posts_archive'
|
1315
|
-
|
1316
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1317
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1318
|
-
Migrating to CreateLogOther (20161103093656)
|
1319
|
-
[1m[35m (9.9ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1320
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1321
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
1322
|
-
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
1323
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1324
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1325
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1326
|
-
[1m[35m (10.4ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1327
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1328
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
1329
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1330
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1331
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1332
|
-
,fk.referenced_column_name as 'primary_key'
|
1333
|
-
,fk.column_name as 'column'
|
1334
|
-
,fk.constraint_name as 'name'
|
1335
|
-
FROM information_schema.key_column_usage fk
|
1336
|
-
WHERE fk.referenced_column_name is not null
|
1337
|
-
AND fk.table_schema = 'archiving_development'
|
1338
|
-
AND fk.table_name = 'log_days'
|
1339
|
-
[0m
|
1340
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
1341
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1342
|
-
,fk.referenced_column_name as 'primary_key'
|
1343
|
-
,fk.column_name as 'column'
|
1344
|
-
,fk.constraint_name as 'name'
|
1345
|
-
FROM information_schema.key_column_usage fk
|
1346
|
-
WHERE fk.referenced_column_name is not null
|
1347
|
-
AND fk.table_schema = 'archiving_development'
|
1348
|
-
AND fk.table_name = 'log_days_archive'
|
1349
|
-
[0m
|
1350
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
1351
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1352
|
-
,fk.referenced_column_name as 'primary_key'
|
1353
|
-
,fk.column_name as 'column'
|
1354
|
-
,fk.constraint_name as 'name'
|
1355
|
-
FROM information_schema.key_column_usage fk
|
1356
|
-
WHERE fk.referenced_column_name is not null
|
1357
|
-
AND fk.table_schema = 'archiving_development'
|
1358
|
-
AND fk.table_name = 'log_lines'
|
1359
|
-
[0m
|
1360
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
1361
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1362
|
-
,fk.referenced_column_name as 'primary_key'
|
1363
|
-
,fk.column_name as 'column'
|
1364
|
-
,fk.constraint_name as 'name'
|
1365
|
-
FROM information_schema.key_column_usage fk
|
1366
|
-
WHERE fk.referenced_column_name is not null
|
1367
|
-
AND fk.table_schema = 'archiving_development'
|
1368
|
-
AND fk.table_name = 'log_lines_archive'
|
1369
|
-
[0m
|
1370
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
1371
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1372
|
-
,fk.referenced_column_name as 'primary_key'
|
1373
|
-
,fk.column_name as 'column'
|
1374
|
-
,fk.constraint_name as 'name'
|
1375
|
-
FROM information_schema.key_column_usage fk
|
1376
|
-
WHERE fk.referenced_column_name is not null
|
1377
|
-
AND fk.table_schema = 'archiving_development'
|
1378
|
-
AND fk.table_name = 'log_others'
|
1379
|
-
[0m
|
1380
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_others`
|
1381
|
-
[1m[36m (1.6ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1382
|
-
,fk.referenced_column_name as 'primary_key'
|
1383
|
-
,fk.column_name as 'column'
|
1384
|
-
,fk.constraint_name as 'name'
|
1385
|
-
FROM information_schema.key_column_usage fk
|
1386
|
-
WHERE fk.referenced_column_name is not null
|
1387
|
-
AND fk.table_schema = 'archiving_development'
|
1388
|
-
AND fk.table_name = 'log_others_archive'
|
1389
|
-
[0m
|
1390
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others_archive`
|
1391
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1392
|
-
,fk.referenced_column_name as 'primary_key'
|
1393
|
-
,fk.column_name as 'column'
|
1394
|
-
,fk.constraint_name as 'name'
|
1395
|
-
FROM information_schema.key_column_usage fk
|
1396
|
-
WHERE fk.referenced_column_name is not null
|
1397
|
-
AND fk.table_schema = 'archiving_development'
|
1398
|
-
AND fk.table_name = 'posts'
|
1399
|
-
[0m
|
1400
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
1401
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1402
|
-
,fk.referenced_column_name as 'primary_key'
|
1403
|
-
,fk.column_name as 'column'
|
1404
|
-
,fk.constraint_name as 'name'
|
1405
|
-
FROM information_schema.key_column_usage fk
|
1406
|
-
WHERE fk.referenced_column_name is not null
|
1407
|
-
AND fk.table_schema = 'archiving_development'
|
1408
|
-
AND fk.table_name = 'posts_archive'
|
1409
|
-
[0m
|
1410
|
-
[1m[35m (0.5ms)[0m SHOW CREATE TABLE `posts_archive`
|
1411
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1412
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1413
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1414
|
-
[1m[36m (1.6ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
1415
|
-
[1m[35mSQL (0.7ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
1416
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1417
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1418
|
-
,fk.referenced_column_name as 'primary_key'
|
1419
|
-
,fk.column_name as 'column'
|
1420
|
-
,fk.constraint_name as 'name'
|
1421
|
-
FROM information_schema.key_column_usage fk
|
1422
|
-
WHERE fk.referenced_column_name is not null
|
1423
|
-
AND fk.table_schema = 'archiving_development'
|
1424
|
-
AND fk.table_name = 'log_days'
|
1425
|
-
|
1426
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1427
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1428
|
-
,fk.referenced_column_name as 'primary_key'
|
1429
|
-
,fk.column_name as 'column'
|
1430
|
-
,fk.constraint_name as 'name'
|
1431
|
-
FROM information_schema.key_column_usage fk
|
1432
|
-
WHERE fk.referenced_column_name is not null
|
1433
|
-
AND fk.table_schema = 'archiving_development'
|
1434
|
-
AND fk.table_name = 'log_days_archive'
|
1435
|
-
|
1436
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1437
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1438
|
-
,fk.referenced_column_name as 'primary_key'
|
1439
|
-
,fk.column_name as 'column'
|
1440
|
-
,fk.constraint_name as 'name'
|
1441
|
-
FROM information_schema.key_column_usage fk
|
1442
|
-
WHERE fk.referenced_column_name is not null
|
1443
|
-
AND fk.table_schema = 'archiving_development'
|
1444
|
-
AND fk.table_name = 'log_lines'
|
1445
|
-
|
1446
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1447
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1448
|
-
,fk.referenced_column_name as 'primary_key'
|
1449
|
-
,fk.column_name as 'column'
|
1450
|
-
,fk.constraint_name as 'name'
|
1451
|
-
FROM information_schema.key_column_usage fk
|
1452
|
-
WHERE fk.referenced_column_name is not null
|
1453
|
-
AND fk.table_schema = 'archiving_development'
|
1454
|
-
AND fk.table_name = 'log_lines_archive'
|
1455
|
-
|
1456
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1457
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1458
|
-
,fk.referenced_column_name as 'primary_key'
|
1459
|
-
,fk.column_name as 'column'
|
1460
|
-
,fk.constraint_name as 'name'
|
1461
|
-
FROM information_schema.key_column_usage fk
|
1462
|
-
WHERE fk.referenced_column_name is not null
|
1463
|
-
AND fk.table_schema = 'archiving_development'
|
1464
|
-
AND fk.table_name = 'log_others'
|
1465
|
-
|
1466
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
1467
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1468
|
-
,fk.referenced_column_name as 'primary_key'
|
1469
|
-
,fk.column_name as 'column'
|
1470
|
-
,fk.constraint_name as 'name'
|
1471
|
-
FROM information_schema.key_column_usage fk
|
1472
|
-
WHERE fk.referenced_column_name is not null
|
1473
|
-
AND fk.table_schema = 'archiving_development'
|
1474
|
-
AND fk.table_name = 'posts'
|
1475
|
-
|
1476
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1477
|
-
[1m[35m (0.7ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1478
|
-
,fk.referenced_column_name as 'primary_key'
|
1479
|
-
,fk.column_name as 'column'
|
1480
|
-
,fk.constraint_name as 'name'
|
1481
|
-
FROM information_schema.key_column_usage fk
|
1482
|
-
WHERE fk.referenced_column_name is not null
|
1483
|
-
AND fk.table_schema = 'archiving_development'
|
1484
|
-
AND fk.table_name = 'posts_archive'
|
1485
|
-
|
1486
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1487
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1488
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1489
|
-
[1m[35m (10.1ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1490
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1491
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1492
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1493
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1494
|
-
[1m[35m (1.7ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1495
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1496
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1497
|
-
Migrating to CreateLogOther (20161103093656)
|
1498
|
-
[1m[36m (1.9ms)[0m [1mDROP TABLE `log_others`[0m
|
1499
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1500
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1501
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1502
|
-
,fk.referenced_column_name as 'primary_key'
|
1503
|
-
,fk.column_name as 'column'
|
1504
|
-
,fk.constraint_name as 'name'
|
1505
|
-
FROM information_schema.key_column_usage fk
|
1506
|
-
WHERE fk.referenced_column_name is not null
|
1507
|
-
AND fk.table_schema = 'archiving_development'
|
1508
|
-
AND fk.table_name = 'log_days'
|
1509
|
-
|
1510
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1511
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1512
|
-
,fk.referenced_column_name as 'primary_key'
|
1513
|
-
,fk.column_name as 'column'
|
1514
|
-
,fk.constraint_name as 'name'
|
1515
|
-
FROM information_schema.key_column_usage fk
|
1516
|
-
WHERE fk.referenced_column_name is not null
|
1517
|
-
AND fk.table_schema = 'archiving_development'
|
1518
|
-
AND fk.table_name = 'log_days_archive'
|
1519
|
-
|
1520
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1521
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1522
|
-
,fk.referenced_column_name as 'primary_key'
|
1523
|
-
,fk.column_name as 'column'
|
1524
|
-
,fk.constraint_name as 'name'
|
1525
|
-
FROM information_schema.key_column_usage fk
|
1526
|
-
WHERE fk.referenced_column_name is not null
|
1527
|
-
AND fk.table_schema = 'archiving_development'
|
1528
|
-
AND fk.table_name = 'log_lines'
|
1529
|
-
|
1530
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1531
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1532
|
-
,fk.referenced_column_name as 'primary_key'
|
1533
|
-
,fk.column_name as 'column'
|
1534
|
-
,fk.constraint_name as 'name'
|
1535
|
-
FROM information_schema.key_column_usage fk
|
1536
|
-
WHERE fk.referenced_column_name is not null
|
1537
|
-
AND fk.table_schema = 'archiving_development'
|
1538
|
-
AND fk.table_name = 'log_lines_archive'
|
1539
|
-
|
1540
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1541
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1542
|
-
,fk.referenced_column_name as 'primary_key'
|
1543
|
-
,fk.column_name as 'column'
|
1544
|
-
,fk.constraint_name as 'name'
|
1545
|
-
FROM information_schema.key_column_usage fk
|
1546
|
-
WHERE fk.referenced_column_name is not null
|
1547
|
-
AND fk.table_schema = 'archiving_development'
|
1548
|
-
AND fk.table_name = 'posts'
|
1549
|
-
|
1550
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1551
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1552
|
-
,fk.referenced_column_name as 'primary_key'
|
1553
|
-
,fk.column_name as 'column'
|
1554
|
-
,fk.constraint_name as 'name'
|
1555
|
-
FROM information_schema.key_column_usage fk
|
1556
|
-
WHERE fk.referenced_column_name is not null
|
1557
|
-
AND fk.table_schema = 'archiving_development'
|
1558
|
-
AND fk.table_name = 'posts_archive'
|
1559
|
-
|
1560
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1561
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1562
|
-
Migrating to CreateLogOther (20161103093656)
|
1563
|
-
[1m[35m (9.6ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1564
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1565
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
1566
|
-
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
1567
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1568
|
-
[1m[35m (9.3ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1569
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1570
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
1571
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1572
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1573
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1574
|
-
,fk.referenced_column_name as 'primary_key'
|
1575
|
-
,fk.column_name as 'column'
|
1576
|
-
,fk.constraint_name as 'name'
|
1577
|
-
FROM information_schema.key_column_usage fk
|
1578
|
-
WHERE fk.referenced_column_name is not null
|
1579
|
-
AND fk.table_schema = 'archiving_other_development'
|
1580
|
-
AND fk.table_name = 'log_others_archive'
|
1581
|
-
[0m
|
1582
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_others_archive`
|
1583
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1584
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1585
|
-
Migrating to CreateLogOther (20161103093656)
|
1586
|
-
[1m[36m (24.6ms)[0m [1mDROP TABLE `log_others`[0m
|
1587
|
-
[1m[35mSQL (6.0ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1588
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1589
|
-
[1m[35m (0.8ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1590
|
-
,fk.referenced_column_name as 'primary_key'
|
1591
|
-
,fk.column_name as 'column'
|
1592
|
-
,fk.constraint_name as 'name'
|
1593
|
-
FROM information_schema.key_column_usage fk
|
1594
|
-
WHERE fk.referenced_column_name is not null
|
1595
|
-
AND fk.table_schema = 'archiving_development'
|
1596
|
-
AND fk.table_name = 'log_days'
|
1597
|
-
|
1598
|
-
[1m[36m (0.3ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1599
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1600
|
-
,fk.referenced_column_name as 'primary_key'
|
1601
|
-
,fk.column_name as 'column'
|
1602
|
-
,fk.constraint_name as 'name'
|
1603
|
-
FROM information_schema.key_column_usage fk
|
1604
|
-
WHERE fk.referenced_column_name is not null
|
1605
|
-
AND fk.table_schema = 'archiving_development'
|
1606
|
-
AND fk.table_name = 'log_days_archive'
|
1607
|
-
|
1608
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1609
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1610
|
-
,fk.referenced_column_name as 'primary_key'
|
1611
|
-
,fk.column_name as 'column'
|
1612
|
-
,fk.constraint_name as 'name'
|
1613
|
-
FROM information_schema.key_column_usage fk
|
1614
|
-
WHERE fk.referenced_column_name is not null
|
1615
|
-
AND fk.table_schema = 'archiving_development'
|
1616
|
-
AND fk.table_name = 'log_lines'
|
1617
|
-
|
1618
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1619
|
-
[1m[35m (0.2ms)[0m SELECT 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 = 'archiving_development'
|
1626
|
-
AND fk.table_name = 'log_lines_archive'
|
1627
|
-
|
1628
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1629
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1630
|
-
,fk.referenced_column_name as 'primary_key'
|
1631
|
-
,fk.column_name as 'column'
|
1632
|
-
,fk.constraint_name as 'name'
|
1633
|
-
FROM information_schema.key_column_usage fk
|
1634
|
-
WHERE fk.referenced_column_name is not null
|
1635
|
-
AND fk.table_schema = 'archiving_development'
|
1636
|
-
AND fk.table_name = 'posts'
|
1637
|
-
|
1638
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1639
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1640
|
-
,fk.referenced_column_name as 'primary_key'
|
1641
|
-
,fk.column_name as 'column'
|
1642
|
-
,fk.constraint_name as 'name'
|
1643
|
-
FROM information_schema.key_column_usage fk
|
1644
|
-
WHERE fk.referenced_column_name is not null
|
1645
|
-
AND fk.table_schema = 'archiving_development'
|
1646
|
-
AND fk.table_name = 'posts_archive'
|
1647
|
-
|
1648
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1649
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1650
|
-
Migrating to CreateLogOther (20161103093656)
|
1651
|
-
[1m[35m (28.6ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1652
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1653
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
1654
|
-
[1m[36m (11.3ms)[0m [1mCOMMIT[0m
|
1655
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1656
|
-
[1m[35m (0.4ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1657
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1658
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1659
|
-
Migrating to CreateLogOther (20161103093656)
|
1660
|
-
[1m[36m (24.4ms)[0m [1mDROP TABLE `log_others`[0m
|
1661
|
-
[1m[35mSQL (11.9ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1662
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1663
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1664
|
-
,fk.referenced_column_name as 'primary_key'
|
1665
|
-
,fk.column_name as 'column'
|
1666
|
-
,fk.constraint_name as 'name'
|
1667
|
-
FROM information_schema.key_column_usage fk
|
1668
|
-
WHERE fk.referenced_column_name is not null
|
1669
|
-
AND fk.table_schema = 'archiving_development'
|
1670
|
-
AND fk.table_name = 'log_days'
|
1671
|
-
|
1672
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1673
|
-
[1m[35m (0.2ms)[0m SELECT 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 = 'archiving_development'
|
1680
|
-
AND fk.table_name = 'log_days_archive'
|
1681
|
-
|
1682
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1683
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1684
|
-
,fk.referenced_column_name as 'primary_key'
|
1685
|
-
,fk.column_name as 'column'
|
1686
|
-
,fk.constraint_name as 'name'
|
1687
|
-
FROM information_schema.key_column_usage fk
|
1688
|
-
WHERE fk.referenced_column_name is not null
|
1689
|
-
AND fk.table_schema = 'archiving_development'
|
1690
|
-
AND fk.table_name = 'log_lines'
|
1691
|
-
|
1692
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1693
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1694
|
-
,fk.referenced_column_name as 'primary_key'
|
1695
|
-
,fk.column_name as 'column'
|
1696
|
-
,fk.constraint_name as 'name'
|
1697
|
-
FROM information_schema.key_column_usage fk
|
1698
|
-
WHERE fk.referenced_column_name is not null
|
1699
|
-
AND fk.table_schema = 'archiving_development'
|
1700
|
-
AND fk.table_name = 'log_lines_archive'
|
1701
|
-
|
1702
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1703
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1704
|
-
,fk.referenced_column_name as 'primary_key'
|
1705
|
-
,fk.column_name as 'column'
|
1706
|
-
,fk.constraint_name as 'name'
|
1707
|
-
FROM information_schema.key_column_usage fk
|
1708
|
-
WHERE fk.referenced_column_name is not null
|
1709
|
-
AND fk.table_schema = 'archiving_development'
|
1710
|
-
AND fk.table_name = 'posts'
|
1711
|
-
|
1712
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1713
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1714
|
-
,fk.referenced_column_name as 'primary_key'
|
1715
|
-
,fk.column_name as 'column'
|
1716
|
-
,fk.constraint_name as 'name'
|
1717
|
-
FROM information_schema.key_column_usage fk
|
1718
|
-
WHERE fk.referenced_column_name is not null
|
1719
|
-
AND fk.table_schema = 'archiving_development'
|
1720
|
-
AND fk.table_name = 'posts_archive'
|
1721
|
-
|
1722
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1723
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1724
|
-
Migrating to CreateLogOther (20161103093656)
|
1725
|
-
[1m[35m (11.4ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1726
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1727
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
1728
|
-
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
|
1729
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1730
|
-
[1m[35m (25.2ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1731
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1732
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
1733
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1734
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1735
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1736
|
-
,fk.referenced_column_name as 'primary_key'
|
1737
|
-
,fk.column_name as 'column'
|
1738
|
-
,fk.constraint_name as 'name'
|
1739
|
-
FROM information_schema.key_column_usage fk
|
1740
|
-
WHERE fk.referenced_column_name is not null
|
1741
|
-
AND fk.table_schema = 'archiving_other_development'
|
1742
|
-
AND fk.table_name = 'log_others_archive'
|
1743
|
-
[0m
|
1744
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others_archive`
|
1745
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1746
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1747
|
-
Migrating to CreateLogOther (20161103093656)
|
1748
|
-
[1m[36m (1.7ms)[0m [1mDROP TABLE `log_others`[0m
|
1749
|
-
[1m[35mSQL (0.4ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
1750
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1751
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1752
|
-
,fk.referenced_column_name as 'primary_key'
|
1753
|
-
,fk.column_name as 'column'
|
1754
|
-
,fk.constraint_name as 'name'
|
1755
|
-
FROM information_schema.key_column_usage fk
|
1756
|
-
WHERE fk.referenced_column_name is not null
|
1757
|
-
AND fk.table_schema = 'archiving_development'
|
1758
|
-
AND fk.table_name = 'log_days'
|
1759
|
-
|
1760
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
1761
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1762
|
-
,fk.referenced_column_name as 'primary_key'
|
1763
|
-
,fk.column_name as 'column'
|
1764
|
-
,fk.constraint_name as 'name'
|
1765
|
-
FROM information_schema.key_column_usage fk
|
1766
|
-
WHERE fk.referenced_column_name is not null
|
1767
|
-
AND fk.table_schema = 'archiving_development'
|
1768
|
-
AND fk.table_name = 'log_days_archive'
|
1769
|
-
|
1770
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
1771
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1772
|
-
,fk.referenced_column_name as 'primary_key'
|
1773
|
-
,fk.column_name as 'column'
|
1774
|
-
,fk.constraint_name as 'name'
|
1775
|
-
FROM information_schema.key_column_usage fk
|
1776
|
-
WHERE fk.referenced_column_name is not null
|
1777
|
-
AND fk.table_schema = 'archiving_development'
|
1778
|
-
AND fk.table_name = 'log_lines'
|
1779
|
-
|
1780
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
1781
|
-
[1m[35m (0.2ms)[0m SELECT 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 = 'archiving_development'
|
1788
|
-
AND fk.table_name = 'log_lines_archive'
|
1789
|
-
|
1790
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
1791
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1792
|
-
,fk.referenced_column_name as 'primary_key'
|
1793
|
-
,fk.column_name as 'column'
|
1794
|
-
,fk.constraint_name as 'name'
|
1795
|
-
FROM information_schema.key_column_usage fk
|
1796
|
-
WHERE fk.referenced_column_name is not null
|
1797
|
-
AND fk.table_schema = 'archiving_development'
|
1798
|
-
AND fk.table_name = 'posts'
|
1799
|
-
|
1800
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
1801
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1802
|
-
,fk.referenced_column_name as 'primary_key'
|
1803
|
-
,fk.column_name as 'column'
|
1804
|
-
,fk.constraint_name as 'name'
|
1805
|
-
FROM information_schema.key_column_usage fk
|
1806
|
-
WHERE fk.referenced_column_name is not null
|
1807
|
-
AND fk.table_schema = 'archiving_development'
|
1808
|
-
AND fk.table_name = 'posts_archive'
|
1809
|
-
|
1810
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
1811
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1812
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1813
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
1814
|
-
[1m[36m (63.1ms)[0m [1mALTER TABLE `log_days_archive` DROP `postable_id`[0m
|
1815
|
-
[1m[35m (18.0ms)[0m ALTER TABLE `log_days_archive` DROP `postable_type`
|
1816
|
-
[1m[36m (24.6ms)[0m [1mALTER TABLE `log_days` DROP `postable_id`[0m
|
1817
|
-
[1m[35m (22.3ms)[0m ALTER TABLE `log_days` DROP `postable_type`
|
1818
|
-
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'[0m
|
1819
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1820
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1821
|
-
,fk.referenced_column_name as 'primary_key'
|
1822
|
-
,fk.column_name as 'column'
|
1823
|
-
,fk.constraint_name as 'name'
|
1824
|
-
FROM information_schema.key_column_usage fk
|
1825
|
-
WHERE fk.referenced_column_name is not null
|
1826
|
-
AND fk.table_schema = 'archiving_development'
|
1827
|
-
AND fk.table_name = 'log_days'
|
1828
|
-
[0m
|
1829
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
1830
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1831
|
-
,fk.referenced_column_name as 'primary_key'
|
1832
|
-
,fk.column_name as 'column'
|
1833
|
-
,fk.constraint_name as 'name'
|
1834
|
-
FROM information_schema.key_column_usage fk
|
1835
|
-
WHERE fk.referenced_column_name is not null
|
1836
|
-
AND fk.table_schema = 'archiving_development'
|
1837
|
-
AND fk.table_name = 'log_days_archive'
|
1838
|
-
[0m
|
1839
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
1840
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1841
|
-
,fk.referenced_column_name as 'primary_key'
|
1842
|
-
,fk.column_name as 'column'
|
1843
|
-
,fk.constraint_name as 'name'
|
1844
|
-
FROM information_schema.key_column_usage fk
|
1845
|
-
WHERE fk.referenced_column_name is not null
|
1846
|
-
AND fk.table_schema = 'archiving_development'
|
1847
|
-
AND fk.table_name = 'log_lines'
|
1848
|
-
[0m
|
1849
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
1850
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1851
|
-
,fk.referenced_column_name as 'primary_key'
|
1852
|
-
,fk.column_name as 'column'
|
1853
|
-
,fk.constraint_name as 'name'
|
1854
|
-
FROM information_schema.key_column_usage fk
|
1855
|
-
WHERE fk.referenced_column_name is not null
|
1856
|
-
AND fk.table_schema = 'archiving_development'
|
1857
|
-
AND fk.table_name = 'log_lines_archive'
|
1858
|
-
[0m
|
1859
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
1860
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1861
|
-
,fk.referenced_column_name as 'primary_key'
|
1862
|
-
,fk.column_name as 'column'
|
1863
|
-
,fk.constraint_name as 'name'
|
1864
|
-
FROM information_schema.key_column_usage fk
|
1865
|
-
WHERE fk.referenced_column_name is not null
|
1866
|
-
AND fk.table_schema = 'archiving_development'
|
1867
|
-
AND fk.table_name = 'posts'
|
1868
|
-
[0m
|
1869
|
-
[1m[35m (0.3ms)[0m SHOW CREATE TABLE `posts`
|
1870
|
-
[1m[36m (0.9ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1871
|
-
,fk.referenced_column_name as 'primary_key'
|
1872
|
-
,fk.column_name as 'column'
|
1873
|
-
,fk.constraint_name as 'name'
|
1874
|
-
FROM information_schema.key_column_usage fk
|
1875
|
-
WHERE fk.referenced_column_name is not null
|
1876
|
-
AND fk.table_schema = 'archiving_development'
|
1877
|
-
AND fk.table_name = 'posts_archive'
|
1878
|
-
[0m
|
1879
|
-
[1m[35m (0.4ms)[0m SHOW CREATE TABLE `posts_archive`
|
1880
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1881
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
1882
|
-
[1m[35m (35.9ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
1883
|
-
[1m[36m (20.2ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
1884
|
-
[1m[35m (15.3ms)[0m ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
|
1885
|
-
[1m[36m (19.8ms)[0m [1mALTER TABLE `log_days_archive` ADD `postable_id` int(11)[0m
|
1886
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1887
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')[0m
|
1888
|
-
[1m[35m (17.2ms)[0m COMMIT
|
1889
|
-
Migrating to CreateLogOther (20161103093656)
|
1890
|
-
[1m[36m (26.6ms)[0m [1mCREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
1891
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1892
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
1893
|
-
[1m[35m (0.4ms)[0m COMMIT
|
1894
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1895
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
1896
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1897
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1898
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1899
|
-
,fk.referenced_column_name as 'primary_key'
|
1900
|
-
,fk.column_name as 'column'
|
1901
|
-
,fk.constraint_name as 'name'
|
1902
|
-
FROM information_schema.key_column_usage fk
|
1903
|
-
WHERE fk.referenced_column_name is not null
|
1904
|
-
AND fk.table_schema = 'archiving_development'
|
1905
|
-
AND fk.table_name = 'log_days'
|
1906
|
-
[0m
|
1907
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
1908
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1909
|
-
,fk.referenced_column_name as 'primary_key'
|
1910
|
-
,fk.column_name as 'column'
|
1911
|
-
,fk.constraint_name as 'name'
|
1912
|
-
FROM information_schema.key_column_usage fk
|
1913
|
-
WHERE fk.referenced_column_name is not null
|
1914
|
-
AND fk.table_schema = 'archiving_development'
|
1915
|
-
AND fk.table_name = 'log_days_archive'
|
1916
|
-
[0m
|
1917
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
1918
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1919
|
-
,fk.referenced_column_name as 'primary_key'
|
1920
|
-
,fk.column_name as 'column'
|
1921
|
-
,fk.constraint_name as 'name'
|
1922
|
-
FROM information_schema.key_column_usage fk
|
1923
|
-
WHERE fk.referenced_column_name is not null
|
1924
|
-
AND fk.table_schema = 'archiving_development'
|
1925
|
-
AND fk.table_name = 'log_lines'
|
1926
|
-
[0m
|
1927
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
1928
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1929
|
-
,fk.referenced_column_name as 'primary_key'
|
1930
|
-
,fk.column_name as 'column'
|
1931
|
-
,fk.constraint_name as 'name'
|
1932
|
-
FROM information_schema.key_column_usage fk
|
1933
|
-
WHERE fk.referenced_column_name is not null
|
1934
|
-
AND fk.table_schema = 'archiving_development'
|
1935
|
-
AND fk.table_name = 'log_lines_archive'
|
1936
|
-
[0m
|
1937
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
1938
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1939
|
-
,fk.referenced_column_name as 'primary_key'
|
1940
|
-
,fk.column_name as 'column'
|
1941
|
-
,fk.constraint_name as 'name'
|
1942
|
-
FROM information_schema.key_column_usage fk
|
1943
|
-
WHERE fk.referenced_column_name is not null
|
1944
|
-
AND fk.table_schema = 'archiving_development'
|
1945
|
-
AND fk.table_name = 'log_others'
|
1946
|
-
[0m
|
1947
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
1948
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1949
|
-
,fk.referenced_column_name as 'primary_key'
|
1950
|
-
,fk.column_name as 'column'
|
1951
|
-
,fk.constraint_name as 'name'
|
1952
|
-
FROM information_schema.key_column_usage fk
|
1953
|
-
WHERE fk.referenced_column_name is not null
|
1954
|
-
AND fk.table_schema = 'archiving_development'
|
1955
|
-
AND fk.table_name = 'posts'
|
1956
|
-
[0m
|
1957
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
1958
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1959
|
-
,fk.referenced_column_name as 'primary_key'
|
1960
|
-
,fk.column_name as 'column'
|
1961
|
-
,fk.constraint_name as 'name'
|
1962
|
-
FROM information_schema.key_column_usage fk
|
1963
|
-
WHERE fk.referenced_column_name is not null
|
1964
|
-
AND fk.table_schema = 'archiving_development'
|
1965
|
-
AND fk.table_name = 'posts_archive'
|
1966
|
-
[0m
|
1967
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
1968
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1969
|
-
[1m[35m (0.3ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1970
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1971
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1972
|
-
[1m[35m (11.2ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1973
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1974
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1975
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1976
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1977
|
-
[1m[35m (26.8ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1978
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1979
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1980
|
-
[1m[35m (0.5ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1981
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1982
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
1983
|
-
[1m[35m (9.3ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
1984
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1985
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
1986
|
-
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
|
1987
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1988
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1989
|
-
,fk.referenced_column_name as 'primary_key'
|
1990
|
-
,fk.column_name as 'column'
|
1991
|
-
,fk.constraint_name as 'name'
|
1992
|
-
FROM information_schema.key_column_usage fk
|
1993
|
-
WHERE fk.referenced_column_name is not null
|
1994
|
-
AND fk.table_schema = 'archiving_development'
|
1995
|
-
AND fk.table_name = 'log_days'
|
1996
|
-
[0m
|
1997
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
1998
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
1999
|
-
,fk.referenced_column_name as 'primary_key'
|
2000
|
-
,fk.column_name as 'column'
|
2001
|
-
,fk.constraint_name as 'name'
|
2002
|
-
FROM information_schema.key_column_usage fk
|
2003
|
-
WHERE fk.referenced_column_name is not null
|
2004
|
-
AND fk.table_schema = 'archiving_development'
|
2005
|
-
AND fk.table_name = 'log_days_archive'
|
2006
|
-
[0m
|
2007
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
2008
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2009
|
-
,fk.referenced_column_name as 'primary_key'
|
2010
|
-
,fk.column_name as 'column'
|
2011
|
-
,fk.constraint_name as 'name'
|
2012
|
-
FROM information_schema.key_column_usage fk
|
2013
|
-
WHERE fk.referenced_column_name is not null
|
2014
|
-
AND fk.table_schema = 'archiving_development'
|
2015
|
-
AND fk.table_name = 'log_lines'
|
2016
|
-
[0m
|
2017
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
2018
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2019
|
-
,fk.referenced_column_name as 'primary_key'
|
2020
|
-
,fk.column_name as 'column'
|
2021
|
-
,fk.constraint_name as 'name'
|
2022
|
-
FROM information_schema.key_column_usage fk
|
2023
|
-
WHERE fk.referenced_column_name is not null
|
2024
|
-
AND fk.table_schema = 'archiving_development'
|
2025
|
-
AND fk.table_name = 'log_lines_archive'
|
2026
|
-
[0m
|
2027
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
2028
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2029
|
-
,fk.referenced_column_name as 'primary_key'
|
2030
|
-
,fk.column_name as 'column'
|
2031
|
-
,fk.constraint_name as 'name'
|
2032
|
-
FROM information_schema.key_column_usage fk
|
2033
|
-
WHERE fk.referenced_column_name is not null
|
2034
|
-
AND fk.table_schema = 'archiving_development'
|
2035
|
-
AND fk.table_name = 'log_others'
|
2036
|
-
[0m
|
2037
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
2038
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2039
|
-
,fk.referenced_column_name as 'primary_key'
|
2040
|
-
,fk.column_name as 'column'
|
2041
|
-
,fk.constraint_name as 'name'
|
2042
|
-
FROM information_schema.key_column_usage fk
|
2043
|
-
WHERE fk.referenced_column_name is not null
|
2044
|
-
AND fk.table_schema = 'archiving_development'
|
2045
|
-
AND fk.table_name = 'posts'
|
2046
|
-
[0m
|
2047
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
2048
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2049
|
-
,fk.referenced_column_name as 'primary_key'
|
2050
|
-
,fk.column_name as 'column'
|
2051
|
-
,fk.constraint_name as 'name'
|
2052
|
-
FROM information_schema.key_column_usage fk
|
2053
|
-
WHERE fk.referenced_column_name is not null
|
2054
|
-
AND fk.table_schema = 'archiving_development'
|
2055
|
-
AND fk.table_name = 'posts_archive'
|
2056
|
-
[0m
|
2057
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
2058
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2059
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2060
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2061
|
-
[1m[36m (1.7ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2062
|
-
[1m[35mSQL (6.0ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
2063
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2064
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2065
|
-
,fk.referenced_column_name as 'primary_key'
|
2066
|
-
,fk.column_name as 'column'
|
2067
|
-
,fk.constraint_name as 'name'
|
2068
|
-
FROM information_schema.key_column_usage fk
|
2069
|
-
WHERE fk.referenced_column_name is not null
|
2070
|
-
AND fk.table_schema = 'archiving_development'
|
2071
|
-
AND fk.table_name = 'log_days'
|
2072
|
-
|
2073
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2074
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2075
|
-
,fk.referenced_column_name as 'primary_key'
|
2076
|
-
,fk.column_name as 'column'
|
2077
|
-
,fk.constraint_name as 'name'
|
2078
|
-
FROM information_schema.key_column_usage fk
|
2079
|
-
WHERE fk.referenced_column_name is not null
|
2080
|
-
AND fk.table_schema = 'archiving_development'
|
2081
|
-
AND fk.table_name = 'log_days_archive'
|
2082
|
-
|
2083
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2084
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2085
|
-
,fk.referenced_column_name as 'primary_key'
|
2086
|
-
,fk.column_name as 'column'
|
2087
|
-
,fk.constraint_name as 'name'
|
2088
|
-
FROM information_schema.key_column_usage fk
|
2089
|
-
WHERE fk.referenced_column_name is not null
|
2090
|
-
AND fk.table_schema = 'archiving_development'
|
2091
|
-
AND fk.table_name = 'log_lines'
|
2092
|
-
|
2093
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2094
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2095
|
-
,fk.referenced_column_name as 'primary_key'
|
2096
|
-
,fk.column_name as 'column'
|
2097
|
-
,fk.constraint_name as 'name'
|
2098
|
-
FROM information_schema.key_column_usage fk
|
2099
|
-
WHERE fk.referenced_column_name is not null
|
2100
|
-
AND fk.table_schema = 'archiving_development'
|
2101
|
-
AND fk.table_name = 'log_lines_archive'
|
2102
|
-
|
2103
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2104
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2105
|
-
,fk.referenced_column_name as 'primary_key'
|
2106
|
-
,fk.column_name as 'column'
|
2107
|
-
,fk.constraint_name as 'name'
|
2108
|
-
FROM information_schema.key_column_usage fk
|
2109
|
-
WHERE fk.referenced_column_name is not null
|
2110
|
-
AND fk.table_schema = 'archiving_development'
|
2111
|
-
AND fk.table_name = 'log_others'
|
2112
|
-
|
2113
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2114
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2115
|
-
,fk.referenced_column_name as 'primary_key'
|
2116
|
-
,fk.column_name as 'column'
|
2117
|
-
,fk.constraint_name as 'name'
|
2118
|
-
FROM information_schema.key_column_usage fk
|
2119
|
-
WHERE fk.referenced_column_name is not null
|
2120
|
-
AND fk.table_schema = 'archiving_development'
|
2121
|
-
AND fk.table_name = 'posts'
|
2122
|
-
|
2123
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2124
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2125
|
-
,fk.referenced_column_name as 'primary_key'
|
2126
|
-
,fk.column_name as 'column'
|
2127
|
-
,fk.constraint_name as 'name'
|
2128
|
-
FROM information_schema.key_column_usage fk
|
2129
|
-
WHERE fk.referenced_column_name is not null
|
2130
|
-
AND fk.table_schema = 'archiving_development'
|
2131
|
-
AND fk.table_name = 'posts_archive'
|
2132
|
-
|
2133
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2134
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2135
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2136
|
-
Migrating to CreateLogOther (20161103093656)
|
2137
|
-
[1m[36m (21.9ms)[0m [1mDROP TABLE `log_others`[0m
|
2138
|
-
[1m[35mSQL (1.9ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
2139
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2140
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2141
|
-
,fk.referenced_column_name as 'primary_key'
|
2142
|
-
,fk.column_name as 'column'
|
2143
|
-
,fk.constraint_name as 'name'
|
2144
|
-
FROM information_schema.key_column_usage fk
|
2145
|
-
WHERE fk.referenced_column_name is not null
|
2146
|
-
AND fk.table_schema = 'archiving_development'
|
2147
|
-
AND fk.table_name = 'log_days'
|
2148
|
-
|
2149
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2150
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2151
|
-
,fk.referenced_column_name as 'primary_key'
|
2152
|
-
,fk.column_name as 'column'
|
2153
|
-
,fk.constraint_name as 'name'
|
2154
|
-
FROM information_schema.key_column_usage fk
|
2155
|
-
WHERE fk.referenced_column_name is not null
|
2156
|
-
AND fk.table_schema = 'archiving_development'
|
2157
|
-
AND fk.table_name = 'log_days_archive'
|
2158
|
-
|
2159
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2160
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2161
|
-
,fk.referenced_column_name as 'primary_key'
|
2162
|
-
,fk.column_name as 'column'
|
2163
|
-
,fk.constraint_name as 'name'
|
2164
|
-
FROM information_schema.key_column_usage fk
|
2165
|
-
WHERE fk.referenced_column_name is not null
|
2166
|
-
AND fk.table_schema = 'archiving_development'
|
2167
|
-
AND fk.table_name = 'log_lines'
|
2168
|
-
|
2169
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2170
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2171
|
-
,fk.referenced_column_name as 'primary_key'
|
2172
|
-
,fk.column_name as 'column'
|
2173
|
-
,fk.constraint_name as 'name'
|
2174
|
-
FROM information_schema.key_column_usage fk
|
2175
|
-
WHERE fk.referenced_column_name is not null
|
2176
|
-
AND fk.table_schema = 'archiving_development'
|
2177
|
-
AND fk.table_name = 'log_lines_archive'
|
2178
|
-
|
2179
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2180
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2181
|
-
,fk.referenced_column_name as 'primary_key'
|
2182
|
-
,fk.column_name as 'column'
|
2183
|
-
,fk.constraint_name as 'name'
|
2184
|
-
FROM information_schema.key_column_usage fk
|
2185
|
-
WHERE fk.referenced_column_name is not null
|
2186
|
-
AND fk.table_schema = 'archiving_development'
|
2187
|
-
AND fk.table_name = 'posts'
|
2188
|
-
|
2189
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2190
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2191
|
-
,fk.referenced_column_name as 'primary_key'
|
2192
|
-
,fk.column_name as 'column'
|
2193
|
-
,fk.constraint_name as 'name'
|
2194
|
-
FROM information_schema.key_column_usage fk
|
2195
|
-
WHERE fk.referenced_column_name is not null
|
2196
|
-
AND fk.table_schema = 'archiving_development'
|
2197
|
-
AND fk.table_name = 'posts_archive'
|
2198
|
-
|
2199
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2200
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2201
|
-
Migrating to CreateLogOther (20161103093656)
|
2202
|
-
[1m[35m (12.0ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
2203
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2204
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
2205
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
2206
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2207
|
-
[1m[35m (10.4ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
2208
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2209
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
2210
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
2211
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2212
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2213
|
-
,fk.referenced_column_name as 'primary_key'
|
2214
|
-
,fk.column_name as 'column'
|
2215
|
-
,fk.constraint_name as 'name'
|
2216
|
-
FROM information_schema.key_column_usage fk
|
2217
|
-
WHERE fk.referenced_column_name is not null
|
2218
|
-
AND fk.table_schema = 'archiving_development'
|
2219
|
-
AND fk.table_name = 'log_days'
|
2220
|
-
[0m
|
2221
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
2222
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2223
|
-
,fk.referenced_column_name as 'primary_key'
|
2224
|
-
,fk.column_name as 'column'
|
2225
|
-
,fk.constraint_name as 'name'
|
2226
|
-
FROM information_schema.key_column_usage fk
|
2227
|
-
WHERE fk.referenced_column_name is not null
|
2228
|
-
AND fk.table_schema = 'archiving_development'
|
2229
|
-
AND fk.table_name = 'log_days_archive'
|
2230
|
-
[0m
|
2231
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
2232
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2233
|
-
,fk.referenced_column_name as 'primary_key'
|
2234
|
-
,fk.column_name as 'column'
|
2235
|
-
,fk.constraint_name as 'name'
|
2236
|
-
FROM information_schema.key_column_usage fk
|
2237
|
-
WHERE fk.referenced_column_name is not null
|
2238
|
-
AND fk.table_schema = 'archiving_development'
|
2239
|
-
AND fk.table_name = 'log_lines'
|
2240
|
-
[0m
|
2241
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
2242
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2243
|
-
,fk.referenced_column_name as 'primary_key'
|
2244
|
-
,fk.column_name as 'column'
|
2245
|
-
,fk.constraint_name as 'name'
|
2246
|
-
FROM information_schema.key_column_usage fk
|
2247
|
-
WHERE fk.referenced_column_name is not null
|
2248
|
-
AND fk.table_schema = 'archiving_development'
|
2249
|
-
AND fk.table_name = 'log_lines_archive'
|
2250
|
-
[0m
|
2251
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
2252
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2253
|
-
,fk.referenced_column_name as 'primary_key'
|
2254
|
-
,fk.column_name as 'column'
|
2255
|
-
,fk.constraint_name as 'name'
|
2256
|
-
FROM information_schema.key_column_usage fk
|
2257
|
-
WHERE fk.referenced_column_name is not null
|
2258
|
-
AND fk.table_schema = 'archiving_development'
|
2259
|
-
AND fk.table_name = 'log_others'
|
2260
|
-
[0m
|
2261
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
2262
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2263
|
-
,fk.referenced_column_name as 'primary_key'
|
2264
|
-
,fk.column_name as 'column'
|
2265
|
-
,fk.constraint_name as 'name'
|
2266
|
-
FROM information_schema.key_column_usage fk
|
2267
|
-
WHERE fk.referenced_column_name is not null
|
2268
|
-
AND fk.table_schema = 'archiving_development'
|
2269
|
-
AND fk.table_name = 'posts'
|
2270
|
-
[0m
|
2271
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
2272
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2273
|
-
,fk.referenced_column_name as 'primary_key'
|
2274
|
-
,fk.column_name as 'column'
|
2275
|
-
,fk.constraint_name as 'name'
|
2276
|
-
FROM information_schema.key_column_usage fk
|
2277
|
-
WHERE fk.referenced_column_name is not null
|
2278
|
-
AND fk.table_schema = 'archiving_development'
|
2279
|
-
AND fk.table_name = 'posts_archive'
|
2280
|
-
[0m
|
2281
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
2282
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2283
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2284
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2285
|
-
[1m[36m (2.0ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2286
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2287
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2288
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2289
|
-
[1m[36m (0.4ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2290
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2291
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2292
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2293
|
-
[1m[36m (2.0ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2294
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
2295
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2296
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2297
|
-
,fk.referenced_column_name as 'primary_key'
|
2298
|
-
,fk.column_name as 'column'
|
2299
|
-
,fk.constraint_name as 'name'
|
2300
|
-
FROM information_schema.key_column_usage fk
|
2301
|
-
WHERE fk.referenced_column_name is not null
|
2302
|
-
AND fk.table_schema = 'archiving_development'
|
2303
|
-
AND fk.table_name = 'log_days'
|
2304
|
-
|
2305
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2306
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2307
|
-
,fk.referenced_column_name as 'primary_key'
|
2308
|
-
,fk.column_name as 'column'
|
2309
|
-
,fk.constraint_name as 'name'
|
2310
|
-
FROM information_schema.key_column_usage fk
|
2311
|
-
WHERE fk.referenced_column_name is not null
|
2312
|
-
AND fk.table_schema = 'archiving_development'
|
2313
|
-
AND fk.table_name = 'log_days_archive'
|
2314
|
-
|
2315
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2316
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2317
|
-
,fk.referenced_column_name as 'primary_key'
|
2318
|
-
,fk.column_name as 'column'
|
2319
|
-
,fk.constraint_name as 'name'
|
2320
|
-
FROM information_schema.key_column_usage fk
|
2321
|
-
WHERE fk.referenced_column_name is not null
|
2322
|
-
AND fk.table_schema = 'archiving_development'
|
2323
|
-
AND fk.table_name = 'log_lines'
|
2324
|
-
|
2325
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2326
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2327
|
-
,fk.referenced_column_name as 'primary_key'
|
2328
|
-
,fk.column_name as 'column'
|
2329
|
-
,fk.constraint_name as 'name'
|
2330
|
-
FROM information_schema.key_column_usage fk
|
2331
|
-
WHERE fk.referenced_column_name is not null
|
2332
|
-
AND fk.table_schema = 'archiving_development'
|
2333
|
-
AND fk.table_name = 'log_lines_archive'
|
2334
|
-
|
2335
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2336
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2337
|
-
,fk.referenced_column_name as 'primary_key'
|
2338
|
-
,fk.column_name as 'column'
|
2339
|
-
,fk.constraint_name as 'name'
|
2340
|
-
FROM information_schema.key_column_usage fk
|
2341
|
-
WHERE fk.referenced_column_name is not null
|
2342
|
-
AND fk.table_schema = 'archiving_development'
|
2343
|
-
AND fk.table_name = 'log_others'
|
2344
|
-
|
2345
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2346
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2347
|
-
,fk.referenced_column_name as 'primary_key'
|
2348
|
-
,fk.column_name as 'column'
|
2349
|
-
,fk.constraint_name as 'name'
|
2350
|
-
FROM information_schema.key_column_usage fk
|
2351
|
-
WHERE fk.referenced_column_name is not null
|
2352
|
-
AND fk.table_schema = 'archiving_development'
|
2353
|
-
AND fk.table_name = 'posts'
|
2354
|
-
|
2355
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2356
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2357
|
-
,fk.referenced_column_name as 'primary_key'
|
2358
|
-
,fk.column_name as 'column'
|
2359
|
-
,fk.constraint_name as 'name'
|
2360
|
-
FROM information_schema.key_column_usage fk
|
2361
|
-
WHERE fk.referenced_column_name is not null
|
2362
|
-
AND fk.table_schema = 'archiving_development'
|
2363
|
-
AND fk.table_name = 'posts_archive'
|
2364
|
-
|
2365
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2366
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2367
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2368
|
-
[1m[36m (24.3ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
2369
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2370
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')[0m
|
2371
|
-
[1m[35m (0.5ms)[0m COMMIT
|
2372
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2373
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2374
|
-
,fk.referenced_column_name as 'primary_key'
|
2375
|
-
,fk.column_name as 'column'
|
2376
|
-
,fk.constraint_name as 'name'
|
2377
|
-
FROM information_schema.key_column_usage fk
|
2378
|
-
WHERE fk.referenced_column_name is not null
|
2379
|
-
AND fk.table_schema = 'archiving_development'
|
2380
|
-
AND fk.table_name = 'log_days'
|
2381
|
-
|
2382
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2383
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2384
|
-
,fk.referenced_column_name as 'primary_key'
|
2385
|
-
,fk.column_name as 'column'
|
2386
|
-
,fk.constraint_name as 'name'
|
2387
|
-
FROM information_schema.key_column_usage fk
|
2388
|
-
WHERE fk.referenced_column_name is not null
|
2389
|
-
AND fk.table_schema = 'archiving_development'
|
2390
|
-
AND fk.table_name = 'log_days_archive'
|
2391
|
-
|
2392
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2393
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2394
|
-
,fk.referenced_column_name as 'primary_key'
|
2395
|
-
,fk.column_name as 'column'
|
2396
|
-
,fk.constraint_name as 'name'
|
2397
|
-
FROM information_schema.key_column_usage fk
|
2398
|
-
WHERE fk.referenced_column_name is not null
|
2399
|
-
AND fk.table_schema = 'archiving_development'
|
2400
|
-
AND fk.table_name = 'log_lines'
|
2401
|
-
|
2402
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2403
|
-
[1m[35m (0.6ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2404
|
-
,fk.referenced_column_name as 'primary_key'
|
2405
|
-
,fk.column_name as 'column'
|
2406
|
-
,fk.constraint_name as 'name'
|
2407
|
-
FROM information_schema.key_column_usage fk
|
2408
|
-
WHERE fk.referenced_column_name is not null
|
2409
|
-
AND fk.table_schema = 'archiving_development'
|
2410
|
-
AND fk.table_name = 'log_lines_archive'
|
2411
|
-
|
2412
|
-
[1m[36m (0.4ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2413
|
-
[1m[35m (0.7ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2414
|
-
,fk.referenced_column_name as 'primary_key'
|
2415
|
-
,fk.column_name as 'column'
|
2416
|
-
,fk.constraint_name as 'name'
|
2417
|
-
FROM information_schema.key_column_usage fk
|
2418
|
-
WHERE fk.referenced_column_name is not null
|
2419
|
-
AND fk.table_schema = 'archiving_development'
|
2420
|
-
AND fk.table_name = 'log_others'
|
2421
|
-
|
2422
|
-
[1m[36m (0.4ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2423
|
-
[1m[35m (0.7ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2424
|
-
,fk.referenced_column_name as 'primary_key'
|
2425
|
-
,fk.column_name as 'column'
|
2426
|
-
,fk.constraint_name as 'name'
|
2427
|
-
FROM information_schema.key_column_usage fk
|
2428
|
-
WHERE fk.referenced_column_name is not null
|
2429
|
-
AND fk.table_schema = 'archiving_development'
|
2430
|
-
AND fk.table_name = 'posts'
|
2431
|
-
|
2432
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2433
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2434
|
-
,fk.referenced_column_name as 'primary_key'
|
2435
|
-
,fk.column_name as 'column'
|
2436
|
-
,fk.constraint_name as 'name'
|
2437
|
-
FROM information_schema.key_column_usage fk
|
2438
|
-
WHERE fk.referenced_column_name is not null
|
2439
|
-
AND fk.table_schema = 'archiving_development'
|
2440
|
-
AND fk.table_name = 'posts_archive'
|
2441
|
-
|
2442
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2443
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2444
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2445
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2446
|
-
[1m[36m (1.8ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2447
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
2448
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2449
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2450
|
-
,fk.referenced_column_name as 'primary_key'
|
2451
|
-
,fk.column_name as 'column'
|
2452
|
-
,fk.constraint_name as 'name'
|
2453
|
-
FROM information_schema.key_column_usage fk
|
2454
|
-
WHERE fk.referenced_column_name is not null
|
2455
|
-
AND fk.table_schema = 'archiving_development'
|
2456
|
-
AND fk.table_name = 'log_days'
|
2457
|
-
|
2458
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2459
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2460
|
-
,fk.referenced_column_name as 'primary_key'
|
2461
|
-
,fk.column_name as 'column'
|
2462
|
-
,fk.constraint_name as 'name'
|
2463
|
-
FROM information_schema.key_column_usage fk
|
2464
|
-
WHERE fk.referenced_column_name is not null
|
2465
|
-
AND fk.table_schema = 'archiving_development'
|
2466
|
-
AND fk.table_name = 'log_days_archive'
|
2467
|
-
|
2468
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2469
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2470
|
-
,fk.referenced_column_name as 'primary_key'
|
2471
|
-
,fk.column_name as 'column'
|
2472
|
-
,fk.constraint_name as 'name'
|
2473
|
-
FROM information_schema.key_column_usage fk
|
2474
|
-
WHERE fk.referenced_column_name is not null
|
2475
|
-
AND fk.table_schema = 'archiving_development'
|
2476
|
-
AND fk.table_name = 'log_lines'
|
2477
|
-
|
2478
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2479
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2480
|
-
,fk.referenced_column_name as 'primary_key'
|
2481
|
-
,fk.column_name as 'column'
|
2482
|
-
,fk.constraint_name as 'name'
|
2483
|
-
FROM information_schema.key_column_usage fk
|
2484
|
-
WHERE fk.referenced_column_name is not null
|
2485
|
-
AND fk.table_schema = 'archiving_development'
|
2486
|
-
AND fk.table_name = 'log_lines_archive'
|
2487
|
-
|
2488
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2489
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2490
|
-
,fk.referenced_column_name as 'primary_key'
|
2491
|
-
,fk.column_name as 'column'
|
2492
|
-
,fk.constraint_name as 'name'
|
2493
|
-
FROM information_schema.key_column_usage fk
|
2494
|
-
WHERE fk.referenced_column_name is not null
|
2495
|
-
AND fk.table_schema = 'archiving_development'
|
2496
|
-
AND fk.table_name = 'log_others'
|
2497
|
-
|
2498
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2499
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2500
|
-
,fk.referenced_column_name as 'primary_key'
|
2501
|
-
,fk.column_name as 'column'
|
2502
|
-
,fk.constraint_name as 'name'
|
2503
|
-
FROM information_schema.key_column_usage fk
|
2504
|
-
WHERE fk.referenced_column_name is not null
|
2505
|
-
AND fk.table_schema = 'archiving_development'
|
2506
|
-
AND fk.table_name = 'posts'
|
2507
|
-
|
2508
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2509
|
-
[1m[35m (0.5ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2510
|
-
,fk.referenced_column_name as 'primary_key'
|
2511
|
-
,fk.column_name as 'column'
|
2512
|
-
,fk.constraint_name as 'name'
|
2513
|
-
FROM information_schema.key_column_usage fk
|
2514
|
-
WHERE fk.referenced_column_name is not null
|
2515
|
-
AND fk.table_schema = 'archiving_development'
|
2516
|
-
AND fk.table_name = 'posts_archive'
|
2517
|
-
|
2518
|
-
[1m[36m (0.3ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2519
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2520
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2521
|
-
[1m[36m (27.1ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
2522
|
-
[1m[35m (0.3ms)[0m BEGIN
|
2523
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')[0m
|
2524
|
-
[1m[35m (0.3ms)[0m COMMIT
|
2525
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2526
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2527
|
-
,fk.referenced_column_name as 'primary_key'
|
2528
|
-
,fk.column_name as 'column'
|
2529
|
-
,fk.constraint_name as 'name'
|
2530
|
-
FROM information_schema.key_column_usage fk
|
2531
|
-
WHERE fk.referenced_column_name is not null
|
2532
|
-
AND fk.table_schema = 'archiving_development'
|
2533
|
-
AND fk.table_name = 'log_days'
|
2534
|
-
|
2535
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2536
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2537
|
-
,fk.referenced_column_name as 'primary_key'
|
2538
|
-
,fk.column_name as 'column'
|
2539
|
-
,fk.constraint_name as 'name'
|
2540
|
-
FROM information_schema.key_column_usage fk
|
2541
|
-
WHERE fk.referenced_column_name is not null
|
2542
|
-
AND fk.table_schema = 'archiving_development'
|
2543
|
-
AND fk.table_name = 'log_days_archive'
|
2544
|
-
|
2545
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2546
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2547
|
-
,fk.referenced_column_name as 'primary_key'
|
2548
|
-
,fk.column_name as 'column'
|
2549
|
-
,fk.constraint_name as 'name'
|
2550
|
-
FROM information_schema.key_column_usage fk
|
2551
|
-
WHERE fk.referenced_column_name is not null
|
2552
|
-
AND fk.table_schema = 'archiving_development'
|
2553
|
-
AND fk.table_name = 'log_lines'
|
2554
|
-
|
2555
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2556
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2557
|
-
,fk.referenced_column_name as 'primary_key'
|
2558
|
-
,fk.column_name as 'column'
|
2559
|
-
,fk.constraint_name as 'name'
|
2560
|
-
FROM information_schema.key_column_usage fk
|
2561
|
-
WHERE fk.referenced_column_name is not null
|
2562
|
-
AND fk.table_schema = 'archiving_development'
|
2563
|
-
AND fk.table_name = 'log_lines_archive'
|
2564
|
-
|
2565
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2566
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2567
|
-
,fk.referenced_column_name as 'primary_key'
|
2568
|
-
,fk.column_name as 'column'
|
2569
|
-
,fk.constraint_name as 'name'
|
2570
|
-
FROM information_schema.key_column_usage fk
|
2571
|
-
WHERE fk.referenced_column_name is not null
|
2572
|
-
AND fk.table_schema = 'archiving_development'
|
2573
|
-
AND fk.table_name = 'log_others'
|
2574
|
-
|
2575
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2576
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2577
|
-
,fk.referenced_column_name as 'primary_key'
|
2578
|
-
,fk.column_name as 'column'
|
2579
|
-
,fk.constraint_name as 'name'
|
2580
|
-
FROM information_schema.key_column_usage fk
|
2581
|
-
WHERE fk.referenced_column_name is not null
|
2582
|
-
AND fk.table_schema = 'archiving_development'
|
2583
|
-
AND fk.table_name = 'posts'
|
2584
|
-
|
2585
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2586
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2587
|
-
,fk.referenced_column_name as 'primary_key'
|
2588
|
-
,fk.column_name as 'column'
|
2589
|
-
,fk.constraint_name as 'name'
|
2590
|
-
FROM information_schema.key_column_usage fk
|
2591
|
-
WHERE fk.referenced_column_name is not null
|
2592
|
-
AND fk.table_schema = 'archiving_development'
|
2593
|
-
AND fk.table_name = 'posts_archive'
|
2594
|
-
|
2595
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2596
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2597
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2598
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2599
|
-
[1m[36m (2.1ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2600
|
-
[1m[35mSQL (0.4ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
2601
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2602
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2603
|
-
,fk.referenced_column_name as 'primary_key'
|
2604
|
-
,fk.column_name as 'column'
|
2605
|
-
,fk.constraint_name as 'name'
|
2606
|
-
FROM information_schema.key_column_usage fk
|
2607
|
-
WHERE fk.referenced_column_name is not null
|
2608
|
-
AND fk.table_schema = 'archiving_development'
|
2609
|
-
AND fk.table_name = 'log_days'
|
2610
|
-
|
2611
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2612
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2613
|
-
,fk.referenced_column_name as 'primary_key'
|
2614
|
-
,fk.column_name as 'column'
|
2615
|
-
,fk.constraint_name as 'name'
|
2616
|
-
FROM information_schema.key_column_usage fk
|
2617
|
-
WHERE fk.referenced_column_name is not null
|
2618
|
-
AND fk.table_schema = 'archiving_development'
|
2619
|
-
AND fk.table_name = 'log_days_archive'
|
2620
|
-
|
2621
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2622
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2623
|
-
,fk.referenced_column_name as 'primary_key'
|
2624
|
-
,fk.column_name as 'column'
|
2625
|
-
,fk.constraint_name as 'name'
|
2626
|
-
FROM information_schema.key_column_usage fk
|
2627
|
-
WHERE fk.referenced_column_name is not null
|
2628
|
-
AND fk.table_schema = 'archiving_development'
|
2629
|
-
AND fk.table_name = 'log_lines'
|
2630
|
-
|
2631
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2632
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2633
|
-
,fk.referenced_column_name as 'primary_key'
|
2634
|
-
,fk.column_name as 'column'
|
2635
|
-
,fk.constraint_name as 'name'
|
2636
|
-
FROM information_schema.key_column_usage fk
|
2637
|
-
WHERE fk.referenced_column_name is not null
|
2638
|
-
AND fk.table_schema = 'archiving_development'
|
2639
|
-
AND fk.table_name = 'log_lines_archive'
|
2640
|
-
|
2641
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2642
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2643
|
-
,fk.referenced_column_name as 'primary_key'
|
2644
|
-
,fk.column_name as 'column'
|
2645
|
-
,fk.constraint_name as 'name'
|
2646
|
-
FROM information_schema.key_column_usage fk
|
2647
|
-
WHERE fk.referenced_column_name is not null
|
2648
|
-
AND fk.table_schema = 'archiving_development'
|
2649
|
-
AND fk.table_name = 'log_others'
|
2650
|
-
|
2651
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2652
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2653
|
-
,fk.referenced_column_name as 'primary_key'
|
2654
|
-
,fk.column_name as 'column'
|
2655
|
-
,fk.constraint_name as 'name'
|
2656
|
-
FROM information_schema.key_column_usage fk
|
2657
|
-
WHERE fk.referenced_column_name is not null
|
2658
|
-
AND fk.table_schema = 'archiving_development'
|
2659
|
-
AND fk.table_name = 'posts'
|
2660
|
-
|
2661
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2662
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2663
|
-
,fk.referenced_column_name as 'primary_key'
|
2664
|
-
,fk.column_name as 'column'
|
2665
|
-
,fk.constraint_name as 'name'
|
2666
|
-
FROM information_schema.key_column_usage fk
|
2667
|
-
WHERE fk.referenced_column_name is not null
|
2668
|
-
AND fk.table_schema = 'archiving_development'
|
2669
|
-
AND fk.table_name = 'posts_archive'
|
2670
|
-
|
2671
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2672
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2673
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2674
|
-
Migrating to CreateLogOther (20161103093656)
|
2675
|
-
[1m[36m (19.7ms)[0m [1mDROP TABLE `log_others`[0m
|
2676
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
2677
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2678
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2679
|
-
,fk.referenced_column_name as 'primary_key'
|
2680
|
-
,fk.column_name as 'column'
|
2681
|
-
,fk.constraint_name as 'name'
|
2682
|
-
FROM information_schema.key_column_usage fk
|
2683
|
-
WHERE fk.referenced_column_name is not null
|
2684
|
-
AND fk.table_schema = 'archiving_development'
|
2685
|
-
AND fk.table_name = 'log_days'
|
2686
|
-
|
2687
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2688
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2689
|
-
,fk.referenced_column_name as 'primary_key'
|
2690
|
-
,fk.column_name as 'column'
|
2691
|
-
,fk.constraint_name as 'name'
|
2692
|
-
FROM information_schema.key_column_usage fk
|
2693
|
-
WHERE fk.referenced_column_name is not null
|
2694
|
-
AND fk.table_schema = 'archiving_development'
|
2695
|
-
AND fk.table_name = 'log_days_archive'
|
2696
|
-
|
2697
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2698
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2699
|
-
,fk.referenced_column_name as 'primary_key'
|
2700
|
-
,fk.column_name as 'column'
|
2701
|
-
,fk.constraint_name as 'name'
|
2702
|
-
FROM information_schema.key_column_usage fk
|
2703
|
-
WHERE fk.referenced_column_name is not null
|
2704
|
-
AND fk.table_schema = 'archiving_development'
|
2705
|
-
AND fk.table_name = 'log_lines'
|
2706
|
-
|
2707
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2708
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2709
|
-
,fk.referenced_column_name as 'primary_key'
|
2710
|
-
,fk.column_name as 'column'
|
2711
|
-
,fk.constraint_name as 'name'
|
2712
|
-
FROM information_schema.key_column_usage fk
|
2713
|
-
WHERE fk.referenced_column_name is not null
|
2714
|
-
AND fk.table_schema = 'archiving_development'
|
2715
|
-
AND fk.table_name = 'log_lines_archive'
|
2716
|
-
|
2717
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2718
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2719
|
-
,fk.referenced_column_name as 'primary_key'
|
2720
|
-
,fk.column_name as 'column'
|
2721
|
-
,fk.constraint_name as 'name'
|
2722
|
-
FROM information_schema.key_column_usage fk
|
2723
|
-
WHERE fk.referenced_column_name is not null
|
2724
|
-
AND fk.table_schema = 'archiving_development'
|
2725
|
-
AND fk.table_name = 'posts'
|
2726
|
-
|
2727
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2728
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2729
|
-
,fk.referenced_column_name as 'primary_key'
|
2730
|
-
,fk.column_name as 'column'
|
2731
|
-
,fk.constraint_name as 'name'
|
2732
|
-
FROM information_schema.key_column_usage fk
|
2733
|
-
WHERE fk.referenced_column_name is not null
|
2734
|
-
AND fk.table_schema = 'archiving_development'
|
2735
|
-
AND fk.table_name = 'posts_archive'
|
2736
|
-
|
2737
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2738
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2739
|
-
Migrating to CreateLogOther (20161103093656)
|
2740
|
-
[1m[35m (10.6ms)[0m CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
2741
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2742
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
|
2743
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
2744
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2745
|
-
[1m[35m (8.6ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
2746
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2747
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
|
2748
|
-
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
2749
|
-
Migrating to Dummy (20161103110724)
|
2750
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2751
|
-
Migrating to Dummy20161103 (20161103110724)
|
2752
|
-
[1m[35m (0.2ms)[0m BEGIN
|
2753
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103110724')[0m
|
2754
|
-
[1m[35m (6.1ms)[0m COMMIT
|
2755
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2756
|
-
[1m[35m (0.4ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2757
|
-
,fk.referenced_column_name as 'primary_key'
|
2758
|
-
,fk.column_name as 'column'
|
2759
|
-
,fk.constraint_name as 'name'
|
2760
|
-
FROM information_schema.key_column_usage fk
|
2761
|
-
WHERE fk.referenced_column_name is not null
|
2762
|
-
AND fk.table_schema = 'archiving_development'
|
2763
|
-
AND fk.table_name = 'log_days'
|
2764
|
-
|
2765
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2766
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2767
|
-
,fk.referenced_column_name as 'primary_key'
|
2768
|
-
,fk.column_name as 'column'
|
2769
|
-
,fk.constraint_name as 'name'
|
2770
|
-
FROM information_schema.key_column_usage fk
|
2771
|
-
WHERE fk.referenced_column_name is not null
|
2772
|
-
AND fk.table_schema = 'archiving_development'
|
2773
|
-
AND fk.table_name = 'log_days_archive'
|
2774
|
-
|
2775
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2776
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2777
|
-
,fk.referenced_column_name as 'primary_key'
|
2778
|
-
,fk.column_name as 'column'
|
2779
|
-
,fk.constraint_name as 'name'
|
2780
|
-
FROM information_schema.key_column_usage fk
|
2781
|
-
WHERE fk.referenced_column_name is not null
|
2782
|
-
AND fk.table_schema = 'archiving_development'
|
2783
|
-
AND fk.table_name = 'log_lines'
|
2784
|
-
|
2785
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2786
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2787
|
-
,fk.referenced_column_name as 'primary_key'
|
2788
|
-
,fk.column_name as 'column'
|
2789
|
-
,fk.constraint_name as 'name'
|
2790
|
-
FROM information_schema.key_column_usage fk
|
2791
|
-
WHERE fk.referenced_column_name is not null
|
2792
|
-
AND fk.table_schema = 'archiving_development'
|
2793
|
-
AND fk.table_name = 'log_lines_archive'
|
2794
|
-
|
2795
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2796
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2797
|
-
,fk.referenced_column_name as 'primary_key'
|
2798
|
-
,fk.column_name as 'column'
|
2799
|
-
,fk.constraint_name as 'name'
|
2800
|
-
FROM information_schema.key_column_usage fk
|
2801
|
-
WHERE fk.referenced_column_name is not null
|
2802
|
-
AND fk.table_schema = 'archiving_development'
|
2803
|
-
AND fk.table_name = 'log_others'
|
2804
|
-
|
2805
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2806
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2807
|
-
,fk.referenced_column_name as 'primary_key'
|
2808
|
-
,fk.column_name as 'column'
|
2809
|
-
,fk.constraint_name as 'name'
|
2810
|
-
FROM information_schema.key_column_usage fk
|
2811
|
-
WHERE fk.referenced_column_name is not null
|
2812
|
-
AND fk.table_schema = 'archiving_development'
|
2813
|
-
AND fk.table_name = 'posts'
|
2814
|
-
|
2815
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2816
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2817
|
-
,fk.referenced_column_name as 'primary_key'
|
2818
|
-
,fk.column_name as 'column'
|
2819
|
-
,fk.constraint_name as 'name'
|
2820
|
-
FROM information_schema.key_column_usage fk
|
2821
|
-
WHERE fk.referenced_column_name is not null
|
2822
|
-
AND fk.table_schema = 'archiving_development'
|
2823
|
-
AND fk.table_name = 'posts_archive'
|
2824
|
-
|
2825
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2826
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2827
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2828
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2829
|
-
Migrating to Dummy20161103 (20161103110724)
|
2830
|
-
[1m[35mSQL (6.4ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103110724'
|
2831
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
2832
|
-
[1m[36m (16.4ms)[0m [1mDROP TABLE `log_others_archive`[0m
|
2833
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
|
2834
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2835
|
-
[1m[35m (0.5ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2836
|
-
,fk.referenced_column_name as 'primary_key'
|
2837
|
-
,fk.column_name as 'column'
|
2838
|
-
,fk.constraint_name as 'name'
|
2839
|
-
FROM information_schema.key_column_usage fk
|
2840
|
-
WHERE fk.referenced_column_name is not null
|
2841
|
-
AND fk.table_schema = 'archiving_development'
|
2842
|
-
AND fk.table_name = 'log_days'
|
2843
|
-
|
2844
|
-
[1m[36m (0.3ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2845
|
-
[1m[35m (0.5ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2846
|
-
,fk.referenced_column_name as 'primary_key'
|
2847
|
-
,fk.column_name as 'column'
|
2848
|
-
,fk.constraint_name as 'name'
|
2849
|
-
FROM information_schema.key_column_usage fk
|
2850
|
-
WHERE fk.referenced_column_name is not null
|
2851
|
-
AND fk.table_schema = 'archiving_development'
|
2852
|
-
AND fk.table_name = 'log_days_archive'
|
2853
|
-
|
2854
|
-
[1m[36m (0.5ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2855
|
-
[1m[35m (0.6ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2856
|
-
,fk.referenced_column_name as 'primary_key'
|
2857
|
-
,fk.column_name as 'column'
|
2858
|
-
,fk.constraint_name as 'name'
|
2859
|
-
FROM information_schema.key_column_usage fk
|
2860
|
-
WHERE fk.referenced_column_name is not null
|
2861
|
-
AND fk.table_schema = 'archiving_development'
|
2862
|
-
AND fk.table_name = 'log_lines'
|
2863
|
-
|
2864
|
-
[1m[36m (0.3ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2865
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2866
|
-
,fk.referenced_column_name as 'primary_key'
|
2867
|
-
,fk.column_name as 'column'
|
2868
|
-
,fk.constraint_name as 'name'
|
2869
|
-
FROM information_schema.key_column_usage fk
|
2870
|
-
WHERE fk.referenced_column_name is not null
|
2871
|
-
AND fk.table_schema = 'archiving_development'
|
2872
|
-
AND fk.table_name = 'log_lines_archive'
|
2873
|
-
|
2874
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2875
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2876
|
-
,fk.referenced_column_name as 'primary_key'
|
2877
|
-
,fk.column_name as 'column'
|
2878
|
-
,fk.constraint_name as 'name'
|
2879
|
-
FROM information_schema.key_column_usage fk
|
2880
|
-
WHERE fk.referenced_column_name is not null
|
2881
|
-
AND fk.table_schema = 'archiving_development'
|
2882
|
-
AND fk.table_name = 'log_others'
|
2883
|
-
|
2884
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_others`[0m
|
2885
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2886
|
-
,fk.referenced_column_name as 'primary_key'
|
2887
|
-
,fk.column_name as 'column'
|
2888
|
-
,fk.constraint_name as 'name'
|
2889
|
-
FROM information_schema.key_column_usage fk
|
2890
|
-
WHERE fk.referenced_column_name is not null
|
2891
|
-
AND fk.table_schema = 'archiving_development'
|
2892
|
-
AND fk.table_name = 'posts'
|
2893
|
-
|
2894
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2895
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2896
|
-
,fk.referenced_column_name as 'primary_key'
|
2897
|
-
,fk.column_name as 'column'
|
2898
|
-
,fk.constraint_name as 'name'
|
2899
|
-
FROM information_schema.key_column_usage fk
|
2900
|
-
WHERE fk.referenced_column_name is not null
|
2901
|
-
AND fk.table_schema = 'archiving_development'
|
2902
|
-
AND fk.table_name = 'posts_archive'
|
2903
|
-
|
2904
|
-
[1m[36m (0.2ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2905
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2906
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2907
|
-
Migrating to CreateLogOther (20161103093656)
|
2908
|
-
[1m[36m (24.1ms)[0m [1mDROP TABLE `log_others`[0m
|
2909
|
-
[1m[35mSQL (0.5ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
|
2910
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2911
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2912
|
-
,fk.referenced_column_name as 'primary_key'
|
2913
|
-
,fk.column_name as 'column'
|
2914
|
-
,fk.constraint_name as 'name'
|
2915
|
-
FROM information_schema.key_column_usage fk
|
2916
|
-
WHERE fk.referenced_column_name is not null
|
2917
|
-
AND fk.table_schema = 'archiving_development'
|
2918
|
-
AND fk.table_name = 'log_days'
|
2919
|
-
|
2920
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days`[0m
|
2921
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2922
|
-
,fk.referenced_column_name as 'primary_key'
|
2923
|
-
,fk.column_name as 'column'
|
2924
|
-
,fk.constraint_name as 'name'
|
2925
|
-
FROM information_schema.key_column_usage fk
|
2926
|
-
WHERE fk.referenced_column_name is not null
|
2927
|
-
AND fk.table_schema = 'archiving_development'
|
2928
|
-
AND fk.table_name = 'log_days_archive'
|
2929
|
-
|
2930
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_days_archive`[0m
|
2931
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2932
|
-
,fk.referenced_column_name as 'primary_key'
|
2933
|
-
,fk.column_name as 'column'
|
2934
|
-
,fk.constraint_name as 'name'
|
2935
|
-
FROM information_schema.key_column_usage fk
|
2936
|
-
WHERE fk.referenced_column_name is not null
|
2937
|
-
AND fk.table_schema = 'archiving_development'
|
2938
|
-
AND fk.table_name = 'log_lines'
|
2939
|
-
|
2940
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines`[0m
|
2941
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2942
|
-
,fk.referenced_column_name as 'primary_key'
|
2943
|
-
,fk.column_name as 'column'
|
2944
|
-
,fk.constraint_name as 'name'
|
2945
|
-
FROM information_schema.key_column_usage fk
|
2946
|
-
WHERE fk.referenced_column_name is not null
|
2947
|
-
AND fk.table_schema = 'archiving_development'
|
2948
|
-
AND fk.table_name = 'log_lines_archive'
|
2949
|
-
|
2950
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `log_lines_archive`[0m
|
2951
|
-
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2952
|
-
,fk.referenced_column_name as 'primary_key'
|
2953
|
-
,fk.column_name as 'column'
|
2954
|
-
,fk.constraint_name as 'name'
|
2955
|
-
FROM information_schema.key_column_usage fk
|
2956
|
-
WHERE fk.referenced_column_name is not null
|
2957
|
-
AND fk.table_schema = 'archiving_development'
|
2958
|
-
AND fk.table_name = 'posts'
|
2959
|
-
|
2960
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
2961
|
-
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
2962
|
-
,fk.referenced_column_name as 'primary_key'
|
2963
|
-
,fk.column_name as 'column'
|
2964
|
-
,fk.constraint_name as 'name'
|
2965
|
-
FROM information_schema.key_column_usage fk
|
2966
|
-
WHERE fk.referenced_column_name is not null
|
2967
|
-
AND fk.table_schema = 'archiving_development'
|
2968
|
-
AND fk.table_name = 'posts_archive'
|
2969
|
-
|
2970
|
-
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts_archive`[0m
|
2971
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
2972
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2973
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
2974
|
-
[1m[36m (37.7ms)[0m [1mALTER TABLE `log_days_archive` DROP `postable_id`[0m
|
2975
|
-
[1m[35m (21.3ms)[0m ALTER TABLE `log_days_archive` DROP `postable_type`
|
2976
|
-
[1m[36m (21.1ms)[0m [1mALTER TABLE `log_days` DROP `postable_id`[0m
|
2977
|
-
[1m[35m (19.2ms)[0m ALTER TABLE `log_days` DROP `postable_type`
|
2978
|
-
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'[0m
|
2979
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
2980
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2981
|
-
,fk.referenced_column_name as 'primary_key'
|
2982
|
-
,fk.column_name as 'column'
|
2983
|
-
,fk.constraint_name as 'name'
|
2984
|
-
FROM information_schema.key_column_usage fk
|
2985
|
-
WHERE fk.referenced_column_name is not null
|
2986
|
-
AND fk.table_schema = 'archiving_development'
|
2987
|
-
AND fk.table_name = 'log_days'
|
2988
|
-
[0m
|
2989
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_days`
|
2990
|
-
[1m[36m (0.5ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
2991
|
-
,fk.referenced_column_name as 'primary_key'
|
2992
|
-
,fk.column_name as 'column'
|
2993
|
-
,fk.constraint_name as 'name'
|
2994
|
-
FROM information_schema.key_column_usage fk
|
2995
|
-
WHERE fk.referenced_column_name is not null
|
2996
|
-
AND fk.table_schema = 'archiving_development'
|
2997
|
-
AND fk.table_name = 'log_days_archive'
|
2998
|
-
[0m
|
2999
|
-
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `log_days_archive`
|
3000
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3001
|
-
,fk.referenced_column_name as 'primary_key'
|
3002
|
-
,fk.column_name as 'column'
|
3003
|
-
,fk.constraint_name as 'name'
|
3004
|
-
FROM information_schema.key_column_usage fk
|
3005
|
-
WHERE fk.referenced_column_name is not null
|
3006
|
-
AND fk.table_schema = 'archiving_development'
|
3007
|
-
AND fk.table_name = 'log_lines'
|
3008
|
-
[0m
|
3009
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
3010
|
-
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3011
|
-
,fk.referenced_column_name as 'primary_key'
|
3012
|
-
,fk.column_name as 'column'
|
3013
|
-
,fk.constraint_name as 'name'
|
3014
|
-
FROM information_schema.key_column_usage fk
|
3015
|
-
WHERE fk.referenced_column_name is not null
|
3016
|
-
AND fk.table_schema = 'archiving_development'
|
3017
|
-
AND fk.table_name = 'log_lines_archive'
|
3018
|
-
[0m
|
3019
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
3020
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3021
|
-
,fk.referenced_column_name as 'primary_key'
|
3022
|
-
,fk.column_name as 'column'
|
3023
|
-
,fk.constraint_name as 'name'
|
3024
|
-
FROM information_schema.key_column_usage fk
|
3025
|
-
WHERE fk.referenced_column_name is not null
|
3026
|
-
AND fk.table_schema = 'archiving_development'
|
3027
|
-
AND fk.table_name = 'posts'
|
3028
|
-
[0m
|
3029
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
3030
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3031
|
-
,fk.referenced_column_name as 'primary_key'
|
3032
|
-
,fk.column_name as 'column'
|
3033
|
-
,fk.constraint_name as 'name'
|
3034
|
-
FROM information_schema.key_column_usage fk
|
3035
|
-
WHERE fk.referenced_column_name is not null
|
3036
|
-
AND fk.table_schema = 'archiving_development'
|
3037
|
-
AND fk.table_name = 'posts_archive'
|
3038
|
-
[0m
|
3039
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
3040
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
3041
|
-
Migrating to CreatePostableOnLogDay (20140414124125)
|
3042
|
-
[1m[35m (19.2ms)[0m ALTER TABLE `log_days` ADD `postable_type` varchar(255)
|
3043
|
-
[1m[36m (20.4ms)[0m [1mALTER TABLE `log_days` ADD `postable_id` int(11)[0m
|
3044
|
-
[1m[35m (18.6ms)[0m ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
|
3045
|
-
[1m[36m (16.1ms)[0m [1mALTER TABLE `log_days_archive` ADD `postable_id` int(11)[0m
|
3046
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3047
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')[0m
|
3048
|
-
[1m[35m (0.5ms)[0m COMMIT
|
3049
|
-
Migrating to CreateLogOther (20161103093656)
|
3050
|
-
[1m[36m (9.7ms)[0m [1mCREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
3051
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3052
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')[0m
|
3053
|
-
[1m[35m (0.3ms)[0m COMMIT
|
3054
|
-
Migrating to CreateLogOtherArchive (20161103100644)
|
3055
|
-
[1m[36m (11.4ms)[0m [1mCREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
3056
|
-
[1m[35m (0.2ms)[0m BEGIN
|
3057
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')[0m
|
3058
|
-
[1m[35m (0.6ms)[0m COMMIT
|
3059
|
-
Migrating to Dummy20161103 (20161103110724)
|
3060
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3061
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20161103110724')
|
3062
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
3063
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
3064
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3065
|
-
,fk.referenced_column_name as 'primary_key'
|
3066
|
-
,fk.column_name as 'column'
|
3067
|
-
,fk.constraint_name as 'name'
|
3068
|
-
FROM information_schema.key_column_usage fk
|
3069
|
-
WHERE fk.referenced_column_name is not null
|
3070
|
-
AND fk.table_schema = 'archiving_development'
|
3071
|
-
AND fk.table_name = 'log_days'
|
3072
|
-
[0m
|
3073
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
3074
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3075
|
-
,fk.referenced_column_name as 'primary_key'
|
3076
|
-
,fk.column_name as 'column'
|
3077
|
-
,fk.constraint_name as 'name'
|
3078
|
-
FROM information_schema.key_column_usage fk
|
3079
|
-
WHERE fk.referenced_column_name is not null
|
3080
|
-
AND fk.table_schema = 'archiving_development'
|
3081
|
-
AND fk.table_name = 'log_days_archive'
|
3082
|
-
[0m
|
3083
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
3084
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3085
|
-
,fk.referenced_column_name as 'primary_key'
|
3086
|
-
,fk.column_name as 'column'
|
3087
|
-
,fk.constraint_name as 'name'
|
3088
|
-
FROM information_schema.key_column_usage fk
|
3089
|
-
WHERE fk.referenced_column_name is not null
|
3090
|
-
AND fk.table_schema = 'archiving_development'
|
3091
|
-
AND fk.table_name = 'log_lines'
|
3092
|
-
[0m
|
3093
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
3094
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3095
|
-
,fk.referenced_column_name as 'primary_key'
|
3096
|
-
,fk.column_name as 'column'
|
3097
|
-
,fk.constraint_name as 'name'
|
3098
|
-
FROM information_schema.key_column_usage fk
|
3099
|
-
WHERE fk.referenced_column_name is not null
|
3100
|
-
AND fk.table_schema = 'archiving_development'
|
3101
|
-
AND fk.table_name = 'log_lines_archive'
|
3102
|
-
[0m
|
3103
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
3104
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3105
|
-
,fk.referenced_column_name as 'primary_key'
|
3106
|
-
,fk.column_name as 'column'
|
3107
|
-
,fk.constraint_name as 'name'
|
3108
|
-
FROM information_schema.key_column_usage fk
|
3109
|
-
WHERE fk.referenced_column_name is not null
|
3110
|
-
AND fk.table_schema = 'archiving_development'
|
3111
|
-
AND fk.table_name = 'log_others'
|
3112
|
-
[0m
|
3113
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
3114
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3115
|
-
,fk.referenced_column_name as 'primary_key'
|
3116
|
-
,fk.column_name as 'column'
|
3117
|
-
,fk.constraint_name as 'name'
|
3118
|
-
FROM information_schema.key_column_usage fk
|
3119
|
-
WHERE fk.referenced_column_name is not null
|
3120
|
-
AND fk.table_schema = 'archiving_development'
|
3121
|
-
AND fk.table_name = 'posts'
|
3122
|
-
[0m
|
3123
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
3124
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3125
|
-
,fk.referenced_column_name as 'primary_key'
|
3126
|
-
,fk.column_name as 'column'
|
3127
|
-
,fk.constraint_name as 'name'
|
3128
|
-
FROM information_schema.key_column_usage fk
|
3129
|
-
WHERE fk.referenced_column_name is not null
|
3130
|
-
AND fk.table_schema = 'archiving_development'
|
3131
|
-
AND fk.table_name = 'posts_archive'
|
3132
|
-
[0m
|
3133
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
3134
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
3135
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
3136
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3137
|
-
,fk.referenced_column_name as 'primary_key'
|
3138
|
-
,fk.column_name as 'column'
|
3139
|
-
,fk.constraint_name as 'name'
|
3140
|
-
FROM information_schema.key_column_usage fk
|
3141
|
-
WHERE fk.referenced_column_name is not null
|
3142
|
-
AND fk.table_schema = 'archiving_development'
|
3143
|
-
AND fk.table_name = 'log_days'
|
3144
|
-
[0m
|
3145
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days`
|
3146
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3147
|
-
,fk.referenced_column_name as 'primary_key'
|
3148
|
-
,fk.column_name as 'column'
|
3149
|
-
,fk.constraint_name as 'name'
|
3150
|
-
FROM information_schema.key_column_usage fk
|
3151
|
-
WHERE fk.referenced_column_name is not null
|
3152
|
-
AND fk.table_schema = 'archiving_development'
|
3153
|
-
AND fk.table_name = 'log_days_archive'
|
3154
|
-
[0m
|
3155
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_days_archive`
|
3156
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3157
|
-
,fk.referenced_column_name as 'primary_key'
|
3158
|
-
,fk.column_name as 'column'
|
3159
|
-
,fk.constraint_name as 'name'
|
3160
|
-
FROM information_schema.key_column_usage fk
|
3161
|
-
WHERE fk.referenced_column_name is not null
|
3162
|
-
AND fk.table_schema = 'archiving_development'
|
3163
|
-
AND fk.table_name = 'log_lines'
|
3164
|
-
[0m
|
3165
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines`
|
3166
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3167
|
-
,fk.referenced_column_name as 'primary_key'
|
3168
|
-
,fk.column_name as 'column'
|
3169
|
-
,fk.constraint_name as 'name'
|
3170
|
-
FROM information_schema.key_column_usage fk
|
3171
|
-
WHERE fk.referenced_column_name is not null
|
3172
|
-
AND fk.table_schema = 'archiving_development'
|
3173
|
-
AND fk.table_name = 'log_lines_archive'
|
3174
|
-
[0m
|
3175
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_lines_archive`
|
3176
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3177
|
-
,fk.referenced_column_name as 'primary_key'
|
3178
|
-
,fk.column_name as 'column'
|
3179
|
-
,fk.constraint_name as 'name'
|
3180
|
-
FROM information_schema.key_column_usage fk
|
3181
|
-
WHERE fk.referenced_column_name is not null
|
3182
|
-
AND fk.table_schema = 'archiving_development'
|
3183
|
-
AND fk.table_name = 'log_others'
|
3184
|
-
[0m
|
3185
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `log_others`
|
3186
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3187
|
-
,fk.referenced_column_name as 'primary_key'
|
3188
|
-
,fk.column_name as 'column'
|
3189
|
-
,fk.constraint_name as 'name'
|
3190
|
-
FROM information_schema.key_column_usage fk
|
3191
|
-
WHERE fk.referenced_column_name is not null
|
3192
|
-
AND fk.table_schema = 'archiving_development'
|
3193
|
-
AND fk.table_name = 'posts'
|
3194
|
-
[0m
|
3195
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts`
|
3196
|
-
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
3197
|
-
,fk.referenced_column_name as 'primary_key'
|
3198
|
-
,fk.column_name as 'column'
|
3199
|
-
,fk.constraint_name as 'name'
|
3200
|
-
FROM information_schema.key_column_usage fk
|
3201
|
-
WHERE fk.referenced_column_name is not null
|
3202
|
-
AND fk.table_schema = 'archiving_development'
|
3203
|
-
AND fk.table_name = 'posts_archive'
|
3204
|
-
[0m
|
3205
|
-
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `posts_archive`
|
3206
|
-
[1m[36m (6.1ms)[0m [1mDROP DATABASE IF EXISTS `archiving_test`[0m
|
3207
|
-
[1m[35m (0.6ms)[0m CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
3208
|
-
[1m[36m (27.3ms)[0m [1mCREATE TABLE `log_days` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB[0m
|
3209
|
-
[1m[35m (9.8ms)[0m CREATE TABLE `log_days_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
|
3210
|
-
[1m[36m (8.4ms)[0m [1mCREATE TABLE `log_lines` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB[0m
|
3211
|
-
[1m[35m (8.1ms)[0m CREATE TABLE `log_lines_archive` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
|
3212
|
-
[1m[36m (9.8ms)[0m [1mCREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB[0m
|
3213
|
-
[1m[35m (9.2ms)[0m CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
|
3214
|
-
[1m[36m (7.9ms)[0m [1mCREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime, `tag` varchar(255)) ENGINE=InnoDB[0m
|
3215
|
-
[1m[35m (11.6ms)[0m CREATE TABLE `posts_archive` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime, `tag` varchar(255)) ENGINE=InnoDB
|
3216
|
-
[1m[36m (8.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3217
|
-
[1m[35m (14.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
3218
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
3219
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20161103110724')
|
3220
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220134827')[0m
|
3221
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
|
3222
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140220140952')[0m
|
3223
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
|
3224
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20140414124125')[0m
|
3225
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20161103093656')
|
3226
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20161103100644')[0m
|