trusty-cms 4.3.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +99 -87
  4. data/app/assets/config/trusty-cms-manifest.js +6 -0
  5. data/app/assets/javascripts/ckeditor/config.js +2 -2
  6. data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
  7. data/app/controllers/admin/assets_controller.rb +6 -2
  8. data/app/models/asset.rb +39 -48
  9. data/app/models/asset_type.rb +6 -2
  10. data/app/views/admin/assets/edit.html.haml +5 -3
  11. data/config/database.yml +2 -2
  12. data/config/locales/en.yml +1 -0
  13. data/coverage/index.html +1 -1
  14. data/lib/trusty_cms/deprecation.rb +13 -0
  15. data/lib/trusty_cms.rb +1 -1
  16. data/node_modules/path-parse/index.js +17 -35
  17. data/node_modules/path-parse/package.json +1 -1
  18. data/node_modules/postcss/CHANGELOG.md +27 -0
  19. data/node_modules/postcss/README.md +21 -0
  20. data/node_modules/postcss/lib/at-rule.js +2 -4
  21. data/node_modules/postcss/lib/comment.js +2 -4
  22. data/node_modules/postcss/lib/container.js +27 -122
  23. data/node_modules/postcss/lib/css-syntax-error.js +5 -7
  24. data/node_modules/postcss/lib/declaration.js +2 -4
  25. data/node_modules/postcss/lib/input.js +3 -5
  26. data/node_modules/postcss/lib/lazy-result.js +10 -17
  27. data/node_modules/postcss/lib/map-generator.js +10 -17
  28. data/node_modules/postcss/lib/node.js +2 -4
  29. data/node_modules/postcss/lib/parser.js +2 -4
  30. data/node_modules/postcss/lib/postcss.d.ts +25 -19
  31. data/node_modules/postcss/lib/previous-map.js +17 -6
  32. data/node_modules/postcss/lib/processor.js +16 -15
  33. data/node_modules/postcss/lib/result.js +2 -4
  34. data/node_modules/postcss/lib/root.js +10 -17
  35. data/node_modules/postcss/lib/rule.js +2 -4
  36. data/node_modules/postcss/lib/stringifier.js +2 -4
  37. data/node_modules/postcss/lib/warning.js +2 -4
  38. data/node_modules/postcss/package.json +16 -12
  39. data/spec/dummy/log/test.log +542 -443
  40. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  41. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
  42. data/trusty_cms.gemspec +4 -2
  43. data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
  44. data/yarn.lock +6 -6
  45. metadata +69 -345
  46. data/app/assets/config/trusty-cms/manifest.js +0 -7
  47. data/config/initializers/interpolation.rb +0 -6
  48. data/node_modules/path-parse/test.js +0 -77
  49. data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
  50. data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
  51. data/node_modules/postcss/docs/api/index.html +0 -22716
  52. data/spec/dummy/log/development.log +0 -158
  53. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
  54. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
  55. data/spec/dummy/node_modules/jquery/README.md +0 -62
  56. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  57. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
  58. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
  59. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  60. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
  61. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
  62. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  63. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  64. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
  65. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  66. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  67. data/spec/dummy/node_modules/jquery/package.json +0 -117
  68. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
  69. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
  70. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
  71. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
  72. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  73. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  74. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
  75. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
  76. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
  77. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
  78. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
  79. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
  80. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
  81. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
  82. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
  83. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
  84. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
  85. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
  86. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
  87. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
  88. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
  89. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
  90. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
  91. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
  92. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
  93. data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
  94. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  95. data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
  96. data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
  97. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
  98. data/spec/dummy/node_modules/jquery/src/core.js +0 -400
  99. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  100. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
  101. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
  102. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
  103. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  104. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
  105. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
  106. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  107. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
  108. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  109. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
  110. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  111. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
  112. data/spec/dummy/node_modules/jquery/src/css.js +0 -494
  113. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
  114. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
  115. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  116. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
  117. data/spec/dummy/node_modules/jquery/src/data.js +0 -180
  118. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  119. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
  120. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
  121. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
  122. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
  123. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
  124. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
  125. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  126. data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
  127. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
  128. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
  129. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
  130. data/spec/dummy/node_modules/jquery/src/event.js +0 -892
  131. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
  132. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
  133. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
  134. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
  135. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
  136. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
  137. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  138. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
  139. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  140. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
  141. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  142. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
  143. data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
  144. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
  145. data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
  146. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
  147. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
  148. data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
  149. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
  150. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
  151. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
  152. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  153. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  154. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
  155. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  156. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
  157. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
  158. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
  159. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
  160. data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
  161. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
  162. data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
  163. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
  164. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
  165. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
  166. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
  167. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
  168. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
  169. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
  170. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
  171. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  172. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
  173. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
  174. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
  175. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
  176. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
  177. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
  178. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
  179. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  180. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  181. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  182. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  183. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  184. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  185. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
  186. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
  187. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
  188. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
  189. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
  190. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
  191. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
  192. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
  193. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
  194. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
  195. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
  196. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
  197. data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
  198. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
  199. data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
  200. data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
  201. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,536 +1,635 @@
