trusty-cms 2.0.10.pre.beta → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -2
- data/INSTALL.md +7 -6
- data/app/assets/stylesheets/admin/partials/_forms.scss +43 -17
- data/app/assets/stylesheets/admin/partials/_index.scss +7 -4
- data/app/views/admin/configuration/edit.html.haml +1 -1
- data/app/views/admin/layouts/_form.html.haml +1 -1
- data/app/views/admin/layouts/remove.html.haml +1 -1
- data/app/views/admin/pages/_fields.html.haml +1 -1
- data/app/views/admin/pages/remove.html.haml +1 -1
- data/app/views/admin/preferences/edit.html.haml +1 -1
- data/app/views/admin/users/_form.html.haml +1 -1
- data/app/views/admin/users/_password_fields.html.haml +1 -1
- data/app/views/admin/users/remove.html.haml +1 -1
- data/lib/trusty_cms.rb +1 -1
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/log/development.log +156 -0
- data/spec/dummy/log/test.log +14883 -0
- data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
- data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
- data/spec/features/pages_spec.rb +2 -1
- data/spec/support/custom_actions.rb +1 -0
- metadata +2 -4
- data/spec/helpers/regions_helper_spec.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b276c56a4f27e54859611a0010e8f9ab28cdacc
|
4
|
+
data.tar.gz: 5023528ec186ac65c88bdc67ef1b5709c7782149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eaee5a942e1da01b0177668feb99f5946a792384d0d398d8e6914255d69c0d87c5d2610c9ef31ece0bd3795a816bb150ac6bd50cf62637649bb8e64dab3df41
|
7
|
+
data.tar.gz: 47e042d6f00e6bdace0a22cce00c3b9f92fa0814f23516607b9d7a8da939dd3d7c83abfb7d3befc223788ce41c81a5355fd601e527e731cd201a50e9c2a72c8f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-cms (2.0.
|
4
|
+
trusty-cms (2.0.11)
|
5
5
|
RedCloth (~> 4.2)
|
6
6
|
acts_as_tree (~> 2.1)
|
7
7
|
bundler (~> 1.7)
|
@@ -30,7 +30,6 @@ GEM
|
|
30
30
|
remote: https://rubygems.org/
|
31
31
|
specs:
|
32
32
|
RedCloth (4.2.9)
|
33
|
-
RedCloth (4.2.9-java)
|
34
33
|
actionmailer (4.2.3)
|
35
34
|
actionpack (= 4.2.3)
|
36
35
|
actionview (= 4.2.3)
|
data/INSTALL.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# Installation and Setup
|
2
2
|
|
3
|
-
From within the directory containing your
|
3
|
+
From within the directory containing your TrustyCMS instance:
|
4
4
|
|
5
|
-
1. Create a new Rails
|
5
|
+
1. Create a new Rails 4 application (i.e. `rails new [project_name]`)
|
6
6
|
|
7
|
-
2. Replace most of your
|
8
|
-
|
9
|
-
|
7
|
+
2. Replace most of your Gemfile with these gems:
|
8
|
+
- gem "trusty-cms", "~>2.0.0-beta"
|
9
|
+
- gem "mysql2"
|
10
|
+
- gem 'rails-observers'
|
11
|
+
- gem 'protected_attributes'
|
10
12
|
|
11
13
|
3. Run `bundle install`
|
12
14
|
|
@@ -14,4 +16,3 @@ From within the directory containing your TrustyCms instance:
|
|
14
16
|
- This will ask you if you want to replace a number of existing files (like application.rb); reply Y to all.
|
15
17
|
|
16
18
|
5. Run `bundle exec rake db:create`, then `bundle exec rake db:bootstrap`.
|
17
|
-
|
@@ -16,7 +16,8 @@
|
|
16
16
|
p {
|
17
17
|
label {
|
18
18
|
display: block;
|
19
|
-
&.checkbox,
|
19
|
+
&.checkbox,
|
20
|
+
&.radio {
|
20
21
|
display: inline;
|
21
22
|
font-weight: normal;
|
22
23
|
font-size: 95%;
|
@@ -33,7 +34,8 @@
|
|
33
34
|
font-size: 140%;
|
34
35
|
margin-bottom: 0;
|
35
36
|
}
|
36
|
-
input.checkbox,
|
37
|
+
input.checkbox,
|
38
|
+
input.radio {
|
37
39
|
margin-top: 0.3em;
|
38
40
|
}
|
39
41
|
textarea {
|
@@ -110,7 +112,8 @@
|
|
110
112
|
margin: 0;
|
111
113
|
padding: 0;
|
112
114
|
width: 100%;
|
113
|
-
th,
|
115
|
+
th,
|
116
|
+
td {
|
114
117
|
border-top: 1px #999999 solid;
|
115
118
|
padding: 6px;
|
116
119
|
}
|
@@ -142,7 +145,8 @@
|
|
142
145
|
}
|
143
146
|
}
|
144
147
|
tr:first-child {
|
145
|
-
td,
|
148
|
+
td,
|
149
|
+
th {
|
146
150
|
border-top: none;
|
147
151
|
}
|
148
152
|
}
|
@@ -164,7 +168,9 @@
|
|
164
168
|
text-shadow: #666666 1px 1px 0;
|
165
169
|
text-decoration: none;
|
166
170
|
@include border-bottom-radius(6px);
|
167
|
-
&:hover,
|
171
|
+
&:hover,
|
172
|
+
&:active,
|
173
|
+
&:focus {
|
168
174
|
text-decoration: underline;
|
169
175
|
}
|
170
176
|
&.more {
|
@@ -189,7 +195,9 @@
|
|
189
195
|
position: relative;
|
190
196
|
}
|
191
197
|
&:before {
|
192
|
-
@include linear-gradient(color-stops(white,
|
198
|
+
@include linear-gradient(color-stops(white,
|
199
|
+
#f5f1e2 50%,
|
200
|
+
#f5f1e2));
|
193
201
|
@include border-top-radius(10px);
|
194
202
|
content: "\0020";
|
195
203
|
display: block;
|
@@ -290,7 +298,10 @@ body.reversed {
|
|
290
298
|
padding: 20px 15px;
|
291
299
|
margin-bottom: 20px;
|
292
300
|
overflow: hidden;
|
293
|
-
@include single-box-shadow(#ababab,
|
301
|
+
@include single-box-shadow(#ababab,
|
302
|
+
1px,
|
303
|
+
1px,
|
304
|
+
0);
|
294
305
|
@include border-radius(8px);
|
295
306
|
h3 {
|
296
307
|
font-weight: bold;
|
@@ -310,7 +321,8 @@ body.reversed {
|
|
310
321
|
textarea {
|
311
322
|
border: 1px solid #EAEAEA;
|
312
323
|
}
|
313
|
-
input:not([type=submit]):focus,
|
324
|
+
input:not([type=submit]):focus,
|
325
|
+
textarea:focus {
|
314
326
|
border: 1px #EC65A5;
|
315
327
|
-webkit-box-shadow: 0 0 10px #EC65A5;
|
316
328
|
-moz-box-shadow: 0 0 10px #EC65A5;
|
@@ -321,7 +333,13 @@ body.reversed {
|
|
321
333
|
border-radius: 5px;
|
322
334
|
}
|
323
335
|
.box {
|
324
|
-
@include single-box-shadow(rgba(0,
|
336
|
+
@include single-box-shadow(rgba(0,
|
337
|
+
0,
|
338
|
+
0,
|
339
|
+
0.15),
|
340
|
+
2px,
|
341
|
+
2px,
|
342
|
+
3px);
|
325
343
|
}
|
326
344
|
}
|
327
345
|
}
|
@@ -330,7 +348,9 @@ body.single_form {
|
|
330
348
|
#content {
|
331
349
|
#single_form {
|
332
350
|
background: #f5f1e2;
|
333
|
-
@include linear-gradient(color-stops(#fdfcf9,
|
351
|
+
@include linear-gradient(color-stops(#fdfcf9,
|
352
|
+
#f5f1e2 25%,
|
353
|
+
#f5f1e2));
|
334
354
|
border: 0.35em solid #efead3;
|
335
355
|
padding: 0.5em 1.5em;
|
336
356
|
padding-right: 22px;
|
@@ -343,7 +363,8 @@ body.single_form {
|
|
343
363
|
}
|
344
364
|
p {
|
345
365
|
font-size: 90%;
|
346
|
-
&.intro,
|
366
|
+
&.intro,
|
367
|
+
&.error {
|
347
368
|
font-size: 100%;
|
348
369
|
line-height: 1.4;
|
349
370
|
}
|
@@ -402,7 +423,8 @@ body.single_form {
|
|
402
423
|
}
|
403
424
|
}
|
404
425
|
|
405
|
-
body.edit_user,
|
426
|
+
body.edit_user,
|
427
|
+
body.edit_personal_preferences {
|
406
428
|
#avatar {
|
407
429
|
left: 26em;
|
408
430
|
position: absolute;
|
@@ -416,14 +438,21 @@ body.edit_user, body.edit_personal_preferences {
|
|
416
438
|
}
|
417
439
|
}
|
418
440
|
|
419
|
-
.button,
|
441
|
+
.button,
|
442
|
+
button,
|
443
|
+
input[type=button],
|
444
|
+
input[type=submit],
|
445
|
+
input[type=file] {
|
446
|
+
.fa {
|
447
|
+
color: #f3f3f3;
|
448
|
+
}
|
420
449
|
-webkit-appearance: none;
|
421
450
|
font-size: 1.1em;
|
422
451
|
padding: .5em 3em;
|
423
452
|
margin: 0.5em;
|
424
453
|
color: #f3f3f3;
|
425
454
|
background-color: #94BDC3;
|
426
|
-
border:
|
455
|
+
border: 0;
|
427
456
|
-webkit-border-radius: 5px;
|
428
457
|
-moz-border-radius: 5px;
|
429
458
|
border-radius: 5px;
|
@@ -445,9 +474,6 @@ body.edit_user, body.edit_personal_preferences {
|
|
445
474
|
-o-transition: all .2s;
|
446
475
|
transition: all .2s;
|
447
476
|
}
|
448
|
-
.fa {
|
449
|
-
color: #f3f3f3;
|
450
|
-
}
|
451
477
|
}
|
452
478
|
|
453
479
|
.hover {
|
@@ -35,7 +35,8 @@ table.index {
|
|
35
35
|
text-align: left;
|
36
36
|
padding: 4px 9px;
|
37
37
|
border-top: 1px solid #f0f0f0;
|
38
|
-
a.action,
|
38
|
+
a.action,
|
39
|
+
span.action.disabled {
|
39
40
|
padding: 6px;
|
40
41
|
margin: 0 25px 0 1px;
|
41
42
|
img {
|
@@ -95,7 +96,8 @@ table.index {
|
|
95
96
|
&:first-child {
|
96
97
|
border-top: 1px solid white;
|
97
98
|
}
|
98
|
-
&.hover,
|
99
|
+
&.hover,
|
100
|
+
&:hover {
|
99
101
|
td {
|
100
102
|
border-top: 1px solid #d5f0ff;
|
101
103
|
border-bottom: 1px solid #c5dff5;
|
@@ -105,7 +107,8 @@ table.index {
|
|
105
107
|
}
|
106
108
|
}
|
107
109
|
thead {
|
108
|
-
tr,
|
110
|
+
tr,
|
111
|
+
tr:first-child {
|
109
112
|
border-top: none;
|
110
113
|
}
|
111
114
|
}
|
@@ -195,4 +198,4 @@ table.index#users {
|
|
195
198
|
font-weight: normal;
|
196
199
|
}
|
197
200
|
}
|
198
|
-
}
|
201
|
+
}
|
@@ -57,7 +57,7 @@
|
|
57
57
|
= save_model_and_continue_editing_button(@page)
|
58
58
|
= submit_tag(t('preview', :default => 'Preview'), :class => 'button', :id => 'show-preview')
|
59
59
|
= t('or')
|
60
|
-
= link_to t('cancel'), admin_pages_url
|
60
|
+
= link_to t('cancel'), admin_pages_url, class: 'alt'
|
61
61
|
#preview_panel.fullcover.grey_out{:style => 'display: none;'}
|
62
62
|
%iframe{:id => 'page-preview', :class => 'fullcover', :name => 'page-preview', :src => ActionController::Base.relative_url_root.to_s + '/loading-iframe.html', :frameborder => 0, :scrolling => "auto"}
|
63
63
|
.preview_tools
|
@@ -13,6 +13,6 @@
|
|
13
13
|
- unless @user.new_record?
|
14
14
|
%span
|
15
15
|
= t('or')
|
16
|
-
%a{:href=>"#", :class=>"warning", :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel')
|
16
|
+
%a{:href=>"#", :class=>"warning", :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel', class: 'alt')
|
17
17
|
|
18
18
|
|
data/lib/trusty_cms.rb
CHANGED
@@ -16,6 +16,7 @@ require "sass-rails"
|
|
16
16
|
|
17
17
|
if defined?(Bundler)
|
18
18
|
# If you precompile assets before deploying to production, use this line
|
19
|
+
require 'rake'
|
19
20
|
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
20
21
|
# If you want your assets lazily compiled in production, use this line
|
21
22
|
# Bundler.require(:default, :assets, Rails.env)
|
@@ -1014,3 +1014,159 @@ WHERE fk.referenced_column_name is not null
|
|
1014
1014
|
|
1015
1015
|
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `users`[0m
|
1016
1016
|
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
1017
|
+
[1m[36m (0.5ms)[0m [1mSELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL[0m
|
1018
|
+
[1m[35m (59.7ms)[0m DROP DATABASE IF EXISTS `trusty_cms_test`
|
1019
|
+
[1m[36m (0.7ms)[0m [1mCREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
1020
|
+
[1m[35m (31.0ms)[0m CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
|
1021
|
+
[1m[36m (33.8ms)[0m [1mCREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) [0m
|
1022
|
+
[1m[35m (15.3ms)[0m CREATE TABLE `extension_meta` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `schema_version` int(11) DEFAULT 0, `enabled` tinyint(1) DEFAULT 1) ENGINE=InnoDB
|
1023
|
+
[1m[36m (18.5ms)[0m [1mCREATE TABLE `layouts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `content_type` varchar(40), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB[0m
|
1024
|
+
[1m[35m (17.2ms)[0m CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
|
1025
|
+
[1m[36m (17.0ms)[0m [1mCREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) [0m
|
1026
|
+
[1m[35m (18.1ms)[0m CREATE TABLE `page_parts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `filter_id` varchar(25), `content` mediumtext, `page_id` int(11)) ENGINE=InnoDB
|
1027
|
+
[1m[36m (21.3ms)[0m [1mCREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) [0m
|
1028
|
+
[1m[35m (20.0ms)[0m CREATE TABLE `pages` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int(11) DEFAULT 1 NOT NULL, `parent_id` int(11), `layout_id` int(11), `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `virtual` tinyint(1) DEFAULT 0 NOT NULL, `lock_version` int(11) DEFAULT 0, `allowed_children_cache` text) ENGINE=InnoDB
|
1029
|
+
[1m[36m (19.8ms)[0m [1mCREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) [0m
|
1030
|
+
[1m[35m (19.6ms)[0m CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
|
1031
|
+
[1m[36m (23.3ms)[0m [1mCREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) [0m
|
1032
|
+
[1m[35m (36.3ms)[0m CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
|
1033
|
+
[1m[36m (13.0ms)[0m [1mCREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB[0m
|
1034
|
+
[1m[35m (19.9ms)[0m CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
|
1035
|
+
[1m[36m (19.6ms)[0m [1mCREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) [0m
|
1036
|
+
[1m[35m (18.3ms)[0m CREATE TABLE `snippets` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100) DEFAULT '' NOT NULL, `filter_id` varchar(25), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB
|
1037
|
+
[1m[36m (22.7ms)[0m [1mCREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) [0m
|
1038
|
+
[1m[35m (22.1ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `admin` tinyint(1) DEFAULT 0 NOT NULL, `designer` tinyint(1) DEFAULT 0 NOT NULL, `notes` text, `lock_version` int(11) DEFAULT 0, `salt` varchar(255), `session_token` varchar(255), `locale` varchar(255)) ENGINE=InnoDB
|
1039
|
+
[1m[36m (20.5ms)[0m [1mCREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) [0m
|
1040
|
+
[1m[35m (25.3ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
1041
|
+
[1m[36m (32.3ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) [0m
|
1042
|
+
[1m[35m (0.3ms)[0m SELECT version FROM `schema_migrations`
|
1043
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120209231801')[0m
|
1044
|
+
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('1')
|
1045
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
1046
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('4')
|
1047
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
1048
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('7')
|
1049
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
1050
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('9')
|
1051
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
1052
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('13')
|
1053
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('14')[0m
|
1054
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('15')
|
1055
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('16')[0m
|
1056
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('17')
|
1057
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('18')[0m
|
1058
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20')
|
1059
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('21')[0m
|
1060
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
|
1061
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20090226140109')[0m
|
1062
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
|
1063
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20091003095744')[0m
|
1064
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
|
1065
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20100805155020')[0m
|
1066
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
|
1067
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20110902203823')[0m
|
1068
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')
|
1069
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL[0m
|
1070
|
+
[1m[35m (17.0ms)[0m DROP DATABASE IF EXISTS `trusty_cms_test`
|
1071
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
1072
|
+
[1m[35m (24.2ms)[0m CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
|
1073
|
+
[1m[36m (27.2ms)[0m [1mCREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) [0m
|
1074
|
+
[1m[35m (21.3ms)[0m CREATE TABLE `extension_meta` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `schema_version` int(11) DEFAULT 0, `enabled` tinyint(1) DEFAULT 1) ENGINE=InnoDB
|
1075
|
+
[1m[36m (18.3ms)[0m [1mCREATE TABLE `layouts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `content_type` varchar(40), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB[0m
|
1076
|
+
[1m[35m (14.6ms)[0m CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
|
1077
|
+
[1m[36m (21.1ms)[0m [1mCREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) [0m
|
1078
|
+
[1m[35m (27.1ms)[0m CREATE TABLE `page_parts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `filter_id` varchar(25), `content` mediumtext, `page_id` int(11)) ENGINE=InnoDB
|
1079
|
+
[1m[36m (28.3ms)[0m [1mCREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) [0m
|
1080
|
+
[1m[35m (29.2ms)[0m CREATE TABLE `pages` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int(11) DEFAULT 1 NOT NULL, `parent_id` int(11), `layout_id` int(11), `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `virtual` tinyint(1) DEFAULT 0 NOT NULL, `lock_version` int(11) DEFAULT 0, `allowed_children_cache` text) ENGINE=InnoDB
|
1081
|
+
[1m[36m (23.8ms)[0m [1mCREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) [0m
|
1082
|
+
[1m[35m (33.7ms)[0m CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
|
1083
|
+
[1m[36m (32.2ms)[0m [1mCREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) [0m
|
1084
|
+
[1m[35m (26.1ms)[0m CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
|
1085
|
+
[1m[36m (30.7ms)[0m [1mCREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB[0m
|
1086
|
+
[1m[35m (57.5ms)[0m CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
|
1087
|
+
[1m[36m (31.4ms)[0m [1mCREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) [0m
|
1088
|
+
[1m[35m (35.8ms)[0m CREATE TABLE `snippets` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100) DEFAULT '' NOT NULL, `filter_id` varchar(25), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB
|
1089
|
+
[1m[36m (21.6ms)[0m [1mCREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) [0m
|
1090
|
+
[1m[35m (20.6ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `admin` tinyint(1) DEFAULT 0 NOT NULL, `designer` tinyint(1) DEFAULT 0 NOT NULL, `notes` text, `lock_version` int(11) DEFAULT 0, `salt` varchar(255), `session_token` varchar(255), `locale` varchar(255)) ENGINE=InnoDB
|
1091
|
+
[1m[36m (20.9ms)[0m [1mCREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) [0m
|
1092
|
+
[1m[35m (21.5ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
1093
|
+
[1m[36m (24.9ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) [0m
|
1094
|
+
[1m[35m (0.3ms)[0m SELECT version FROM `schema_migrations`
|
1095
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120209231801')[0m
|
1096
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('1')
|
1097
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
1098
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('4')
|
1099
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
1100
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('7')
|
1101
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
1102
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('9')
|
1103
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
1104
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('13')
|
1105
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('14')[0m
|
1106
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('15')
|
1107
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('16')[0m
|
1108
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('17')
|
1109
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('18')[0m
|
1110
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20')
|
1111
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('21')[0m
|
1112
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
|
1113
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20090226140109')[0m
|
1114
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
|
1115
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20091003095744')[0m
|
1116
|
+
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
|
1117
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20100805155020')[0m
|
1118
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
|
1119
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20110902203823')[0m
|
1120
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')
|
1121
|
+
[1m[36m (0.3ms)[0m [1mSELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL[0m
|
1122
|
+
[1m[35m (18.0ms)[0m DROP DATABASE IF EXISTS `trusty_cms_test`
|
1123
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
1124
|
+
[1m[35m (25.6ms)[0m CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
|
1125
|
+
[1m[36m (32.6ms)[0m [1mCREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) [0m
|
1126
|
+
[1m[35m (25.0ms)[0m CREATE TABLE `extension_meta` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `schema_version` int(11) DEFAULT 0, `enabled` tinyint(1) DEFAULT 1) ENGINE=InnoDB
|
1127
|
+
[1m[36m (26.5ms)[0m [1mCREATE TABLE `layouts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `content_type` varchar(40), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB[0m
|
1128
|
+
[1m[35m (16.2ms)[0m CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
|
1129
|
+
[1m[36m (23.6ms)[0m [1mCREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) [0m
|
1130
|
+
[1m[35m (27.7ms)[0m CREATE TABLE `page_parts` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `filter_id` varchar(25), `content` mediumtext, `page_id` int(11)) ENGINE=InnoDB
|
1131
|
+
[1m[36m (25.9ms)[0m [1mCREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) [0m
|
1132
|
+
[1m[35m (23.2ms)[0m CREATE TABLE `pages` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int(11) DEFAULT 1 NOT NULL, `parent_id` int(11), `layout_id` int(11), `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `virtual` tinyint(1) DEFAULT 0 NOT NULL, `lock_version` int(11) DEFAULT 0, `allowed_children_cache` text) ENGINE=InnoDB
|
1133
|
+
[1m[36m (19.5ms)[0m [1mCREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) [0m
|
1134
|
+
[1m[35m (35.7ms)[0m CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
|
1135
|
+
[1m[36m (34.0ms)[0m [1mCREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) [0m
|
1136
|
+
[1m[35m (29.7ms)[0m CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
|
1137
|
+
[1m[36m (27.8ms)[0m [1mCREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB[0m
|
1138
|
+
[1m[35m (32.6ms)[0m CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
|
1139
|
+
[1m[36m (27.4ms)[0m [1mCREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) [0m
|
1140
|
+
[1m[35m (29.3ms)[0m CREATE TABLE `snippets` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100) DEFAULT '' NOT NULL, `filter_id` varchar(25), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `lock_version` int(11) DEFAULT 0) ENGINE=InnoDB
|
1141
|
+
[1m[36m (23.5ms)[0m [1mCREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) [0m
|
1142
|
+
[1m[35m (31.8ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `created_at` datetime, `updated_at` datetime, `created_by_id` int(11), `updated_by_id` int(11), `admin` tinyint(1) DEFAULT 0 NOT NULL, `designer` tinyint(1) DEFAULT 0 NOT NULL, `notes` text, `lock_version` int(11) DEFAULT 0, `salt` varchar(255), `session_token` varchar(255), `locale` varchar(255)) ENGINE=InnoDB
|
1143
|
+
[1m[36m (28.2ms)[0m [1mCREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) [0m
|
1144
|
+
[1m[35m (24.5ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
1145
|
+
[1m[36m (30.6ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) [0m
|
1146
|
+
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
1147
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120209231801')[0m
|
1148
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('1')
|
1149
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
1150
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('4')
|
1151
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
1152
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('7')
|
1153
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
1154
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('9')
|
1155
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
1156
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('13')
|
1157
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('14')[0m
|
1158
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('15')
|
1159
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('16')[0m
|
1160
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('17')
|
1161
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('18')[0m
|
1162
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20')
|
1163
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('21')[0m
|
1164
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
|
1165
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20090226140109')[0m
|
1166
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
|
1167
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20091003095744')[0m
|
1168
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
|
1169
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20100805155020')[0m
|
1170
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
|
1171
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20110902203823')[0m
|
1172
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')
|