acts_as_nested_interval 0.0.10 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -16
- data/lib/acts_as_nested_interval.rb +4 -4
- data/lib/acts_as_nested_interval/version.rb +1 -1
- metadata +61 -62
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -291
- data/test/dummy/log/test.log +0 -33557
data/README.md
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
[![Build Status](https://secure.travis-ci.org/clyfe/acts_as_nested_interval.png)](http://travis-ci.org/clyfe/acts_as_nested_interval)
|
2
|
-
|
3
|
-
# ActsAsNestedInterval
|
1
|
+
# ActsAsNestedInterval [![Build Status](https://secure.travis-ci.org/clyfe/acts_as_nested_interval.png)](http://travis-ci.org/clyfe/acts_as_nested_interval)
|
4
2
|
|
5
3
|
## About
|
6
4
|
|
7
|
-
Pythonic's acts_as_nested_interval updated to Rails 3 and gemified.
|
8
|
-
|
9
5
|
This act implements a nested-interval tree.
|
10
6
|
You can find all descendants or all ancestors with just one select query.
|
11
7
|
You can insert and delete records without
|
@@ -15,6 +11,9 @@ Nested sets/intervals are good if you need to sort in preorder at DB-level.
|
|
15
11
|
If you don't need that give a look to https://github.com/stefankroes/ancestry ,
|
16
12
|
that implements a simpler encoding model (variant of materialized path).
|
17
13
|
|
14
|
+
If your database supports recursive queryes (`WITH RECURSIVE`) or specific custom extensions
|
15
|
+
(`CONNECT BY`, ltree) and you don't need portability, you're probably better off using those.
|
16
|
+
|
18
17
|
|
19
18
|
## Install
|
20
19
|
|
@@ -38,13 +37,13 @@ Example:
|
|
38
37
|
```ruby
|
39
38
|
create_table :regions do |t|
|
40
39
|
t.integer :parent_id
|
41
|
-
t.integer :lftp, :
|
42
|
-
t.integer :lftq, :
|
43
|
-
t.integer :rgtp, :
|
44
|
-
t.integer :rgtq, :
|
45
|
-
t.
|
46
|
-
t.
|
47
|
-
t.string :name, :
|
40
|
+
t.integer :lftp, null: false
|
41
|
+
t.integer :lftq, null: false
|
42
|
+
t.integer :rgtp, null: false
|
43
|
+
t.integer :rgtq, null: false
|
44
|
+
t.decimal :lft, precision: 31, scale: 30, null: false
|
45
|
+
t.decimal :rgt, precision: 31, scale: 30, null: false
|
46
|
+
t.string :name, null: false
|
48
47
|
end
|
49
48
|
add_index :regions, :parent_id
|
50
49
|
add_index :regions, :lftp
|
@@ -143,8 +142,8 @@ where x is the inverse of lftp modulo lftq.
|
|
143
142
|
|
144
143
|
## Moving nodes
|
145
144
|
|
146
|
-
To move a record from `old.lftp, old.lftq` to `new.lftp, new.lftq`,
|
147
|
-
linear transform to lftp, lftq of all descendants:
|
145
|
+
To move a record from `old.lftp, old.lftq` to `new.lftp, new.lftq`,
|
146
|
+
the following linear transform is applied to lftp, lftq of all descendants:
|
148
147
|
|
149
148
|
lftp := (old.lftq * new.rgtp - old.rgtq * new.lftp) * lftp
|
150
149
|
+ (old.rgtp * new.lftp - old.lftp * new.rgtp) * lftq
|
@@ -157,15 +156,17 @@ Example:
|
|
157
156
|
|
158
157
|
```ruby
|
159
158
|
pacific = Region.create :name => "Pacific", :parent => earth
|
159
|
+
ActiveRecord::Base.connection.execute("LOCK TABLES regions WRITE")
|
160
160
|
oceania.parent = pacific
|
161
161
|
oceania.save!
|
162
|
+
ActiveRecord::Base.connection.execute("UNLOCK TABLES")
|
162
163
|
```
|
163
164
|
|
164
165
|
## Migrating from acts_as_tree
|
165
166
|
|
166
167
|
If you come from acts_as_tree or another system where you only have a parent_id,
|
167
|
-
to rebuild the intervals based on `
|
168
|
-
and created the columns required by `
|
168
|
+
to rebuild the intervals based on `acts_as_nested_interval`, after you migrated the DB
|
169
|
+
and created the columns required by `acts_as_nested_interval` run:
|
169
170
|
|
170
171
|
```ruby
|
171
172
|
Region.rebuild_nested_interval_tree!
|
@@ -37,14 +37,14 @@ module ActsAsNestedInterval
|
|
37
37
|
belongs_to :parent, class_name: name, foreign_key: nested_interval_foreign_key
|
38
38
|
has_many :children, class_name: name, foreign_key: nested_interval_foreign_key,
|
39
39
|
dependent: nested_interval_dependent
|
40
|
-
scope :roots, where(nested_interval_foreign_key => nil)
|
40
|
+
scope :roots, -> { where(nested_interval_foreign_key => nil) }
|
41
41
|
|
42
42
|
if columns_hash["rgt"]
|
43
|
-
scope :preorder, order('rgt DESC, lftp ASC')
|
43
|
+
scope :preorder, -> { order('rgt DESC, lftp ASC') }
|
44
44
|
elsif columns_hash["rgtp"] && columns_hash["rgtq"]
|
45
|
-
scope :preorder, order('1.0 * rgtp / rgtq DESC, lftp ASC')
|
45
|
+
scope :preorder, -> { order('1.0 * rgtp / rgtq DESC, lftp ASC') }
|
46
46
|
else
|
47
|
-
scope :preorder, order('nested_interval_rgt(lftp, lftq) DESC, lftp ASC')
|
47
|
+
scope :preorder, -> { order('nested_interval_rgt(lftp, lftq) DESC, lftp ASC') }
|
48
48
|
end
|
49
49
|
|
50
50
|
before_create :create_nested_interval
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_nested_interval
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,24 +10,30 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.2.1
|
23
|
+
- - <
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '5'
|
23
26
|
type: :runtime
|
24
27
|
prerelease: false
|
25
28
|
version_requirements: !ruby/object:Gem::Requirement
|
26
29
|
none: false
|
27
30
|
requirements:
|
28
|
-
- -
|
31
|
+
- - ! '>='
|
29
32
|
- !ruby/object:Gem::Version
|
30
33
|
version: 3.2.1
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '5'
|
31
37
|
- !ruby/object:Gem::Dependency
|
32
38
|
name: sqlite3
|
33
39
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,55 +90,51 @@ executables: []
|
|
84
90
|
extensions: []
|
85
91
|
extra_rdoc_files: []
|
86
92
|
files:
|
87
|
-
- lib/acts_as_nested_interval.rb
|
88
|
-
- lib/acts_as_nested_interval/core_ext/integer.rb
|
89
|
-
- lib/acts_as_nested_interval/version.rb
|
90
93
|
- lib/acts_as_nested_interval/class_methods.rb
|
91
94
|
- lib/acts_as_nested_interval/instance_methods.rb
|
95
|
+
- lib/acts_as_nested_interval/core_ext/integer.rb
|
96
|
+
- lib/acts_as_nested_interval/version.rb
|
97
|
+
- lib/acts_as_nested_interval.rb
|
92
98
|
- lib/tasks/acts_as_nested_interval_tasks.rake
|
93
99
|
- MIT-LICENSE
|
94
100
|
- Rakefile
|
95
101
|
- README.md
|
96
|
-
- test/test_helper.rb
|
97
|
-
- test/acts_as_nested_interval_test.rb
|
98
|
-
- test/dummy/test/unit/region_test.rb
|
99
|
-
- test/dummy/test/fixtures/regions.yml
|
100
102
|
- test/dummy/script/rails
|
101
|
-
- test/dummy/db/development.sqlite3
|
102
|
-
- test/dummy/db/schema.rb
|
103
|
-
- test/dummy/db/test.sqlite3
|
104
|
-
- test/dummy/db/migrate/20121004204252_change_interval_precision.rb
|
105
|
-
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
106
|
-
- test/dummy/app/controllers/application_controller.rb
|
107
|
-
- test/dummy/app/views/layouts/application.html.erb
|
108
|
-
- test/dummy/app/helpers/application_helper.rb
|
109
|
-
- test/dummy/app/models/region.rb
|
110
103
|
- test/dummy/app/assets/javascripts/application.js
|
111
104
|
- test/dummy/app/assets/stylesheets/application.css
|
112
|
-
- test/dummy/
|
113
|
-
- test/dummy/
|
105
|
+
- test/dummy/app/models/region.rb
|
106
|
+
- test/dummy/app/views/layouts/application.html.erb
|
107
|
+
- test/dummy/app/controllers/application_controller.rb
|
108
|
+
- test/dummy/app/helpers/application_helper.rb
|
109
|
+
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
110
|
+
- test/dummy/db/migrate/20121004204252_change_interval_precision.rb
|
111
|
+
- test/dummy/db/schema.rb
|
112
|
+
- test/dummy/Rakefile
|
113
|
+
- test/dummy/config.ru
|
114
|
+
- test/dummy/test/unit/region_test.rb
|
115
|
+
- test/dummy/test/fixtures/regions.yml
|
114
116
|
- test/dummy/config/database.yml
|
115
117
|
- test/dummy/config/initializers/inflections.rb
|
116
|
-
- test/dummy/config/initializers/mime_types.rb
|
117
118
|
- test/dummy/config/initializers/session_store.rb
|
119
|
+
- test/dummy/config/initializers/mime_types.rb
|
120
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
118
121
|
- test/dummy/config/initializers/secret_token.rb
|
119
122
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
120
|
-
- test/dummy/config/
|
121
|
-
- test/dummy/config/
|
122
|
-
- test/dummy/config/environments/production.rb
|
123
|
+
- test/dummy/config/boot.rb
|
124
|
+
- test/dummy/config/locales/en.yml
|
123
125
|
- test/dummy/config/environments/test.rb
|
124
126
|
- test/dummy/config/environments/development.rb
|
125
|
-
- test/dummy/config/
|
127
|
+
- test/dummy/config/environments/production.rb
|
126
128
|
- test/dummy/config/environment.rb
|
127
|
-
- test/dummy/config/
|
128
|
-
- test/dummy/
|
129
|
+
- test/dummy/config/application.rb
|
130
|
+
- test/dummy/config/routes.rb
|
131
|
+
- test/dummy/README.rdoc
|
132
|
+
- test/dummy/public/favicon.ico
|
129
133
|
- test/dummy/public/422.html
|
130
134
|
- test/dummy/public/500.html
|
131
|
-
- test/dummy/public/
|
132
|
-
- test/
|
133
|
-
- test/
|
134
|
-
- test/dummy/log/test.log
|
135
|
-
- test/dummy/log/development.log
|
135
|
+
- test/dummy/public/404.html
|
136
|
+
- test/test_helper.rb
|
137
|
+
- test/acts_as_nested_interval_test.rb
|
136
138
|
homepage: https://github.com/clyfe/acts_as_nested_interval
|
137
139
|
licenses: []
|
138
140
|
post_install_message:
|
@@ -153,48 +155,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
155
|
version: '0'
|
154
156
|
requirements: []
|
155
157
|
rubyforge_project:
|
156
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.23
|
157
159
|
signing_key:
|
158
160
|
specification_version: 3
|
159
161
|
summary: Encode Trees in RDBMS using nested interval method.
|
160
162
|
test_files:
|
161
|
-
- test/test_helper.rb
|
162
|
-
- test/acts_as_nested_interval_test.rb
|
163
|
-
- test/dummy/test/unit/region_test.rb
|
164
|
-
- test/dummy/test/fixtures/regions.yml
|
165
163
|
- test/dummy/script/rails
|
166
|
-
- test/dummy/db/development.sqlite3
|
167
|
-
- test/dummy/db/schema.rb
|
168
|
-
- test/dummy/db/test.sqlite3
|
169
|
-
- test/dummy/db/migrate/20121004204252_change_interval_precision.rb
|
170
|
-
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
171
|
-
- test/dummy/app/controllers/application_controller.rb
|
172
|
-
- test/dummy/app/views/layouts/application.html.erb
|
173
|
-
- test/dummy/app/helpers/application_helper.rb
|
174
|
-
- test/dummy/app/models/region.rb
|
175
164
|
- test/dummy/app/assets/javascripts/application.js
|
176
165
|
- test/dummy/app/assets/stylesheets/application.css
|
177
|
-
- test/dummy/
|
178
|
-
- test/dummy/
|
166
|
+
- test/dummy/app/models/region.rb
|
167
|
+
- test/dummy/app/views/layouts/application.html.erb
|
168
|
+
- test/dummy/app/controllers/application_controller.rb
|
169
|
+
- test/dummy/app/helpers/application_helper.rb
|
170
|
+
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
171
|
+
- test/dummy/db/migrate/20121004204252_change_interval_precision.rb
|
172
|
+
- test/dummy/db/schema.rb
|
173
|
+
- test/dummy/Rakefile
|
174
|
+
- test/dummy/config.ru
|
175
|
+
- test/dummy/test/unit/region_test.rb
|
176
|
+
- test/dummy/test/fixtures/regions.yml
|
179
177
|
- test/dummy/config/database.yml
|
180
178
|
- test/dummy/config/initializers/inflections.rb
|
181
|
-
- test/dummy/config/initializers/mime_types.rb
|
182
179
|
- test/dummy/config/initializers/session_store.rb
|
180
|
+
- test/dummy/config/initializers/mime_types.rb
|
181
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
183
182
|
- test/dummy/config/initializers/secret_token.rb
|
184
183
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
185
|
-
- test/dummy/config/
|
186
|
-
- test/dummy/config/
|
187
|
-
- test/dummy/config/environments/production.rb
|
184
|
+
- test/dummy/config/boot.rb
|
185
|
+
- test/dummy/config/locales/en.yml
|
188
186
|
- test/dummy/config/environments/test.rb
|
189
187
|
- test/dummy/config/environments/development.rb
|
190
|
-
- test/dummy/config/
|
188
|
+
- test/dummy/config/environments/production.rb
|
191
189
|
- test/dummy/config/environment.rb
|
192
|
-
- test/dummy/config/
|
193
|
-
- test/dummy/
|
190
|
+
- test/dummy/config/application.rb
|
191
|
+
- test/dummy/config/routes.rb
|
192
|
+
- test/dummy/README.rdoc
|
193
|
+
- test/dummy/public/favicon.ico
|
194
194
|
- test/dummy/public/422.html
|
195
195
|
- test/dummy/public/500.html
|
196
|
-
- test/dummy/public/
|
197
|
-
- test/
|
198
|
-
- test/
|
199
|
-
|
200
|
-
- test/dummy/log/development.log
|
196
|
+
- test/dummy/public/404.html
|
197
|
+
- test/test_helper.rb
|
198
|
+
- test/acts_as_nested_interval_test.rb
|
199
|
+
has_rdoc:
|
Binary file
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,291 +0,0 @@
|
|
1
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35m (116.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
-
[1m[35m (60.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
|
-
Migrating to CreateRegions (20120302143528)
|
7
|
-
[1m[35m (0.1ms)[0m begin transaction
|
8
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
9
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
10
|
-
[1m[36m (71.9ms)[0m [1mcommit transaction[0m
|
11
|
-
[1m[35m (0.6ms)[0m select sqlite_version(*)
|
12
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
13
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
14
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
16
|
-
[1m[36m (163.5ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
17
|
-
[1m[35m (78.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
18
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
19
|
-
[1m[35m (99.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
20
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
21
|
-
[1m[35m (75.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
22
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
23
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
24
|
-
[1m[36m (216.1ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
25
|
-
[1m[35m (177.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
26
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
27
|
-
[1m[35m (157.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
28
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
29
|
-
[1m[35m (254.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
30
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
31
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
32
|
-
[1m[36m (213.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
33
|
-
[1m[35m (187.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
34
|
-
[1m[36m (0.2ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
35
|
-
[1m[35m (166.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
36
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
37
|
-
[1m[35m (165.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
38
|
-
SQLite3::ConstraintException: regions.name may not be NULL: INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
39
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
40
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
41
|
-
[1m[36m (203.5ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
42
|
-
[1m[35m (144.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
43
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
44
|
-
[1m[35m (144.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
45
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
46
|
-
[1m[35m (156.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
47
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
48
|
-
[1m[35m (192.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
49
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
50
|
-
[1m[35m (155.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
51
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
52
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
53
|
-
[1m[35m (163.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
54
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
55
|
-
[1m[35m (156.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
56
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
57
|
-
Migrating to CreateRegions (20120302143528)
|
58
|
-
[1m[35m (0.1ms)[0m begin transaction
|
59
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
60
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
61
|
-
[1m[36m (156.1ms)[0m [1mcommit transaction[0m
|
62
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
63
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
64
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
65
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
66
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
67
|
-
[1m[36m (177.0ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
68
|
-
[1m[35m (156.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
69
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
70
|
-
[1m[35m (155.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
71
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
72
|
-
[1m[35m (154.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
73
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
74
|
-
[1m[35m (259.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
75
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
76
|
-
[1m[35m (211.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
77
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
78
|
-
Migrating to CreateRegions (20120302143528)
|
79
|
-
[1m[35m (0.1ms)[0m begin transaction
|
80
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
81
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
82
|
-
[1m[36m (153.4ms)[0m [1mcommit transaction[0m
|
83
|
-
[1m[35m (0.6ms)[0m select sqlite_version(*)
|
84
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
85
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("regions")
|
86
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
87
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
88
|
-
[1m[36m (163.6ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
89
|
-
[1m[35m (144.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
90
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
91
|
-
[1m[35m (177.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
92
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
93
|
-
[1m[35m (145.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
94
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
95
|
-
[1m[35m (161.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
96
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
97
|
-
[1m[35m (156.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
98
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
99
|
-
Migrating to CreateRegions (20120302143528)
|
100
|
-
[1m[35m (0.1ms)[0m begin transaction
|
101
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
102
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
103
|
-
[1m[36m (160.7ms)[0m [1mcommit transaction[0m
|
104
|
-
[1m[35m (0.6ms)[0m select sqlite_version(*)
|
105
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
106
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("regions")
|
107
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
108
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
109
|
-
[1m[36m (160.2ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
110
|
-
[1m[35m (156.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
111
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
112
|
-
[1m[35m (200.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
113
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
114
|
-
[1m[35m (166.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
115
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
116
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
117
|
-
[1m[36m (179.3ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
118
|
-
[1m[35m (155.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
119
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
120
|
-
[1m[35m (168.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
121
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
122
|
-
[1m[35m (166.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
123
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
124
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
125
|
-
[1m[36m (198.5ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
126
|
-
[1m[35m (166.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
127
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
128
|
-
[1m[35m (167.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
129
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
130
|
-
[1m[35m (167.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
131
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
132
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
133
|
-
[1m[36m (179.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
134
|
-
[1m[35m (199.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
135
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
136
|
-
[1m[35m (166.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
137
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
138
|
-
[1m[35m (166.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
139
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
140
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
141
|
-
[1m[36m (182.0ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
142
|
-
[1m[35m (156.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
143
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
144
|
-
[1m[35m (178.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
145
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
146
|
-
[1m[35m (188.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
147
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
148
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
149
|
-
[1m[36m (183.0ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
150
|
-
[1m[35m (166.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
151
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
152
|
-
[1m[35m (167.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
153
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
154
|
-
[1m[35m (177.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
155
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
156
|
-
Migrating to CreateRegions (20120302143528)
|
157
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
158
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
159
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
160
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
161
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
162
|
-
[1m[36m (178.2ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
163
|
-
[1m[35m (166.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
164
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
165
|
-
[1m[35m (189.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
166
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
167
|
-
[1m[35m (189.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
168
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
169
|
-
Migrating to CreateRegions (20120302143528)
|
170
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
171
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
172
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
173
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
174
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
175
|
-
[1m[36m (274.2ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
176
|
-
[1m[35m (167.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
177
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
178
|
-
[1m[35m (133.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
179
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
180
|
-
[1m[35m (132.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
181
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
182
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
183
|
-
[1m[36m (166.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
184
|
-
[1m[35m (166.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
185
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
186
|
-
[1m[35m (167.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
187
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
188
|
-
[1m[35m (143.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
189
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
190
|
-
[1m[35m (183.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
191
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
192
|
-
[1m[35m (155.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
193
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
194
|
-
Migrating to CreateRegions (20120302143528)
|
195
|
-
[1m[35m (0.1ms)[0m begin transaction
|
196
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
197
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
198
|
-
[1m[36m (160.5ms)[0m [1mcommit transaction[0m
|
199
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
200
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
201
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
202
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
203
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
204
|
-
[1m[36m (226.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
205
|
-
[1m[35m (144.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
206
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
207
|
-
[1m[35m (144.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
208
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
209
|
-
[1m[35m (156.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
210
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
211
|
-
[1m[35m (184.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
212
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
213
|
-
[1m[35m (156.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
214
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
215
|
-
Migrating to CreateRegions (20120302143528)
|
216
|
-
[1m[35m (0.1ms)[0m begin transaction
|
217
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
218
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120302143528')
|
219
|
-
[1m[36m (130.3ms)[0m [1mcommit transaction[0m
|
220
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
221
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
222
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("regions")
|
223
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
224
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
225
|
-
[1m[36m (194.1ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
226
|
-
[1m[35m (145.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
227
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
228
|
-
[1m[35m (167.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
229
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
230
|
-
[1m[35m (165.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
231
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
232
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
233
|
-
[1m[36m (195.4ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) [0m
|
234
|
-
[1m[35m (166.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
235
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
236
|
-
[1m[35m (156.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
237
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
238
|
-
[1m[35m (154.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
239
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
240
|
-
Migrating to CreateRegions (20120302143528)
|
241
|
-
Migrating to ChangeIntervalPrecision (20121004204252)
|
242
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
243
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
244
|
-
[1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "altered_regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
245
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("regions")[0m
|
246
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "regions"
|
247
|
-
[1m[36m (0.2ms)[0m [1mDROP TABLE "regions"[0m
|
248
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
249
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_regions")[0m
|
250
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "altered_regions"
|
251
|
-
[1m[36m (55.4ms)[0m [1mDROP TABLE "altered_regions"[0m
|
252
|
-
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "altered_regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
253
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("regions")[0m
|
254
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "regions"
|
255
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "regions"[0m
|
256
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL)
|
257
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_regions")[0m
|
258
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "altered_regions"
|
259
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_regions"[0m
|
260
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121004204252')
|
261
|
-
[1m[36m (268.2ms)[0m [1mcommit transaction[0m
|
262
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
263
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
264
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
265
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
266
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
267
|
-
[1m[36m (180.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
268
|
-
[1m[35m (165.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
269
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
270
|
-
[1m[35m (166.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
271
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
272
|
-
[1m[35m (143.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
273
|
-
[1m[36m (145.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|
274
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
275
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
276
|
-
[1m[36m (172.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
277
|
-
[1m[35m (166.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
278
|
-
[1m[36m (0.2ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
279
|
-
[1m[35m (189.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
280
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
281
|
-
[1m[35m (166.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
282
|
-
[1m[36m (156.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|
283
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
284
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
285
|
-
[1m[36m (182.0ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
286
|
-
[1m[35m (156.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
287
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
288
|
-
[1m[35m (189.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
289
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
290
|
-
[1m[35m (243.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
291
|
-
[1m[36m (211.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|