1
-  (1.7ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`
2
-  (0.4ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
3
-  (74.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_bin NOT NULL PRIMARY KEY)
4
-  (18.4ms) CREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_bin NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL)
5
-  (1.1ms) SELECT GET_LOCK('1911292410673641555', 0)
6
-  (0.7ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
7
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1
8
- TRANSACTION (0.2ms) BEGIN
9
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2021-03-03 18:14:42.447303', '2021-03-03 18:14:42.447303')
10
- TRANSACTION (24.7ms) COMMIT
11
-  (0.6ms) SELECT RELEASE_LOCK('1911292410673641555')
12
-  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
13
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
14
- TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config`
15
-  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
16
-  (0.2ms) SELECT GET_LOCK('1911292410673641555', 0)
1
+  (1.0ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`
2
+  (0.6ms) DROP TABLE IF EXISTS `admins` CASCADE
3
+  (38.8ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8
4
+  (0.3ms) DROP TABLE IF EXISTS `assets` CASCADE
5
+  (31.5ms) CREATE TABLE `assets` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `caption` varchar(255), `title` varchar(255), `asset_file_name` varchar(255), `asset_content_type` varchar(255), `asset_file_size` int, `created_by_id` int, `updated_by_id` int, `created_at` datetime, `updated_at` datetime, `uuid` varchar(255), `original_width` int, `original_height` int, `original_extension` varchar(255)) ENGINE=InnoDB DEFAULT CHARSET=utf8
6
+  (0.5ms) DROP TABLE IF EXISTS `config` CASCADE
7
+  (29.4ms) CREATE TABLE `config` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '', UNIQUE INDEX `key` (`key`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
8
+  (0.6ms) DROP TABLE IF EXISTS `extension_meta` CASCADE
9
+  (26.9ms) CREATE TABLE `extension_meta` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `schema_version` int DEFAULT 0, `enabled` tinyint(1) DEFAULT TRUE) ENGINE=InnoDB DEFAULT CHARSET=utf8
10
+  (0.3ms) DROP TABLE IF EXISTS `layouts` CASCADE
11
+  (30.0ms) CREATE TABLE `layouts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int, `updated_by_id` int, `content_type` varchar(40), `lock_version` int DEFAULT 0, `site_id` int) ENGINE=InnoDB DEFAULT CHARSET=utf8
12
+  (0.7ms) DROP TABLE IF EXISTS `page_attachments` CASCADE
13
+  (26.3ms) CREATE TABLE `page_attachments` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `asset_id` int, `page_id` int, `position` int) ENGINE=InnoDB DEFAULT CHARSET=utf8
14
+  (0.3ms) DROP TABLE IF EXISTS `page_fields` CASCADE
15
+  (30.7ms) CREATE TABLE `page_fields` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `page_id` int, `name` varchar(255), `content` varchar(255), INDEX `index_page_fields_on_page_id_and_name_and_content` (`page_id`, `name`, `content`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
16
+  (0.7ms) DROP TABLE IF EXISTS `page_parts` CASCADE
17
+  (30.8ms) CREATE TABLE `page_parts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `filter_id` varchar(25), `content` mediumtext, `page_id` int, INDEX `parts_by_page` (`page_id`, `name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
18
+  (0.5ms) DROP TABLE IF EXISTS `pages` CASCADE
19
+  (37.6ms) CREATE TABLE `pages` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int DEFAULT 1 NOT NULL, `parent_id` int, `layout_id` int, `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by_id` int, `updated_by_id` int, `virtual` tinyint(1) DEFAULT FALSE NOT NULL, `lock_version` int DEFAULT 0, `site_id` int, `allowed_children_cache` text, `position` int, INDEX `pages_class_name` (`class_name`), INDEX `pages_parent_id` (`parent_id`), INDEX `index_pages_on_site_id` (`site_id`), INDEX `pages_child_slug` (`slug`, `parent_id`), INDEX `pages_published` (`virtual`, `status_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
20
+  (0.6ms) DROP TABLE IF EXISTS `sessions` CASCADE
21
+  (31.3ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime, INDEX `index_sessions_on_session_id` (`session_id`), INDEX `index_sessions_on_updated_at` (`updated_at`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
22
+  (0.3ms) DROP TABLE IF EXISTS `sites` CASCADE
23
+  (26.9ms) CREATE TABLE `sites` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `domain` varchar(255), `homepage_id` int, `position` int DEFAULT 0, `created_by_id` int, `created_at` datetime, `updated_by_id` int, `updated_at` datetime, `subtitle` varchar(255), `abbreviation` varchar(255), `base_domain` varchar(255)) ENGINE=InnoDB DEFAULT CHARSET=utf8
24
+  (0.5ms) DROP TABLE IF EXISTS `snippets` CASCADE
25
+  (26.4ms) CREATE TABLE `snippets` (`id` bigint NOT NULL 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, `updated_by_id` int, `lock_version` int DEFAULT 0, `site_id` int, UNIQUE INDEX `name_site_id` (`name`, `site_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8
26
+  (0.3ms) DROP TABLE IF EXISTS `users` CASCADE
27
+  (26.4ms) CREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `admin` tinyint(1) DEFAULT FALSE NOT NULL, `designer` tinyint(1) DEFAULT FALSE NOT NULL, `created_at` datetime, `updated_at` datetime, `created_by_id` int, `updated_by_id` int, `salt` varchar(255), `notes` text, `lock_version` int DEFAULT 0, `session_token` varchar(255), `site_id` int, `locale` varchar(255), `password_reset_token` varchar(255), `password_reset_sent_at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8
28
+  (0.5ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
29
+  (28.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_bin NOT NULL PRIMARY KEY)
17
30
   (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
18
- Migrating to CreateTrustyTables (1)
19
-  (0.3ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
20
-  (0.2ms) DROP TABLE IF EXISTS `config`
21
-  (83.8ms) CREATE TABLE `config` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '')
22
-  (20.2ms) CREATE UNIQUE INDEX `key` ON `config` (`key`)
23
-  (0.4ms) DROP TABLE IF EXISTS `pages`
24
-  (16.1ms) CREATE TABLE `pages` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int DEFAULT 1 NOT NULL, `parent_id` int, `layout_id` int, `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by` int, `updated_by` int)
25
-  (0.4ms) DROP TABLE IF EXISTS `page_parts`
26
-  (18.3ms) CREATE TABLE `page_parts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `filter` varchar(25), `content` text, `page_id` int)
27
-  (0.3ms) DROP TABLE IF EXISTS `snippets`
28
-  (20.9ms) CREATE TABLE `snippets` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) DEFAULT '' NOT NULL, `filter` varchar(25), `content` text, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int)
29
-  (16.7ms) CREATE UNIQUE INDEX `name` ON `snippets` (`name`)
30
-  (0.4ms) DROP TABLE IF EXISTS `layouts`
31
-  (16.5ms) CREATE TABLE `layouts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int)
32
-  (0.3ms) DROP TABLE IF EXISTS `users`
33
-  (23.4ms) CREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `admin` tinyint(1) DEFAULT FALSE NOT NULL, `developer` tinyint(1) DEFAULT FALSE NOT NULL, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int, `salt` varchar(255))
34
-  (19.5ms) CREATE UNIQUE INDEX `login` ON `users` (`login`)
35
- TRANSACTION (0.2ms) BEGIN
36
- ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('1')
37
- TRANSACTION (0.3ms) COMMIT
38
- Migrating to InsertInitialData (2)
39
- TRANSACTION (0.2ms) BEGIN
40
- ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('2')
41
- TRANSACTION (39.8ms) COMMIT
42
- Migrating to RenameFilterColumn (4)
43
-  (18.7ms) ALTER TABLE `page_parts` CHANGE `filter` `filter_id` varchar(25) DEFAULT NULL
44
-  (15.6ms) ALTER TABLE `snippets` CHANGE `filter` `filter_id` varchar(25) DEFAULT NULL
45
- TRANSACTION (0.2ms) BEGIN
46
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('4')
47
- TRANSACTION (0.3ms) COMMIT
48
- Migrating to AddVirtualColumnToPage (5)
49
-  (46.2ms) ALTER TABLE `pages` ADD `virtual` tinyint(1) DEFAULT FALSE NOT NULL
50
- TRANSACTION (0.2ms) BEGIN
51
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('5')
52
- TRANSACTION (0.3ms) COMMIT
53
- Migrating to RemoveUserLoginIndex (6)
54
-  (43.4ms) DROP INDEX `login` ON `users`
55
- TRANSACTION (0.3ms) BEGIN
56
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('6')
31
+  (2.4ms) INSERT INTO `schema_migrations` (version) VALUES (20161027141250)
32
+  (1.3ms) INSERT INTO `schema_migrations` (version) VALUES
33
+ (1),
34
+ (2),
35
+ (4),
36
+ (5),
37
+ (6),
38
+ (7),
39
+ (8),
40
+ (9),
41
+ (10),
42
+ (11),
43
+ (12),
44
+ (13),
45
+ (14),
46
+ (15),
47
+ (16),
48
+ (17),
49
+ (18),
50
+ (20),
51
+ (21),
52
+ (22),
53
+ (23),
54
+ (24),
55
+ (25),
56
+ (26),
57
+ (27),
58
+ (28),
59
+ (29),
60
+ (30),
61
+ (31),
62
+ (32),
63
+ (20081203140407),
64
+ (20090226140109),
65
+ (20090929164633),
66
+ (20091003095744),
67
+ (20100805154952),
68
+ (20100805155020),
69
+ (20100810151922),
70
+ (20110513205050),
71
+ (20110606111250),
72
+ (20110609101438),
73
+ (20110902203823),
74
+ (20111016150725),
75
+ (20120209231801),
76
+ (20160527141249);
77
+
78
+ 
79
+  (27.9ms) CREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_bin NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL)
80
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1
81
+ TRANSACTION (0.5ms) BEGIN
82
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'test', '2021-10-04 20:16:20.859894', '2021-10-04 20:16:20.859894')
57
83
  TRANSACTION (0.6ms) COMMIT
58
- Migrating to RemoveVirtualColumnFromPage (7)
59
-  (18.2ms) ALTER TABLE `pages` DROP COLUMN `virtual`
60
- TRANSACTION (0.2ms) BEGIN
61
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('7')
62
- TRANSACTION (0.4ms) COMMIT
63
- Migrating to AddVirtualColumnToPageAgain (8)
64
-  (87.3ms) ALTER TABLE `pages` ADD `virtual` tinyint(1) DEFAULT FALSE NOT NULL
65
- TRANSACTION (0.2ms) BEGIN
66
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('8')
67
- TRANSACTION (0.3ms) COMMIT
68
- Migrating to AddContentTypeFieldToLayout (9)
69
-  (45.4ms) ALTER TABLE `layouts` ADD `content_type` varchar(40)
84
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1
85
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'schema_sha1' LIMIT 1
70
86
  TRANSACTION (0.3ms) BEGIN
71
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('9')
72
- TRANSACTION (0.4ms) COMMIT
73
- Migrating to CreateSites (10)
74
-  (82.9ms) CREATE TABLE `sites` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `domain` varchar(255), `homepage_id` int)
75
- TRANSACTION (0.3ms) BEGIN
76
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('10')
77
- TRANSACTION (0.4ms) COMMIT
78
- Migrating to AddOrderToSites (11)
79
-  (49.9ms) ALTER TABLE `sites` ADD `position` int DEFAULT 0
80
- TRANSACTION (0.2ms) BEGIN
81
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('11')
82
- TRANSACTION (0.4ms) COMMIT
83
- Migrating to CreateExtensionMeta (12)
84
-  (0.3ms) DROP TABLE IF EXISTS `extension_meta`
85
-  (44.6ms) CREATE TABLE `extension_meta` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `schema_version` int DEFAULT 0, `enabled` tinyint(1) DEFAULT TRUE)
86
- TRANSACTION (0.2ms) BEGIN
87
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('12')
88
- TRANSACTION (0.3ms) COMMIT
89
- Migrating to AddNotesFieldToUser (13)
90
-  (48.7ms) ALTER TABLE `users` ADD `notes` text
91
- TRANSACTION (0.2ms) BEGIN
92
- ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('13')
93
- TRANSACTION (0.4ms) COMMIT
94
- Migrating to RenameConfigDefaultPartsKey (14)
95
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'default.parts' LIMIT 1
96
- TRANSACTION (0.2ms) BEGIN
97
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('14')
98
- TRANSACTION (0.4ms) COMMIT
99
- Migrating to AddOptimisticLocking (15)
100
-  (38.6ms) ALTER TABLE `pages` ADD `lock_version` int DEFAULT 0
101
-  (16.6ms) ALTER TABLE `layouts` ADD `lock_version` int DEFAULT 0
102
-  (17.6ms) ALTER TABLE `snippets` ADD `lock_version` int DEFAULT 0
103
-  (17.0ms) ALTER TABLE `users` ADD `lock_version` int DEFAULT 0
104
- TRANSACTION (0.2ms) BEGIN
105
- ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('15')
106
- TRANSACTION (0.5ms) COMMIT
107
- Migrating to AddSessions (16)
108
-  (46.0ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime)
109
-  (0.9ms) CREATE INDEX `index_sessions_on_session_id` ON `sessions` (`session_id`)
110
-  (0.2ms) SELECT RELEASE_LOCK('1911292410673641555')
111
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
112
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.title' ORDER BY `config`.`id` ASC LIMIT 1
113
- TRANSACTION (0.2ms) BEGIN
114
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.title', 'TrustyCms CMS')
115
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
116
- TRANSACTION (81.1ms) COMMIT
117
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.parts' ORDER BY `config`.`id` ASC LIMIT 1
87
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('schema_sha1', '0d8f36387f9905c83e8c19f030a65470c3ac0895', '2021-10-04 20:16:20.866029', '2021-10-04 20:16:20.866029')
88
+ TRANSACTION (0.9ms) COMMIT
89
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
90
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config`
91
+ TrustyCms::Config Load (0.8ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.title' ORDER BY `config`.`id` ASC LIMIT 1
92
+ TRANSACTION (0.6ms) BEGIN
93
+ TrustyCms::Config Create (0.9ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.title', 'TrustyCms CMS')
94
+ TrustyCms::Config Load (0.7ms) SELECT `config`.* FROM `config`
95
+ TRANSACTION (4.6ms) COMMIT
96
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.parts' ORDER BY `config`.`id` ASC LIMIT 1
118
97
  TRANSACTION (0.2ms) BEGIN
119
98
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.parts', 'Body,Extended')
120
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
121
- TRANSACTION (39.8ms) COMMIT
122
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.status' ORDER BY `config`.`id` ASC LIMIT 1
99
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
100
+ TRANSACTION (4.4ms) COMMIT
101
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.status' ORDER BY `config`.`id` ASC LIMIT 1
123
102
  TRANSACTION (0.2ms) BEGIN
124
103
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.status', 'Draft')
125
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
126
- TRANSACTION (40.7ms) COMMIT
127
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.param_name' ORDER BY `config`.`id` ASC LIMIT 1
128
- TRANSACTION (0.2ms) BEGIN
129
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.param_name', 'page')
130
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
131
- TRANSACTION (40.9ms) COMMIT
132
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.per_page_param_name' ORDER BY `config`.`id` ASC LIMIT 1
133
- TRANSACTION (0.2ms) BEGIN
134
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.per_page_param_name', 'per_page')
135
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
136
- TRANSACTION (40.8ms) COMMIT
137
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.pagination.per_page' ORDER BY `config`.`id` ASC LIMIT 1
104
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
105
+ TRANSACTION (6.1ms) COMMIT
106
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.param_name' ORDER BY `config`.`id` ASC LIMIT 1
107
+ TRANSACTION (0.4ms) BEGIN
108
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.param_name', 'page')
109
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
110
+ TRANSACTION (3.9ms) COMMIT
111
+ TrustyCms::Config Load (0.9ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.per_page_param_name' ORDER BY `config`.`id` ASC LIMIT 1
138
112
  TRANSACTION (0.2ms) BEGIN
113
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.per_page_param_name', 'per_page')
114
+ TrustyCms::Config Load (0.7ms) SELECT `config`.* FROM `config`
115
+ TRANSACTION (16.2ms) COMMIT
116
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.pagination.per_page' ORDER BY `config`.`id` ASC LIMIT 1
117
+ TRANSACTION (0.3ms) BEGIN
139
118
  TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.pagination.per_page', '50')
140
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
141
- TRANSACTION (40.7ms) COMMIT
142
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.title' ORDER BY `config`.`id` ASC LIMIT 1
119
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
120
+ TRANSACTION (4.7ms) COMMIT
121
+ TrustyCms::Config Load (0.8ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.title' ORDER BY `config`.`id` ASC LIMIT 1
143
122
  TRANSACTION (0.3ms) BEGIN
144
- TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.title', 'Your site title')
145
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
146
- TRANSACTION (39.8ms) COMMIT
147
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.host' ORDER BY `config`.`id` ASC LIMIT 1
148
- TRANSACTION (0.2ms) BEGIN
149
- TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.host', 'www.example.com')
123
+ TrustyCms::Config Create (0.5ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.title', 'Your site title')
124
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config`
125
+ TRANSACTION (19.5ms) COMMIT
126
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.host' ORDER BY `config`.`id` ASC LIMIT 1
127
+ TRANSACTION (0.1ms) BEGIN
128
+ TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.host', 'www.example.com')
150
129
  TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
151
- TRANSACTION (26.7ms) COMMIT
152
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'user.allow_password_reset?' ORDER BY `config`.`id` ASC LIMIT 1
130
+ TRANSACTION (4.2ms) COMMIT
131
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'user.allow_password_reset?' ORDER BY `config`.`id` ASC LIMIT 1
153
132
  TRANSACTION (0.3ms) BEGIN
154
- TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('user.allow_password_reset?', 'true')
155
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
156
- TRANSACTION (25.6ms) COMMIT
133
+ TrustyCms::Config Create (0.7ms) INSERT INTO `config` (`key`, `value`) VALUES ('user.allow_password_reset?', 'true')
134
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
135
+ TRANSACTION (14.7ms) COMMIT
157
136
  TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'session_timeout' ORDER BY `config`.`id` ASC LIMIT 1
158
137
  TRANSACTION (0.2ms) BEGIN
159
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('session_timeout', '1209600')
160
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
161
- TRANSACTION (25.6ms) COMMIT
162
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.url' ORDER BY `config`.`id` ASC LIMIT 1
138
+ TrustyCms::Config Create (0.8ms) INSERT INTO `config` (`key`, `value`) VALUES ('session_timeout', '1209600')
139
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
140
+ TRANSACTION (4.4ms) COMMIT
141
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.url' ORDER BY `config`.`id` ASC LIMIT 1
163
142
  TRANSACTION (0.2ms) BEGIN
164
- TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.url', '/system/:attachment/:id/:style/:basename:no_original_style.:extension')
165
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
166
- TRANSACTION (26.2ms) COMMIT
143
+ TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.url', '/system/:attachment/:id/:style/:basename:no_original_style.:extension')
144
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
145
+ TRANSACTION (16.0ms) COMMIT
167
146
  TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.path' ORDER BY `config`.`id` ASC LIMIT 1
168
147
  TRANSACTION (0.2ms) BEGIN
169
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.path', ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension')
170
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
171
- TRANSACTION (25.8ms) COMMIT
172
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.skip_filetype_validation' ORDER BY `config`.`id` ASC LIMIT 1
173
- TRANSACTION (0.3ms) BEGIN
174
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.skip_filetype_validation', 'true')
175
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
176
- TRANSACTION (25.4ms) COMMIT
148
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.path', ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension')
149
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
150
+ TRANSACTION (4.4ms) COMMIT
151
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.skip_filetype_validation' ORDER BY `config`.`id` ASC LIMIT 1
152
+ TRANSACTION (0.2ms) BEGIN
153
+ TrustyCms::Config Create (0.5ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.skip_filetype_validation', 'true')
154
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
155
+ TRANSACTION (16.1ms) COMMIT
177
156
  TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.storage' ORDER BY `config`.`id` ASC LIMIT 1
178
157
  TRANSACTION (0.2ms) BEGIN
179
158
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.storage', 'filesystem')
180
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
181
- TRANSACTION (25.3ms) COMMIT
182
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.fog.public?' ORDER BY `config`.`id` ASC LIMIT 1
159
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
160
+ TRANSACTION (4.2ms) COMMIT
161
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.fog.public?' ORDER BY `config`.`id` ASC LIMIT 1
162
+ TRANSACTION (0.3ms) BEGIN
163
+ TrustyCms::Config Create (0.7ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.fog.public?', 'true')
164
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
165
+ TRANSACTION (13.0ms) COMMIT
166
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_image_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
183
167
  TRANSACTION (0.2ms) BEGIN
184
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.fog.public?', 'true')
168
+ TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_image_thumbnails?', 'true')
185
169
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
186
- TRANSACTION (26.1ms) COMMIT
187
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_image_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
188
- TRANSACTION (0.1ms) BEGIN
189
- TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_image_thumbnails?', 'true')
190
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
191
- TRANSACTION (25.3ms) COMMIT
192
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_video_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
170
+ TRANSACTION (4.3ms) COMMIT
171
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_video_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
172
+ TRANSACTION (0.2ms) BEGIN
173
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_video_thumbnails?', 'true')
174
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config`
175
+ TRANSACTION (18.4ms) COMMIT
176
+ TrustyCms::Config Load (0.9ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_pdf_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
193
177
  TRANSACTION (0.2ms) BEGIN
194
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_video_thumbnails?', 'true')
195
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
196
- TRANSACTION (26.2ms) COMMIT
197
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_pdf_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1
198
- TRANSACTION (0.3ms) BEGIN
199
178
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_pdf_thumbnails?', 'true')
200
179
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
201
- TRANSACTION (25.5ms) COMMIT
180
+ TRANSACTION (5.3ms) COMMIT
202
181
  TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.image' ORDER BY `config`.`id` ASC LIMIT 1
203
182
  TRANSACTION (0.2ms) BEGIN
204
183
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.image', 'normal:size=640x640>|small:size=320x320>')
205
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
206
- TRANSACTION (25.8ms) COMMIT
207
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.video' ORDER BY `config`.`id` ASC LIMIT 1
208
- TRANSACTION (0.2ms) BEGIN
209
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.video', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg')
210
184
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
211
- TRANSACTION (25.6ms) COMMIT
212
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.pdf' ORDER BY `config`.`id` ASC LIMIT 1
185
+ TRANSACTION (4.8ms) COMMIT
186
+ TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.video' ORDER BY `config`.`id` ASC LIMIT 1
213
187
  TRANSACTION (0.3ms) BEGIN
214
- TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.pdf', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg')
188
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.video', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg')
215
189
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
216
- TRANSACTION (25.9ms) COMMIT
217
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.max_asset_size' ORDER BY `config`.`id` ASC LIMIT 1
190
+ TRANSACTION (12.9ms) COMMIT
191
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.pdf' ORDER BY `config`.`id` ASC LIMIT 1
192
+ TRANSACTION (0.3ms) BEGIN
193
+ TrustyCms::Config Create (0.7ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.pdf', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg')
194
+ TrustyCms::Config Load (0.8ms) SELECT `config`.* FROM `config`
195
+ TRANSACTION (5.0ms) COMMIT
196
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.max_asset_size' ORDER BY `config`.`id` ASC LIMIT 1
218
197
  TRANSACTION (0.2ms) BEGIN
219
198
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.max_asset_size', '5')
220
199
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
221
- TRANSACTION (25.7ms) COMMIT
222
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.display_size' ORDER BY `config`.`id` ASC LIMIT 1
223
- TRANSACTION (0.2ms) BEGIN
224
- TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.display_size', 'normal')
225
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
226
- TRANSACTION (25.6ms) COMMIT
227
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.insertion_size' ORDER BY `config`.`id` ASC LIMIT 1
228
- TRANSACTION (0.2ms) BEGIN
229
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.insertion_size', 'normal')
200
+ TRANSACTION (9.3ms) COMMIT
201
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.display_size' ORDER BY `config`.`id` ASC LIMIT 1
202
+ TRANSACTION (0.3ms) BEGIN
203
+ TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.display_size', 'normal')
230
204
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
231
- TRANSACTION (26.0ms) COMMIT
205
+ TRANSACTION (5.0ms) COMMIT
206
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.insertion_size' ORDER BY `config`.`id` ASC LIMIT 1
207
+ TRANSACTION (0.5ms) BEGIN
208
+ TrustyCms::Config Create (0.5ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.insertion_size', 'normal')
209
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
210
+ TRANSACTION (12.0ms) COMMIT
232
211
   (1.0ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
212
+  (0.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
213
+  (0.3ms) SELECT GET_LOCK('1911292410673641555', 0)
214
+  (0.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
215
+ Migrating to CreateAdminUsers (20200117141251)
216
+  (0.6ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
217
+  (1.1ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)
218
+  (0.6ms) SELECT RELEASE_LOCK('1911292410673641555')
219
+  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
220
+  (0.2ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
233
221
   (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
234
-  (0.2ms) SELECT GET_LOCK('1911292410673641555', 0)
235
222
   (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
236
- Migrating to AddSessions (16)
237
-  (0.3ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
238
-  (0.4ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime)
223
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
224
+  (0.5ms) SELECT GET_LOCK('1911292410673641555', 0)
225
+  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
226
+ Migrating to CreateAdminUsers (20200117141251)
227
+  (0.8ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
228
+  (1.1ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)
229
+  (0.5ms) SELECT RELEASE_LOCK('1911292410673641555')
230
+  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
231
+  (0.3ms) SELECT GET_LOCK('1911292410673641555', 0)
232
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
233
+ Migrating to CreateActiveStorageTables (20210331134718)
234
+  (0.4ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
235
+  (0.5ms) CREATE TABLE `active_storage_blobs` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(255) NOT NULL, `filename` varchar(255) NOT NULL, `content_type` varchar(255), `metadata` text, `service_name` varchar(255) NOT NULL, `byte_size` bigint NOT NULL, `checksum` varchar(255) NOT NULL, `created_at` datetime NOT NULL, UNIQUE INDEX `index_active_storage_blobs_on_key` (`key`))
239
236
   (0.2ms) SELECT RELEASE_LOCK('1911292410673641555')
240
237
   (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
241
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
242
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.title' LIMIT 1
238
+  (0.6ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`
239
+  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
240
+  (0.4ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
241
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
242
+  (0.3ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
243
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
244
+  (0.2ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
245
+  (0.3ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
246
+  (3.4ms) DROP TABLE IF EXISTS `admins` CASCADE
247
+  (24.7ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) DEFAULT CHARSET=utf8
248
+  (3.5ms) DROP TABLE IF EXISTS `assets` CASCADE
249
+  (22.9ms) CREATE TABLE `assets` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `caption` varchar(255), `title` varchar(255), `asset_file_name` varchar(255), `asset_content_type` varchar(255), `asset_file_size` int, `created_by_id` int, `updated_by_id` int, `created_at` datetime, `updated_at` datetime, `uuid` varchar(255), `original_width` int, `original_height` int, `original_extension` varchar(255)) DEFAULT CHARSET=utf8
250
+  (3.5ms) DROP TABLE IF EXISTS `config` CASCADE
251
+  (27.3ms) CREATE TABLE `config` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '', UNIQUE INDEX `key` (`key`)) DEFAULT CHARSET=utf8
252
+  (3.5ms) DROP TABLE IF EXISTS `extension_meta` CASCADE
253
+  (24.8ms) CREATE TABLE `extension_meta` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `schema_version` int DEFAULT 0, `enabled` tinyint(1) DEFAULT TRUE) DEFAULT CHARSET=utf8
254
+  (3.3ms) DROP TABLE IF EXISTS `layouts` CASCADE
255
+  (23.7ms) CREATE TABLE `layouts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by_id` int, `updated_by_id` int, `content_type` varchar(40), `lock_version` int DEFAULT 0, `site_id` int) DEFAULT CHARSET=utf8
256
+  (2.0ms) DROP TABLE IF EXISTS `page_attachments` CASCADE
257
+  (23.3ms) CREATE TABLE `page_attachments` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `asset_id` int, `page_id` int, `position` int) DEFAULT CHARSET=utf8
258
+  (3.2ms) DROP TABLE IF EXISTS `page_fields` CASCADE
259
+  (24.0ms) CREATE TABLE `page_fields` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `page_id` int, `name` varchar(255), `content` varchar(255), INDEX `index_page_fields_on_page_id_and_name_and_content` (`page_id`, `name`, `content`)) DEFAULT CHARSET=utf8
260
+  (2.2ms) DROP TABLE IF EXISTS `page_parts` CASCADE
261
+  (25.5ms) CREATE TABLE `page_parts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `filter_id` varchar(25), `content` mediumtext, `page_id` int, INDEX `parts_by_page` (`page_id`, `name`)) DEFAULT CHARSET=utf8
262
+  (2.9ms) DROP TABLE IF EXISTS `pages` CASCADE
263
+  (24.8ms) CREATE TABLE `pages` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int DEFAULT 1 NOT NULL, `parent_id` int, `layout_id` int, `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by_id` int, `updated_by_id` int, `virtual` tinyint(1) DEFAULT FALSE NOT NULL, `lock_version` int DEFAULT 0, `site_id` int, `allowed_children_cache` text, `position` int, INDEX `pages_class_name` (`class_name`), INDEX `pages_parent_id` (`parent_id`), INDEX `index_pages_on_site_id` (`site_id`), INDEX `pages_child_slug` (`slug`, `parent_id`), INDEX `pages_published` (`virtual`, `status_id`)) DEFAULT CHARSET=utf8
264
+  (2.3ms) DROP TABLE IF EXISTS `sessions` CASCADE
265
+  (24.0ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime, INDEX `index_sessions_on_session_id` (`session_id`), INDEX `index_sessions_on_updated_at` (`updated_at`)) DEFAULT CHARSET=utf8
266
+  (2.6ms) DROP TABLE IF EXISTS `sites` CASCADE
267
+  (24.1ms) CREATE TABLE `sites` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `domain` varchar(255), `homepage_id` int, `position` int DEFAULT 0, `created_by_id` int, `created_at` datetime, `updated_by_id` int, `updated_at` datetime, `subtitle` varchar(255), `abbreviation` varchar(255), `base_domain` varchar(255)) DEFAULT CHARSET=utf8
268
+  (3.2ms) DROP TABLE IF EXISTS `snippets` CASCADE
269
+  (25.9ms) CREATE TABLE `snippets` (`id` bigint NOT NULL 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, `updated_by_id` int, `lock_version` int DEFAULT 0, `site_id` int, UNIQUE INDEX `name_site_id` (`name`, `site_id`)) DEFAULT CHARSET=utf8
270
+  (2.9ms) DROP TABLE IF EXISTS `users` CASCADE
271
+  (51.0ms) CREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `admin` tinyint(1) DEFAULT FALSE NOT NULL, `designer` tinyint(1) DEFAULT FALSE NOT NULL, `created_at` datetime, `updated_at` datetime, `created_by_id` int, `updated_by_id` int, `salt` varchar(255), `notes` text, `lock_version` int DEFAULT 0, `session_token` varchar(255), `site_id` int, `locale` varchar(255), `password_reset_token` varchar(255), `password_reset_sent_at` datetime) DEFAULT CHARSET=utf8
272
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
273
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1
274
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1
275
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'schema_sha1' LIMIT 1
243
276
  TRANSACTION (0.2ms) BEGIN
244
- TrustyCms::Config Update (41.1ms) UPDATE `config` SET `config`.`value` = 'TrustyCMS' WHERE `config`.`id` = 1
245
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
246
- TRANSACTION (40.7ms) COMMIT
277
+ ActiveRecord::InternalMetadata Update (0.3ms) UPDATE `ar_internal_metadata` SET `ar_internal_metadata`.`value` = 'b4d2c8da9116921b3113bca9b89ef9337c871b6e', `ar_internal_metadata`.`updated_at` = '2021-10-04 20:18:43.772097' WHERE `ar_internal_metadata`.`key` = 'schema_sha1'
278
+ TRANSACTION (0.5ms) COMMIT
279
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
280
+  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
281
+  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
282
+  (0.4ms) SELECT GET_LOCK('1911292410673641555', 0)
283
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
284
+ Migrating to CreateAdminUsers (20200117141251)
285
+  (0.5ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
286
+  (0.5ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)
287
+  (0.3ms) SELECT RELEASE_LOCK('1911292410673641555')
288
+  (0.5ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
289
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
290
+  (0.2ms) SELECT GET_LOCK('1911292410673641555', 0)
291
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
292
+ Migrating to CreateAdminUsers (20200117141251)
293
+  (0.4ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
294
+  (26.8ms) CREATE TABLE `admins` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `failed_attempts` int DEFAULT 0 NOT NULL, `unlock_token` varchar(255), `locked_at` datetime, `first_name` varchar(255), `last_name` varchar(255), `admin` tinyint(1), `designer` tinyint(1), `content_editor` tinyint(1), `site_id` int, `updated_by_id` int, `notes` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)
247
295
  TRANSACTION (0.2ms) BEGIN
248
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
296
+ ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20200117141251')
297
+ TRANSACTION (1.5ms) COMMIT
298
+ Migrating to CreateActiveStorageTables (20210331134718)
299
+  (1.0ms) CREATE TABLE `active_storage_blobs` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(255) NOT NULL, `filename` varchar(255) NOT NULL, `content_type` varchar(255), `metadata` text, `service_name` varchar(255) NOT NULL, `byte_size` bigint NOT NULL, `checksum` varchar(255) NOT NULL, `created_at` datetime NOT NULL, UNIQUE INDEX `index_active_storage_blobs_on_key` (`key`))
300
+  (0.3ms) SELECT RELEASE_LOCK('1911292410673641555')
301
+  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
302
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
303
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.title' LIMIT 1
304
+ TRANSACTION (0.1ms) BEGIN
305
+ TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.title', 'TrustyCMS')
306
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
307
+ TRANSACTION (5.6ms) COMMIT
308
+ TRANSACTION (0.1ms) BEGIN
309
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
249
310
  TRANSACTION (0.2ms) COMMIT
250
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.subtitle' LIMIT 1
311
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.subtitle' LIMIT 1
312
+ TRANSACTION (0.2ms) BEGIN
313
+ TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.subtitle', 'Publishing for Small Teams')
314
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
315
+ TRANSACTION (5.3ms) COMMIT
251
316
  TRANSACTION (0.2ms) BEGIN
252
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.subtitle', 'Publishing for Small Teams')
253
317
  TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
254
- TRANSACTION (39.9ms) COMMIT
255
- TRANSACTION (0.3ms) BEGIN
256
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
257
- TRANSACTION (0.2ms) COMMIT
258
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.parts' LIMIT 1
318
+ TRANSACTION (0.1ms) COMMIT
319
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.parts' LIMIT 1
320
+ TRANSACTION (0.1ms) BEGIN
321
+ TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.parts', 'body, extended')
322
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
323
+ TRANSACTION (4.4ms) COMMIT
259
324
  TRANSACTION (0.2ms) BEGIN
260
- TrustyCms::Config Update (0.4ms) UPDATE `config` SET `config`.`value` = 'body, extended' WHERE `config`.`id` = 2
261
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
262
- TRANSACTION (41.8ms) COMMIT
263
- TRANSACTION (0.3ms) BEGIN
264
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
325
+ TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
265
326
  TRANSACTION (0.2ms) COMMIT
266
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.status' LIMIT 1
327
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.status' LIMIT 1
328
+ TRANSACTION (0.1ms) BEGIN
329
+ TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.status', 'Draft')
330
+ TrustyCms::Config Load (0.1ms) SELECT `config`.* FROM `config`
331
+ TRANSACTION (4.6ms) COMMIT
267
332
  TRANSACTION (0.2ms) BEGIN
268
333
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
269
- TRANSACTION (0.2ms) COMMIT
270
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.filter' LIMIT 1
334
+ TRANSACTION (0.3ms) COMMIT
335
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.filter' LIMIT 1
271
336
  TRANSACTION (0.2ms) BEGIN
272
337
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`) VALUES ('defaults.page.filter')
273
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
274
- TRANSACTION (39.8ms) COMMIT
275
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.fields' LIMIT 1
276
- TRANSACTION (0.2ms) BEGIN
277
- TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.fields', 'Keywords, Description')
278
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
279
- TRANSACTION (41.2ms) COMMIT
280
- TRANSACTION (0.3ms) BEGIN
281
338
  TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
282
- TRANSACTION (0.2ms) COMMIT
283
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.snippet.filter' LIMIT 1
339
+ TRANSACTION (4.7ms) COMMIT
340
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.fields' LIMIT 1
341
+ TRANSACTION (0.1ms) BEGIN
342
+ TrustyCms::Config Create (0.1ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.fields', 'Keywords, Description')
343
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
344
+ TRANSACTION (3.9ms) COMMIT
284
345
  TRANSACTION (0.2ms) BEGIN
285
- TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`) VALUES ('defaults.snippet.filter')
286
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
287
- TRANSACTION (36.7ms) COMMIT
288
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'session_timeout' LIMIT 1
346
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
347
+ TRANSACTION (0.2ms) COMMIT
348
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.snippet.filter' LIMIT 1
349
+ TRANSACTION (0.1ms) BEGIN
350
+ TrustyCms::Config Create (0.1ms) INSERT INTO `config` (`key`) VALUES ('defaults.snippet.filter')
351
+ TrustyCms::Config Load (0.1ms) SELECT `config`.* FROM `config`
352
+ TRANSACTION (4.5ms) COMMIT
353
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'session_timeout' LIMIT 1
354
+ TRANSACTION (0.1ms) BEGIN
355
+ TrustyCms::Config Create (0.1ms) INSERT INTO `config` (`key`, `value`) VALUES ('session_timeout', '1209600')
356
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
357
+ TRANSACTION (4.2ms) COMMIT
289
358
  TRANSACTION (0.2ms) BEGIN
290
- TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
359
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
291
360
  TRANSACTION (0.2ms) COMMIT
292
361
  TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'default_locale' LIMIT 1
293
362
  TRANSACTION (0.2ms) BEGIN
294
363
  TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('default_locale', 'en')
295
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
296
- TRANSACTION (35.7ms) COMMIT
297
- TRANSACTION (0.3ms) BEGIN
298
- TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config`
299
- TRANSACTION (0.2ms) COMMIT
300
- Layout Exists? (0.3ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = '' LIMIT 1
364
+ TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
365
+ TRANSACTION (4.1ms) COMMIT
366
+ TRANSACTION (0.2ms) BEGIN
367
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config`
368
+ TRANSACTION (0.3ms) COMMIT
369
+ Layout Exists? (0.3ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = '' AND `layouts`.`site_id` IS NULL LIMIT 1
301
370
   (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
302
371
   (0.2ms) SET FOREIGN_KEY_CHECKS = 0
303
-  (41.9ms) select table_name from information_schema.views where table_schema = 'trusty_cms_test'
304
-  (5.5ms) TRUNCATE TABLE `extension_meta`;
305
-  (3.2ms) TRUNCATE TABLE `layouts`;
306
-  (2.9ms) TRUNCATE TABLE `page_parts`;
307
-  (2.8ms) TRUNCATE TABLE `pages`;
308
-  (2.5ms) TRUNCATE TABLE `sessions`;
309
-  (2.8ms) TRUNCATE TABLE `sites`;
310
-  (3.4ms) TRUNCATE TABLE `snippets`;
311
-  (2.7ms) TRUNCATE TABLE `users`;
312
-  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
313
- TRANSACTION (0.2ms) BEGIN
314
- Layout Exists? (0.3ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'Normal' LIMIT 1
315
- Layout Create (0.3ms) INSERT INTO `layouts` (`name`, `content`, `created_at`, `updated_at`, `lock_version`) VALUES ('Normal', 'Content!', '2021-03-03 18:17:37', '2021-03-03 18:17:37', 0)
316
- TRANSACTION (40.7ms) COMMIT
372
+  (2.2ms) select table_name from information_schema.views where table_schema = 'trusty_cms_test'
373
+  (8.4ms) TRUNCATE TABLE `admins`
374
+  (4.5ms) TRUNCATE TABLE `users`
375
+  (5.8ms) TRUNCATE TABLE `pages`
376
+  (3.9ms) TRUNCATE TABLE `page_parts`
377
+  (4.2ms) TRUNCATE TABLE `page_fields`
378
+  (3.7ms) TRUNCATE TABLE `page_attachments`
379
+  (3.9ms) TRUNCATE TABLE `layouts`
380
+  (3.7ms) TRUNCATE TABLE `extension_meta`
381
+  (4.1ms) TRUNCATE TABLE `snippets`
382
+  (5.1ms) TRUNCATE TABLE `assets`
383
+  (4.1ms) TRUNCATE TABLE `sites`
384
+  (5.4ms) TRUNCATE TABLE `sessions`
385
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
317
386
  TRANSACTION (0.2ms) BEGIN
318
- Layout Exists? (0.3ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'Normal' LIMIT 1
387
+ Layout Exists? (0.2ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'Normal' AND `layouts`.`site_id` IS NULL LIMIT 1
388
+ Layout Create (0.2ms) INSERT INTO `layouts` (`name`, `content`, `created_at`, `updated_at`, `lock_version`) VALUES ('Normal', 'Content!', '2021-10-05 14:51:27', '2021-10-05 14:51:27', 0)
389
+ TRANSACTION (0.3ms) COMMIT
390
+ TRANSACTION (0.1ms) BEGIN
391
+ Layout Exists? (0.2ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'Normal' AND `layouts`.`site_id` IS NULL LIMIT 1
319
392
  TRANSACTION (0.2ms) ROLLBACK
320
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
321
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
322
-  (44.2ms) TRUNCATE TABLE `extension_meta`;
323
-  (3.8ms) TRUNCATE TABLE `layouts`;
324
-  (3.0ms) TRUNCATE TABLE `page_parts`;
325
-  (2.9ms) TRUNCATE TABLE `pages`;
326
-  (2.6ms) TRUNCATE TABLE `sessions`;
327
-  (2.2ms) TRUNCATE TABLE `sites`;
328
-  (2.6ms) TRUNCATE TABLE `snippets`;
329
-  (2.4ms) TRUNCATE TABLE `users`;
330
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
331
- TRANSACTION (0.3ms) BEGIN
332
- Layout Exists? (0.3ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
393
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
394
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
395
+  (4.4ms) TRUNCATE TABLE `admins`
396
+  (3.5ms) TRUNCATE TABLE `users`
397
+  (5.2ms) TRUNCATE TABLE `pages`
398
+  (3.4ms) TRUNCATE TABLE `page_parts`
399
+  (4.0ms) TRUNCATE TABLE `page_fields`
400
+  (2.8ms) TRUNCATE TABLE `page_attachments`
401
+  (10.8ms) TRUNCATE TABLE `layouts`
402
+  (3.3ms) TRUNCATE TABLE `extension_meta`
403
+  (3.9ms) TRUNCATE TABLE `snippets`
404
+  (3.0ms) TRUNCATE TABLE `assets`
405
+  (2.9ms) TRUNCATE TABLE `sites`
406
+  (3.5ms) TRUNCATE TABLE `sessions`
407
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
408
+ TRANSACTION (0.2ms) BEGIN
409
+ Layout Exists? (0.2ms) SELECT 1 AS one FROM `layouts` WHERE `layouts`.`name` = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' AND `layouts`.`site_id` IS NULL LIMIT 1
333
410
  TRANSACTION (0.2ms) ROLLBACK
411
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
412
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
413
+  (4.0ms) TRUNCATE TABLE `admins`
414
+  (3.7ms) TRUNCATE TABLE `users`
415
+  (5.4ms) TRUNCATE TABLE `pages`
416
+  (3.2ms) TRUNCATE TABLE `page_parts`
417
+  (3.3ms) TRUNCATE TABLE `page_fields`
418
+  (3.0ms) TRUNCATE TABLE `page_attachments`
419
+  (3.0ms) TRUNCATE TABLE `layouts`
420
+  (2.7ms) TRUNCATE TABLE `extension_meta`
421
+  (2.9ms) TRUNCATE TABLE `snippets`
422
+  (2.7ms) TRUNCATE TABLE `assets`
423
+  (2.8ms) TRUNCATE TABLE `sites`
424
+  (3.4ms) TRUNCATE TABLE `sessions`
425
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
426
+ TRANSACTION (0.1ms) BEGIN
334
427
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
428
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
429
+  (6.3ms) TRUNCATE TABLE `admins`
430
+  (3.1ms) TRUNCATE TABLE `users`
431
+  (5.5ms) TRUNCATE TABLE `pages`
432
+  (3.4ms) TRUNCATE TABLE `page_parts`
433
+  (3.7ms) TRUNCATE TABLE `page_fields`
434
+  (2.7ms) TRUNCATE TABLE `page_attachments`
435
+  (3.0ms) TRUNCATE TABLE `layouts`
436
+  (3.1ms) TRUNCATE TABLE `extension_meta`
437
+  (3.3ms) TRUNCATE TABLE `snippets`
438
+  (2.6ms) TRUNCATE TABLE `assets`
439
+  (2.9ms) TRUNCATE TABLE `sites`
440
+  (3.5ms) TRUNCATE TABLE `sessions`
441
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
442
+ TRANSACTION (0.1ms) ROLLBACK
443
+ TRANSACTION (0.1ms) BEGIN
444
+ TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'local.timezone' ORDER BY `config`.`id` ASC LIMIT 1
445
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
446
+ TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('local.timezone', 'UTC')
447
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
448
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
449
+  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS
335
450
   (0.2ms) SET FOREIGN_KEY_CHECKS = 0
336
-  (44.2ms) TRUNCATE TABLE `extension_meta`;
337
-  (3.7ms) TRUNCATE TABLE `layouts`;
338
-  (2.7ms) TRUNCATE TABLE `page_parts`;
339
-  (2.5ms) TRUNCATE TABLE `pages`;
340
-  (3.0ms) TRUNCATE TABLE `sessions`;
341
-  (2.5ms) TRUNCATE TABLE `sites`;
342
-  (2.6ms) TRUNCATE TABLE `snippets`;
343
-  (3.7ms) TRUNCATE TABLE `users`;
344
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
451
+  (7.6ms) TRUNCATE TABLE `admins`
452
+  (3.7ms) TRUNCATE TABLE `users`
453
+  (4.9ms) TRUNCATE TABLE `pages`
454
+  (3.5ms) TRUNCATE TABLE `page_parts`
455
+  (3.9ms) TRUNCATE TABLE `page_fields`
456
+  (3.0ms) TRUNCATE TABLE `page_attachments`
457
+  (3.0ms) TRUNCATE TABLE `layouts`
458
+  (3.2ms) TRUNCATE TABLE `extension_meta`
459
+  (2.9ms) TRUNCATE TABLE `snippets`
460
+  (2.9ms) TRUNCATE TABLE `assets`
461
+  (2.7ms) TRUNCATE TABLE `sites`
462
+  (3.2ms) TRUNCATE TABLE `sessions`
463
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
464
+ TRANSACTION (0.1ms) ROLLBACK
345
465
  TRANSACTION (0.2ms) BEGIN
466
+ TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
346
467
   (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
347
468
   (0.2ms) SET FOREIGN_KEY_CHECKS = 0
348
-  (26.5ms) TRUNCATE TABLE `extension_meta`;
349
-  (3.4ms) TRUNCATE TABLE `layouts`;
350
-  (2.8ms) TRUNCATE TABLE `page_parts`;
351
-  (2.7ms) TRUNCATE TABLE `pages`;
352
-  (2.3ms) TRUNCATE TABLE `sessions`;
353
-  (2.6ms) TRUNCATE TABLE `sites`;
354
-  (2.5ms) TRUNCATE TABLE `snippets`;
355
-  (2.3ms) TRUNCATE TABLE `users`;
356
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
357
- TRANSACTION (0.2ms) ROLLBACK
469
+  (5.0ms) TRUNCATE TABLE `admins`
470
+  (4.1ms) TRUNCATE TABLE `users`
471
+  (5.1ms) TRUNCATE TABLE `pages`
472
+  (3.3ms) TRUNCATE TABLE `page_parts`
473
+  (3.9ms) TRUNCATE TABLE `page_fields`
474
+  (2.7ms) TRUNCATE TABLE `page_attachments`
475
+  (2.7ms) TRUNCATE TABLE `layouts`
476
+  (2.7ms) TRUNCATE TABLE `extension_meta`
477
+  (3.2ms) TRUNCATE TABLE `snippets`
478
+  (3.0ms) TRUNCATE TABLE `assets`
479
+  (2.9ms) TRUNCATE TABLE `sites`
480
+  (3.9ms) TRUNCATE TABLE `sessions`
481
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
482
+ TRANSACTION (0.1ms) ROLLBACK
358
483
  TRANSACTION (0.1ms) BEGIN
359
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
360
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
361
-  (44.4ms) TRUNCATE TABLE `extension_meta`;
362
-  (3.4ms) TRUNCATE TABLE `layouts`;
363
-  (3.2ms) TRUNCATE TABLE `page_parts`;
364
-  (2.9ms) TRUNCATE TABLE `pages`;
365
-  (2.7ms) TRUNCATE TABLE `sessions`;
366
-  (2.5ms) TRUNCATE TABLE `sites`;
367
-  (2.6ms) TRUNCATE TABLE `snippets`;
368
-  (2.2ms) TRUNCATE TABLE `users`;
369
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
370
- TRANSACTION (0.2ms) ROLLBACK
371
- TRANSACTION (0.2ms) BEGIN
372
484
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
373
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
374
-  (2.1ms) TRUNCATE TABLE `extension_meta`;
375
-  (2.5ms) TRUNCATE TABLE `layouts`;
376
-  (2.2ms) TRUNCATE TABLE `page_parts`;
377
-  (2.4ms) TRUNCATE TABLE `pages`;
378
-  (2.4ms) TRUNCATE TABLE `sessions`;
379
-  (2.6ms) TRUNCATE TABLE `sites`;
380
-  (2.7ms) TRUNCATE TABLE `snippets`;
381
-  (2.2ms) TRUNCATE TABLE `users`;
485
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
486
+  (5.8ms) TRUNCATE TABLE `admins`
487
+  (4.0ms) TRUNCATE TABLE `users`
488
+  (5.5ms) TRUNCATE TABLE `pages`
489
+  (3.6ms) TRUNCATE TABLE `page_parts`
490
+  (3.6ms) TRUNCATE TABLE `page_fields`
491
+  (3.1ms) TRUNCATE TABLE `page_attachments`
492
+  (3.2ms) TRUNCATE TABLE `layouts`
493
+  (4.1ms) TRUNCATE TABLE `extension_meta`
494
+  (3.8ms) TRUNCATE TABLE `snippets`
495
+  (2.7ms) TRUNCATE TABLE `assets`
496
+  (3.3ms) TRUNCATE TABLE `sites`
497
+  (4.3ms) TRUNCATE TABLE `sessions`
382
498
   (0.2ms) SET FOREIGN_KEY_CHECKS = 1
383
- TRANSACTION (0.2ms) ROLLBACK
499
+ TRANSACTION (0.1ms) ROLLBACK
384
500
  TRANSACTION (0.1ms) BEGIN
385
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
386
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
387
-  (2.2ms) TRUNCATE TABLE `extension_meta`;
388
-  (2.2ms) TRUNCATE TABLE `layouts`;
389
-  (2.0ms) TRUNCATE TABLE `page_parts`;
390
-  (2.2ms) TRUNCATE TABLE `pages`;
391
-  (2.1ms) TRUNCATE TABLE `sessions`;
392
-  (2.1ms) TRUNCATE TABLE `sites`;
393
-  (4.2ms) TRUNCATE TABLE `snippets`;
394
-  (2.8ms) TRUNCATE TABLE `users`;
501
+  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS
502
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
503
+  (4.2ms) TRUNCATE TABLE `admins`
504
+  (4.1ms) TRUNCATE TABLE `users`
505
+  (4.8ms) TRUNCATE TABLE `pages`
506
+  (3.7ms) TRUNCATE TABLE `page_parts`
507
+  (3.0ms) TRUNCATE TABLE `page_fields`
508
+  (2.8ms) TRUNCATE TABLE `page_attachments`
509
+  (3.0ms) TRUNCATE TABLE `layouts`
510
+  (2.7ms) TRUNCATE TABLE `extension_meta`
511
+  (2.9ms) TRUNCATE TABLE `snippets`
512
+  (2.5ms) TRUNCATE TABLE `assets`
513
+  (2.7ms) TRUNCATE TABLE `sites`
514
+  (3.5ms) TRUNCATE TABLE `sessions`
395
515
   (0.2ms) SET FOREIGN_KEY_CHECKS = 1
396
516
  TRANSACTION (0.1ms) ROLLBACK
397
- TRANSACTION (0.2ms) BEGIN
398
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
517
+ TRANSACTION (0.1ms) BEGIN
518
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
399
519
   (0.1ms) SET FOREIGN_KEY_CHECKS = 0
400
-  (2.0ms) TRUNCATE TABLE `extension_meta`;
401
-  (2.6ms) TRUNCATE TABLE `layouts`;
402
-  (2.2ms) TRUNCATE TABLE `page_parts`;
403
-  (2.6ms) TRUNCATE TABLE `pages`;
404
-  (2.5ms) TRUNCATE TABLE `sessions`;
405
-  (2.2ms) TRUNCATE TABLE `sites`;
406
-  (2.7ms) TRUNCATE TABLE `snippets`;
407
-  (2.7ms) TRUNCATE TABLE `users`;
408
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
409
- TRANSACTION (0.2ms) ROLLBACK
520
+  (3.0ms) TRUNCATE TABLE `admins`
521
+  (3.8ms) TRUNCATE TABLE `users`
522
+  (4.8ms) TRUNCATE TABLE `pages`
523
+  (3.6ms) TRUNCATE TABLE `page_parts`
524
+  (3.8ms) TRUNCATE TABLE `page_fields`
525
+  (3.0ms) TRUNCATE TABLE `page_attachments`
526
+  (2.7ms) TRUNCATE TABLE `layouts`
527
+  (2.9ms) TRUNCATE TABLE `extension_meta`
528
+  (2.9ms) TRUNCATE TABLE `snippets`
529
+  (2.7ms) TRUNCATE TABLE `assets`
530
+  (2.4ms) TRUNCATE TABLE `sites`
531
+  (3.5ms) TRUNCATE TABLE `sessions`
532
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
533
+ TRANSACTION (0.1ms) ROLLBACK
410
534
  TRANSACTION (0.1ms) BEGIN
411
535
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
412
536
   (0.2ms) SET FOREIGN_KEY_CHECKS = 0
413
-  (2.3ms) TRUNCATE TABLE `extension_meta`;
414
-  (3.2ms) TRUNCATE TABLE `layouts`;
415
-  (2.0ms) TRUNCATE TABLE `page_parts`;
416
-  (2.3ms) TRUNCATE TABLE `pages`;
417
-  (2.1ms) TRUNCATE TABLE `sessions`;
418
-  (2.2ms) TRUNCATE TABLE `sites`;
419
-  (2.4ms) TRUNCATE TABLE `snippets`;
420
-  (4.1ms) TRUNCATE TABLE `users`;
421
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
537
+  (2.9ms) TRUNCATE TABLE `admins`
538
+  (2.9ms) TRUNCATE TABLE `users`
539
+  (4.8ms) TRUNCATE TABLE `pages`
540
+  (3.9ms) TRUNCATE TABLE `page_parts`
541
+  (3.5ms) TRUNCATE TABLE `page_fields`
542
+  (3.4ms) TRUNCATE TABLE `page_attachments`
543
+  (3.5ms) TRUNCATE TABLE `layouts`
544
+  (2.7ms) TRUNCATE TABLE `extension_meta`
545
+  (2.9ms) TRUNCATE TABLE `snippets`
546
+  (2.6ms) TRUNCATE TABLE `assets`
547
+  (3.1ms) TRUNCATE TABLE `sites`
548
+  (3.4ms) TRUNCATE TABLE `sessions`
549
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
422
550
  TRANSACTION (0.1ms) ROLLBACK
423
551
  TRANSACTION (0.1ms) BEGIN
424
552
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
425
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
426
-  (2.3ms) TRUNCATE TABLE `extension_meta`;
427
-  (2.2ms) TRUNCATE TABLE `layouts`;
428
-  (2.2ms) TRUNCATE TABLE `page_parts`;
429
-  (2.4ms) TRUNCATE TABLE `pages`;
430
-  (2.7ms) TRUNCATE TABLE `sessions`;
431
-  (2.1ms) TRUNCATE TABLE `sites`;
432
-  (2.4ms) TRUNCATE TABLE `snippets`;
433
-  (2.1ms) TRUNCATE TABLE `users`;
434
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
553
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
554
+  (41.3ms) TRUNCATE TABLE `admins`
555
+  (3.1ms) TRUNCATE TABLE `users`
556
+  (5.6ms) TRUNCATE TABLE `pages`
557
+  (3.3ms) TRUNCATE TABLE `page_parts`
558
+  (3.5ms) TRUNCATE TABLE `page_fields`
559
+  (2.4ms) TRUNCATE TABLE `page_attachments`
560
+  (2.7ms) TRUNCATE TABLE `layouts`
561
+  (3.0ms) TRUNCATE TABLE `extension_meta`
562
+  (3.9ms) TRUNCATE TABLE `snippets`
563
+  (2.8ms) TRUNCATE TABLE `assets`
564
+  (2.8ms) TRUNCATE TABLE `sites`
565
+  (4.1ms) TRUNCATE TABLE `sessions`
566
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
435
567
  TRANSACTION (0.1ms) ROLLBACK
436
- TRANSACTION (0.2ms) BEGIN
568
+ TRANSACTION (0.1ms) BEGIN
437
569
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
438
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
439
-  (2.0ms) TRUNCATE TABLE `extension_meta`;
440
-  (2.5ms) TRUNCATE TABLE `layouts`;
441
-  (2.1ms) TRUNCATE TABLE `page_parts`;
442
-  (2.2ms) TRUNCATE TABLE `pages`;
443
-  (2.1ms) TRUNCATE TABLE `sessions`;
444
-  (2.2ms) TRUNCATE TABLE `sites`;
445
-  (2.7ms) TRUNCATE TABLE `snippets`;
446
-  (2.2ms) TRUNCATE TABLE `users`;
447
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
570
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
571
+  (4.3ms) TRUNCATE TABLE `admins`
572
+  (3.5ms) TRUNCATE TABLE `users`
573
+  (4.7ms) TRUNCATE TABLE `pages`
574
+  (3.5ms) TRUNCATE TABLE `page_parts`
575
+  (3.9ms) TRUNCATE TABLE `page_fields`
576
+  (2.7ms) TRUNCATE TABLE `page_attachments`
577
+  (2.9ms) TRUNCATE TABLE `layouts`
578
+  (3.4ms) TRUNCATE TABLE `extension_meta`
579
+  (3.0ms) TRUNCATE TABLE `snippets`
580
+  (2.6ms) TRUNCATE TABLE `assets`
581
+  (2.7ms) TRUNCATE TABLE `sites`
582
+  (3.6ms) TRUNCATE TABLE `sessions`
583
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
448
584
  TRANSACTION (0.1ms) ROLLBACK
449
- TRANSACTION (0.2ms) BEGIN
450
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
585
+ TRANSACTION (0.1ms) BEGIN
586
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
451
587
   (0.1ms) SET FOREIGN_KEY_CHECKS = 0
452
-  (2.1ms) TRUNCATE TABLE `extension_meta`;
453
-  (2.3ms) TRUNCATE TABLE `layouts`;
454
-  (2.0ms) TRUNCATE TABLE `page_parts`;
455
-  (2.4ms) TRUNCATE TABLE `pages`;
456
-  (1.9ms) TRUNCATE TABLE `sessions`;
457
-  (2.7ms) TRUNCATE TABLE `sites`;
458
-  (2.3ms) TRUNCATE TABLE `snippets`;
459
-  (4.0ms) TRUNCATE TABLE `users`;
460
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
461
- TRANSACTION (0.2ms) ROLLBACK
588
+  (3.3ms) TRUNCATE TABLE `admins`
589
+  (3.1ms) TRUNCATE TABLE `users`
590
+  (5.4ms) TRUNCATE TABLE `pages`
591
+  (3.1ms) TRUNCATE TABLE `page_parts`
592
+  (3.9ms) TRUNCATE TABLE `page_fields`
593
+  (2.7ms) TRUNCATE TABLE `page_attachments`
594
+  (2.7ms) TRUNCATE TABLE `layouts`
595
+  (2.8ms) TRUNCATE TABLE `extension_meta`
596
+  (3.2ms) TRUNCATE TABLE `snippets`
597
+  (2.9ms) TRUNCATE TABLE `assets`
598
+  (2.8ms) TRUNCATE TABLE `sites`
599
+  (3.5ms) TRUNCATE TABLE `sessions`
600
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
601
+ TRANSACTION (0.1ms) ROLLBACK
462
602
  TRANSACTION (0.1ms) BEGIN
463
603
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
464
604
   (0.1ms) SET FOREIGN_KEY_CHECKS = 0
465
-  (2.4ms) TRUNCATE TABLE `extension_meta`;
466
-  (2.3ms) TRUNCATE TABLE `layouts`;
467
-  (2.2ms) TRUNCATE TABLE `page_parts`;
468
-  (2.4ms) TRUNCATE TABLE `pages`;
469
-  (2.0ms) TRUNCATE TABLE `sessions`;
470
-  (2.2ms) TRUNCATE TABLE `sites`;
471
-  (2.4ms) TRUNCATE TABLE `snippets`;
472
-  (2.5ms) TRUNCATE TABLE `users`;
473
-  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
605
+  (3.0ms) TRUNCATE TABLE `admins`
606
+  (2.9ms) TRUNCATE TABLE `users`
607
+  (4.5ms) TRUNCATE TABLE `pages`
608
+  (3.0ms) TRUNCATE TABLE `page_parts`
609
+  (4.3ms) TRUNCATE TABLE `page_fields`
610
+  (2.4ms) TRUNCATE TABLE `page_attachments`
611
+  (3.6ms) TRUNCATE TABLE `layouts`
612
+  (3.0ms) TRUNCATE TABLE `extension_meta`
613
+  (8.1ms) TRUNCATE TABLE `snippets`
614
+  (3.4ms) TRUNCATE TABLE `assets`
615
+  (3.1ms) TRUNCATE TABLE `sites`
616
+  (3.2ms) TRUNCATE TABLE `sessions`
617
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
474
618
  TRANSACTION (0.2ms) ROLLBACK
475
619
  TRANSACTION (0.1ms) BEGIN
476
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'local.timezone' ORDER BY `config`.`id` ASC LIMIT 1
477
- TRANSACTION (0.1ms) SAVEPOINT active_record_1
478
- TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('local.timezone', 'UTC')
479
- TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config`
480
- TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
481
620
   (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
482
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
483
-  (44.9ms) TRUNCATE TABLE `extension_meta`;
484
-  (3.9ms) TRUNCATE TABLE `layouts`;
485
-  (3.0ms) TRUNCATE TABLE `page_parts`;
486
-  (3.8ms) TRUNCATE TABLE `pages`;
487
-  (2.9ms) TRUNCATE TABLE `sessions`;
488
-  (2.6ms) TRUNCATE TABLE `sites`;
489
-  (2.6ms) TRUNCATE TABLE `snippets`;
490
-  (2.1ms) TRUNCATE TABLE `users`;
491
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
492
- TRANSACTION (0.1ms) ROLLBACK
493
- TRANSACTION (0.2ms) BEGIN
494
- TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config`
495
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
496
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
497
-  (44.6ms) TRUNCATE TABLE `extension_meta`;
498
-  (3.3ms) TRUNCATE TABLE `layouts`;
499
-  (2.7ms) TRUNCATE TABLE `page_parts`;
500
-  (2.6ms) TRUNCATE TABLE `pages`;
501
-  (2.5ms) TRUNCATE TABLE `sessions`;
502
-  (2.5ms) TRUNCATE TABLE `sites`;
503
-  (2.7ms) TRUNCATE TABLE `snippets`;
504
-  (3.3ms) TRUNCATE TABLE `users`;
621
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
622
+  (2.9ms) TRUNCATE TABLE `admins`
623
+  (3.1ms) TRUNCATE TABLE `users`
624
+  (4.8ms) TRUNCATE TABLE `pages`
625
+  (3.2ms) TRUNCATE TABLE `page_parts`
626
+  (4.1ms) TRUNCATE TABLE `page_fields`
627
+  (2.7ms) TRUNCATE TABLE `page_attachments`
628
+  (3.3ms) TRUNCATE TABLE `layouts`
629
+  (2.9ms) TRUNCATE TABLE `extension_meta`
630
+  (3.1ms) TRUNCATE TABLE `snippets`
631
+  (2.8ms) TRUNCATE TABLE `assets`
632
+  (3.7ms) TRUNCATE TABLE `sites`
633
+  (4.3ms) TRUNCATE TABLE `sessions`
505
634
   (0.2ms) SET FOREIGN_KEY_CHECKS = 1
506
635
  TRANSACTION (0.2ms) ROLLBACK
507
-  (0.2ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
508
-  (0.3ms) CREATE DATABASE `` DEFAULT COLLATE `utf8mb4_bin`
509
-  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
510
-  (0.4ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`
511
-  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
512
-  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
513
-  (0.2ms) SELECT GET_LOCK('1911292410673641555', 0)
514
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
515
- Migrating to AddSessions (16)
516
-  (0.3ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
517
-  (0.4ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime)
518
-  (0.2ms) SELECT RELEASE_LOCK('1911292410673641555')
519
-  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
520
-  (0.4ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`
521
-  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
522
-  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
523
-  (0.2ms) SELECT GET_LOCK('1911292410673641555', 0)
524
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
525
- Migrating to AddSessions (16)
526
-  (0.3ms) SELECT @@innodb_file_per_table = 1 AND @@innodb_file_format = 'Barracuda'
527
-  (0.4ms) CREATE TABLE `sessions` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime)
528
-  (0.2ms) SELECT RELEASE_LOCK('1911292410673641555')
529
-  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL
530
-  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
531
-  (0.3ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
532
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
533
-  (0.2ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
534
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
535
-  (0.2ms) SELECT `ar_internal_metadata`.`value` FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment'
536
-  (63.9ms) DROP DATABASE IF EXISTS `trusty_cms_test`