trusty-cms 2.0.10.pre.beta → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7590ad24723593fb10926b12ed30b81acbae091
4
- data.tar.gz: f00f59504392dabf938b509478dbbe28b8a6ab92
3
+ metadata.gz: 2b276c56a4f27e54859611a0010e8f9ab28cdacc
4
+ data.tar.gz: 5023528ec186ac65c88bdc67ef1b5709c7782149
5
5
  SHA512:
6
- metadata.gz: 17828472ac5124c3b4727409edd75321f578d96b4dec89dcfd8ecad5ffdbacb61e36a4ff494abfb9a5ab3d52905d62e146196218d69f5b976782f590f7a1d32a
7
- data.tar.gz: e629dc11e7fb3fdbb7886c0b424f6bc8813127592b2cc3cb4c8279d16892a6a1485839fe88bd13b469e39ab54e1dccacef75aaf226037b8f33e1d6a6b37d6478
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.10.pre.beta)
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 TrustyCms instance:
3
+ From within the directory containing your TrustyCMS instance:
4
4
 
5
- 1. Create a new Rails 3 application (i.e. `rails new [project_name]`)
5
+ 1. Create a new Rails 4 application (i.e. `rails new [project_name]`)
6
6
 
7
- 2. Replace most of your gemfile with these gems:
8
- - `gem "trusty-cms", "~>1.1.0`
9
- - `gem "mysql", "~> 2.9.1"`
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, &.radio {
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, input.radio {
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, td {
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, th {
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, &:active, &:focus {
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, #f5f1e2 50%, #f5f1e2));
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, 1px, 1px, 0);
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, textarea: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, 0, 0, 0.15), 2px, 2px, 3px);
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, #f5f1e2 25%, #f5f1e2));
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, &.error {
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, body.edit_personal_preferences {
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, button, input[type=button], input[type=submit] {
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: 2px outset buttonface;
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, span.action.disabled {
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, &: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, tr:first-child {
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
+ }
@@ -35,4 +35,4 @@
35
35
  .buttons
36
36
  %input.button{:type=>"submit", :value=>"Save Changes"}/
37
37
  or
38
- = link_to "Cancel", admin_configuration_url
38
+ = link_to "Cancel", admin_configuration_url, class: 'alt'
@@ -33,6 +33,6 @@
33
33
  = save_model_button @layout
34
34
  = save_model_and_continue_editing_button @layout
35
35
  = t('or')
36
- = link_to t('cancel'), admin_layouts_url
36
+ = link_to t('cancel'), admin_layouts_url, class: 'alt'
37
37
  - form_bottom.edit_timestamp do
38
38
  = updated_stamp @layout
@@ -13,4 +13,4 @@
13
13
  .buttons
14
14
  %input.button{:type => "submit", :value => t('delete_layout') }/
15
15
  = t('or')
16
- = link_to t('cancel'), admin_layouts_url
16
+ = link_to t('cancel'), admin_layouts_url, class: 'alt'
@@ -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
@@ -16,4 +16,4 @@
16
16
  .buttons
17
17
  %input.button{:type=>"submit", :value => t('delete_pages', :pages => pages) }/
18
18
  = t('or')
19
- = link_to t('cancel'), admin_pages_url
19
+ = link_to t('cancel'), admin_pages_url, class: 'alt'
@@ -41,4 +41,4 @@
41
41
  .buttons
42
42
  = save_model_button @user
43
43
  = t('or')
44
- = link_to t('cancel'), admin_url, {:class => "warning"}
44
+ = link_to t('cancel'), admin_url, class: 'alt'
@@ -48,6 +48,6 @@
48
48
  = save_model_button(@user)
49
49
  = save_model_and_continue_editing_button(@user)
50
50
  = t('or')
51
- = link_to t('cancel'), admin_users_path
51
+ = link_to t('cancel'), admin_users_path, class: 'alt'
52
52
  - form_bottom.edit_timestamp do
53
53
  = updated_stamp @user
@@ -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
 
@@ -13,4 +13,4 @@
13
13
  .buttons
14
14
  %input.button{:type=>"submit", :value => t('delete_user')}/
15
15
  = t('or')
16
- = link_to t('cancel'), admin_users_path
16
+ = link_to t('cancel'), admin_users_path, class: 'alt'
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = "2.0.10-beta"
5
+ VERSION = "2.0.11"
6
6
  end
7
7
  end
@@ -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
   (0.1ms) SHOW CREATE TABLE `users`
1016
1016
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1017
+  (0.5ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
1018
+  (59.7ms) DROP DATABASE IF EXISTS `trusty_cms_test`
1019
+  (0.7ms) CREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
1020
+  (31.0ms) CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
1021
+  (33.8ms) CREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) 
1022
+  (15.3ms) 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
+  (18.5ms) CREATE 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
1024
+  (17.2ms) CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
1025
+  (17.0ms) CREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) 
1026
+  (18.1ms) 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
+  (21.3ms) CREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) 
1028
+  (20.0ms) 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
+  (19.8ms) CREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) 
1030
+  (19.6ms) CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
1031
+  (23.3ms) CREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) 
1032
+  (36.3ms) CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
1033
+  (13.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
1034
+  (19.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
1035
+  (19.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) 
1036
+  (18.3ms) 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
+  (22.7ms) CREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) 
1038
+  (22.1ms) 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
+  (20.5ms) CREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) 
1040
+  (25.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1041
+  (32.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
1042
+  (0.3ms) SELECT version FROM `schema_migrations`
1043
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120209231801')
1044
+  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('1')
1045
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('2')
1046
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('4')
1047
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('5')
1048
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('7')
1049
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('8')
1050
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('9')
1051
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('12')
1052
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('13')
1053
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('14')
1054
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('15')
1055
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('16')
1056
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('17')
1057
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('18')
1058
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20')
1059
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('21')
1060
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
1061
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090226140109')
1062
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
1063
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20091003095744')
1064
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
1065
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805155020')
1066
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
1067
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20110902203823')
1068
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')
1069
+  (0.2ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
1070
+  (17.0ms) DROP DATABASE IF EXISTS `trusty_cms_test`
1071
+  (0.6ms) CREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
1072
+  (24.2ms) CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
1073
+  (27.2ms) CREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) 
1074
+  (21.3ms) 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
+  (18.3ms) CREATE 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
1076
+  (14.6ms) CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
1077
+  (21.1ms) CREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) 
1078
+  (27.1ms) 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
+  (28.3ms) CREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) 
1080
+  (29.2ms) 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
+  (23.8ms) CREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) 
1082
+  (33.7ms) CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
1083
+  (32.2ms) CREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) 
1084
+  (26.1ms) CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
1085
+  (30.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
1086
+  (57.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
1087
+  (31.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) 
1088
+  (35.8ms) 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
+  (21.6ms) CREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) 
1090
+  (20.6ms) 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
+  (20.9ms) CREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) 
1092
+  (21.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1093
+  (24.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
1094
+  (0.3ms) SELECT version FROM `schema_migrations`
1095
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120209231801')
1096
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('1')
1097
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('2')
1098
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('4')
1099
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('5')
1100
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('7')
1101
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('8')
1102
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('9')
1103
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('12')
1104
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('13')
1105
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('14')
1106
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('15')
1107
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('16')
1108
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('17')
1109
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('18')
1110
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20')
1111
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('21')
1112
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
1113
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090226140109')
1114
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
1115
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20091003095744')
1116
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
1117
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805155020')
1118
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
1119
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20110902203823')
1120
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')
1121
+  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
1122
+  (18.0ms) DROP DATABASE IF EXISTS `trusty_cms_test`
1123
+  (0.6ms) CREATE DATABASE `trusty_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
1124
+  (25.6ms) CREATE TABLE `config` (`id` int(11) auto_increment PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '') ENGINE=InnoDB
1125
+  (32.6ms) CREATE UNIQUE INDEX `key` USING btree ON `config` (`key`) 
1126
+  (25.0ms) 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
+  (26.5ms) CREATE 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
1128
+  (16.2ms) CREATE TABLE `page_fields` (`id` int(11) auto_increment PRIMARY KEY, `page_id` int(11), `name` varchar(255), `content` varchar(255)) ENGINE=InnoDB
1129
+  (23.6ms) CREATE INDEX `index_page_fields_on_page_id_and_name_and_content` USING btree ON `page_fields` (`page_id`, `name`, `content`) 
1130
+  (27.7ms) 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
+  (25.9ms) CREATE INDEX `parts_by_page` USING btree ON `page_parts` (`page_id`, `name`) 
1132
+  (23.2ms) 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
+  (19.5ms) CREATE INDEX `pages_class_name` USING btree ON `pages` (`class_name`) 
1134
+  (35.7ms) CREATE INDEX `pages_parent_id` USING btree ON `pages` (`parent_id`)
1135
+  (34.0ms) CREATE INDEX `pages_child_slug` USING btree ON `pages` (`slug`, `parent_id`) 
1136
+  (29.7ms) CREATE INDEX `pages_published` USING btree ON `pages` (`virtual`, `status_id`)
1137
+  (27.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
1138
+  (32.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)
1139
+  (27.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`) 
1140
+  (29.3ms) 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
+  (23.5ms) CREATE UNIQUE INDEX `name` USING btree ON `snippets` (`name`) 
1142
+  (31.8ms) 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
+  (28.2ms) CREATE UNIQUE INDEX `login` USING btree ON `users` (`login`) 
1144
+  (24.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1145
+  (30.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
1146
+  (0.2ms) SELECT version FROM `schema_migrations`
1147
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120209231801')
1148
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('1')
1149
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('2')
1150
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('4')
1151
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('5')
1152
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('7')
1153
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('8')
1154
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('9')
1155
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('12')
1156
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('13')
1157
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('14')
1158
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('15')
1159
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('16')
1160
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('17')
1161
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('18')
1162
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20')
1163
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('21')
1164
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20081203140407')
1165
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090226140109')
1166
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20090929164633')
1167
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20091003095744')
1168
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805154952')
1169
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100805155020')
1170
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20100810151922')
1171
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20110902203823')
1172
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111016150725')