enju_message 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/message_templates_controller.rb +2 -3
- data/lib/enju_message/version.rb +1 -1
- data/spec/controllers/message_templates_controller_spec.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/db/schema.rb +25 -26
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +69 -189
- data/spec/dummy/log/sunspot-solr-test.log +232 -222
- data/spec/dummy/log/test.log +144089 -34525
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +53 -171
- data/app/views/baskets/edit.html.erb +0 -30
- data/app/views/baskets/index.html.erb +0 -31
- data/app/views/baskets/new.html.erb +0 -29
- data/app/views/baskets/show.html.erb +0 -23
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
- data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
- data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
- data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
- data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
- data/app/views/checked_items/_checkouts.html.erb +0 -20
- data/app/views/checked_items/_list.html.erb +0 -39
- data/app/views/checked_items/edit.html.erb +0 -21
- data/app/views/checked_items/index.html.erb +0 -32
- data/app/views/checked_items/index.js.erb +0 -1
- data/app/views/checked_items/new.html.erb +0 -20
- data/app/views/checked_items/show.html.erb +0 -24
- data/app/views/checkins/_form.html.erb +0 -24
- data/app/views/checkins/_list.html.erb +0 -51
- data/app/views/checkins/edit.html.erb +0 -26
- data/app/views/checkins/index.html.erb +0 -16
- data/app/views/checkins/index.js.erb +0 -1
- data/app/views/checkins/new.html.erb +0 -14
- data/app/views/checkins/show.html.erb +0 -24
- data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_users/index.html.erb +0 -33
- data/app/views/checkout_stat_has_users/new.html.erb +0 -12
- data/app/views/checkout_stat_has_users/show.html.erb +0 -28
- data/app/views/checkout_types/_form.html.erb +0 -19
- data/app/views/checkout_types/edit.html.erb +0 -13
- data/app/views/checkout_types/index.html.erb +0 -50
- data/app/views/checkout_types/new.html.erb +0 -12
- data/app/views/checkout_types/show.html.erb +0 -38
- data/app/views/checkouts/_form.html.erb +0 -28
- data/app/views/checkouts/_index.html.erb +0 -23
- data/app/views/checkouts/_index_overdue.html.erb +0 -33
- data/app/views/checkouts/_index_user.html.erb +0 -44
- data/app/views/checkouts/_list.html.erb +0 -45
- data/app/views/checkouts/edit.html.erb +0 -51
- data/app/views/checkouts/index.atom.builder +0 -14
- data/app/views/checkouts/index.csv.erb +0 -4
- data/app/views/checkouts/index.html.erb +0 -11
- data/app/views/checkouts/index.ics.erb +0 -13
- data/app/views/checkouts/index.rss.builder +0 -38
- data/app/views/checkouts/new.html.erb +0 -20
- data/app/views/checkouts/show.html.erb +0 -35
- data/app/views/circulation_statuses/_form.html.erb +0 -19
- data/app/views/circulation_statuses/edit.html.erb +0 -13
- data/app/views/circulation_statuses/index.html.erb +0 -43
- data/app/views/circulation_statuses/new.html.erb +0 -12
- data/app/views/circulation_statuses/show.html.erb +0 -29
- data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
- data/app/views/item_has_use_restrictions/index.html.erb +0 -32
- data/app/views/item_has_use_restrictions/new.html.erb +0 -25
- data/app/views/item_has_use_restrictions/show.html.erb +0 -29
- data/app/views/lending_policies/_form.html.erb +0 -41
- data/app/views/lending_policies/edit.html.erb +0 -13
- data/app/views/lending_policies/index.html.erb +0 -42
- data/app/views/lending_policies/new.html.erb +0 -12
- data/app/views/lending_policies/show.html.erb +0 -50
- data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
- data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
- data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
- data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
- data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
- data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
- data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
- data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
- data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
- data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
- data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
- data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
- data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_users/index.html.erb +0 -33
- data/app/views/reserve_stat_has_users/new.html.erb +0 -12
- data/app/views/reserve_stat_has_users/show.html.erb +0 -28
- data/app/views/reserves/_form.html.erb +0 -49
- data/app/views/reserves/_new.html.erb +0 -44
- data/app/views/reserves/_new_user.html.erb +0 -50
- data/app/views/reserves/_title.html.erb +0 -19
- data/app/views/reserves/edit.html.erb +0 -42
- data/app/views/reserves/index.atom.builder +0 -14
- data/app/views/reserves/index.csv.erb +0 -4
- data/app/views/reserves/index.html.erb +0 -75
- data/app/views/reserves/index.rss.builder +0 -41
- data/app/views/reserves/new.html.erb +0 -5
- data/app/views/reserves/show.html.erb +0 -61
- data/app/views/use_restrictions/_form.html.erb +0 -19
- data/app/views/use_restrictions/edit.html.erb +0 -13
- data/app/views/use_restrictions/index.html.erb +0 -43
- data/app/views/use_restrictions/new.html.erb +0 -12
- data/app/views/use_restrictions/show.html.erb +0 -29
- data/app/views/user_checkout_stats/_form.html.erb +0 -19
- data/app/views/user_checkout_stats/edit.html.erb +0 -13
- data/app/views/user_checkout_stats/index.html.erb +0 -35
- data/app/views/user_checkout_stats/new.html.erb +0 -12
- data/app/views/user_checkout_stats/show.csv.erb +0 -4
- data/app/views/user_checkout_stats/show.html.erb +0 -55
- data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
- data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
- data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
- data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
- data/app/views/user_reserve_stats/_form.html.erb +0 -19
- data/app/views/user_reserve_stats/edit.html.erb +0 -13
- data/app/views/user_reserve_stats/index.html.erb +0 -35
- data/app/views/user_reserve_stats/new.html.erb +0 -12
- data/app/views/user_reserve_stats/show.csv.erb +0 -4
- data/app/views/user_reserve_stats/show.html.erb +0 -54
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb +0 -9
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/log/production.log +0 -20
- data/spec/dummy/script/delayed_job +0 -5
|
@@ -4,9 +4,8 @@ class MessageTemplatesController < InheritedResources::Base
|
|
|
4
4
|
|
|
5
5
|
def update
|
|
6
6
|
@message_template = MessageTemplate.find(params[:id])
|
|
7
|
-
if params[:
|
|
8
|
-
@message_template
|
|
9
|
-
redirect_to message_templates_url
|
|
7
|
+
if params[:move]
|
|
8
|
+
move_position(@message_template, params[:move])
|
|
10
9
|
return
|
|
11
10
|
end
|
|
12
11
|
update!
|
data/lib/enju_message/version.rb
CHANGED
|
@@ -305,7 +305,7 @@ describe MessageTemplatesController do
|
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
it "moves its position when specified" do
|
|
308
|
-
put :update, :id => @message_template.id, :message_template => @attrs, :
|
|
308
|
+
put :update, :id => @message_template.id, :message_template => @attrs, :move => 'lower'
|
|
309
309
|
response.should redirect_to(message_templates_url)
|
|
310
310
|
end
|
|
311
311
|
end
|
|
@@ -42,4 +42,12 @@ class ApplicationController < ActionController::Base
|
|
|
42
42
|
def solr_commit
|
|
43
43
|
Sunspot.commit
|
|
44
44
|
end
|
|
45
|
+
|
|
46
|
+
def move_position(resource, direction)
|
|
47
|
+
if ['higher', 'lower'].include?(direction)
|
|
48
|
+
resource.send("move_#{direction}")
|
|
49
|
+
redirect_to url_for(:controller => resource.class.to_s.pluralize.underscore)
|
|
50
|
+
return
|
|
51
|
+
end
|
|
52
|
+
end
|
|
45
53
|
end
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
|
14
|
+
ActiveRecord::Schema.define(:version => 20120125050502) do
|
|
15
15
|
|
|
16
16
|
create_table "delayed_jobs", :force => true do |t|
|
|
17
17
|
t.integer "priority", :default => 0
|
|
@@ -22,9 +22,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
22
22
|
t.datetime "locked_at"
|
|
23
23
|
t.datetime "failed_at"
|
|
24
24
|
t.string "locked_by"
|
|
25
|
-
t.datetime "created_at"
|
|
26
|
-
t.datetime "updated_at"
|
|
27
|
-
t.string "queue"
|
|
25
|
+
t.datetime "created_at", :null => false
|
|
26
|
+
t.datetime "updated_at", :null => false
|
|
28
27
|
end
|
|
29
28
|
|
|
30
29
|
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
|
@@ -38,8 +37,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
38
37
|
t.string "iso_639_3"
|
|
39
38
|
t.text "note"
|
|
40
39
|
t.integer "position"
|
|
41
|
-
t.datetime "created_at"
|
|
42
|
-
t.datetime "updated_at"
|
|
40
|
+
t.datetime "created_at", :null => false
|
|
41
|
+
t.datetime "updated_at", :null => false
|
|
43
42
|
end
|
|
44
43
|
|
|
45
44
|
create_table "library_groups", :force => true do |t|
|
|
@@ -53,8 +52,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
53
52
|
t.integer "valid_period_for_new_user", :default => 365, :null => false
|
|
54
53
|
t.boolean "post_to_union_catalog", :default => false, :null => false
|
|
55
54
|
t.integer "country_id"
|
|
56
|
-
t.datetime "created_at"
|
|
57
|
-
t.datetime "updated_at"
|
|
55
|
+
t.datetime "created_at", :null => false
|
|
56
|
+
t.datetime "updated_at", :null => false
|
|
58
57
|
t.text "admin_networks"
|
|
59
58
|
t.boolean "allow_bookmark_external_url", :default => false, :null => false
|
|
60
59
|
t.integer "position"
|
|
@@ -71,8 +70,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
71
70
|
t.datetime "deleted_at"
|
|
72
71
|
t.text "body"
|
|
73
72
|
t.string "state"
|
|
74
|
-
t.datetime "created_at"
|
|
75
|
-
t.datetime "updated_at"
|
|
73
|
+
t.datetime "created_at", :null => false
|
|
74
|
+
t.datetime "updated_at", :null => false
|
|
76
75
|
end
|
|
77
76
|
|
|
78
77
|
add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
|
|
@@ -83,8 +82,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
83
82
|
t.text "body", :null => false
|
|
84
83
|
t.integer "position"
|
|
85
84
|
t.string "locale", :default => "en"
|
|
86
|
-
t.datetime "created_at"
|
|
87
|
-
t.datetime "updated_at"
|
|
85
|
+
t.datetime "created_at", :null => false
|
|
86
|
+
t.datetime "updated_at", :null => false
|
|
88
87
|
end
|
|
89
88
|
|
|
90
89
|
add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
|
|
@@ -98,8 +97,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
98
97
|
t.integer "message_request_id"
|
|
99
98
|
t.string "state"
|
|
100
99
|
t.integer "parent_id"
|
|
101
|
-
t.datetime "created_at"
|
|
102
|
-
t.datetime "updated_at"
|
|
100
|
+
t.datetime "created_at", :null => false
|
|
101
|
+
t.datetime "updated_at", :null => false
|
|
103
102
|
t.integer "lft"
|
|
104
103
|
t.integer "rgt"
|
|
105
104
|
t.integer "depth"
|
|
@@ -115,8 +114,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
115
114
|
t.text "display_name"
|
|
116
115
|
t.text "note"
|
|
117
116
|
t.integer "position"
|
|
118
|
-
t.datetime "created_at"
|
|
119
|
-
t.datetime "updated_at"
|
|
117
|
+
t.datetime "created_at", :null => false
|
|
118
|
+
t.datetime "updated_at", :null => false
|
|
120
119
|
end
|
|
121
120
|
|
|
122
121
|
create_table "patrons", :force => true do |t|
|
|
@@ -132,8 +131,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
132
131
|
t.string "full_name"
|
|
133
132
|
t.text "full_name_transcription"
|
|
134
133
|
t.text "full_name_alternative"
|
|
135
|
-
t.datetime "created_at"
|
|
136
|
-
t.datetime "updated_at"
|
|
134
|
+
t.datetime "created_at", :null => false
|
|
135
|
+
t.datetime "updated_at", :null => false
|
|
137
136
|
t.datetime "deleted_at"
|
|
138
137
|
t.string "zip_code_1"
|
|
139
138
|
t.string "zip_code_2"
|
|
@@ -180,8 +179,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
180
179
|
t.text "display_name"
|
|
181
180
|
t.text "note"
|
|
182
181
|
t.integer "position"
|
|
183
|
-
t.datetime "created_at"
|
|
184
|
-
t.datetime "updated_at"
|
|
182
|
+
t.datetime "created_at", :null => false
|
|
183
|
+
t.datetime "updated_at", :null => false
|
|
185
184
|
end
|
|
186
185
|
|
|
187
186
|
create_table "user_groups", :force => true do |t|
|
|
@@ -189,15 +188,15 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
189
188
|
t.text "display_name"
|
|
190
189
|
t.text "note"
|
|
191
190
|
t.integer "position"
|
|
192
|
-
t.datetime "created_at"
|
|
193
|
-
t.datetime "updated_at"
|
|
191
|
+
t.datetime "created_at", :null => false
|
|
192
|
+
t.datetime "updated_at", :null => false
|
|
194
193
|
end
|
|
195
194
|
|
|
196
195
|
create_table "user_has_roles", :force => true do |t|
|
|
197
196
|
t.integer "user_id"
|
|
198
197
|
t.integer "role_id"
|
|
199
|
-
t.datetime "created_at"
|
|
200
|
-
t.datetime "updated_at"
|
|
198
|
+
t.datetime "created_at", :null => false
|
|
199
|
+
t.datetime "updated_at", :null => false
|
|
201
200
|
end
|
|
202
201
|
|
|
203
202
|
create_table "users", :force => true do |t|
|
|
@@ -207,8 +206,8 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
|
|
|
207
206
|
t.text "note"
|
|
208
207
|
t.string "locale"
|
|
209
208
|
t.string "user_number"
|
|
210
|
-
t.datetime "created_at"
|
|
211
|
-
t.datetime "updated_at"
|
|
209
|
+
t.datetime "created_at", :null => false
|
|
210
|
+
t.datetime "updated_at", :null => false
|
|
212
211
|
t.string "email", :default => "", :null => false
|
|
213
212
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
|
214
213
|
t.string "reset_password_token"
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -1,226 +1,106 @@
|
|
|
1
|
-
[1m[32mSOLR Request (1.5ms)[0m [ path=#<RSolr::Client:0x007feca4acdf30> parameters={data: [1m[1m<?xml version="1.0" encoding="UTF-8"?><delete><query>type:Message</query></delete>[0m, headers: [1m[1m{"Content-Type"=>"text/xml"}[0m, method: [1m[1mpost[0m, params: [1m[1m{:wt=>:ruby}[0m, query: [1m[1mwt=ruby[0m, path: [1m[1mupdate[0m, uri: [1m[1mhttp://localhost:8982/solr/update?wt=ruby[0m} ]
|
|
2
|
-
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSolr::Connection instead. (called from <top (required)> at /Users/kosuke/enju_message/spec/dummy/config/environment.rb:5)
|
|
3
|
-
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSolr::Connection instead. (called from <top (required)> at /Users/kosuke/enju_message/spec/dummy/config/environment.rb:5)
|
|
4
1
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
5
|
-
[1m[35m (
|
|
6
|
-
[1m[36m (0.
|
|
7
|
-
[1m[35m (1.
|
|
2
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
|
3
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
|
4
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
8
5
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
9
|
-
Migrating to CreatePatrons (1)
|
|
10
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
11
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "patrons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_name" varchar(255), "middle_name" varchar(255), "first_name" varchar(255), "last_name_transcription" varchar(255), "middle_name_transcription" varchar(255), "first_name_transcription" varchar(255), "corporate_name" varchar(255), "corporate_name_transcription" varchar(255), "full_name" varchar(255), "full_name_transcription" text, "full_name_alternative" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "deleted_at" datetime, "zip_code_1" varchar(255), "zip_code_2" varchar(255), "address_1" text, "address_2" text, "address_1_note" text, "address_2_note" text, "telephone_number_1" varchar(255), "telephone_number_2" varchar(255), "fax_number_1" varchar(255), "fax_number_2" varchar(255), "other_designation" text, "place" text, "postal_code" varchar(255), "street" text, "locality" text, "region" text, "date_of_birth" datetime, "date_of_death" datetime, "language_id" integer DEFAULT 1 NOT NULL, "country_id" integer DEFAULT 1 NOT NULL, "patron_type_id" integer DEFAULT 1 NOT NULL, "lock_version" integer DEFAULT 0 NOT NULL, "note" text, "creates_count" integer DEFAULT 0 NOT NULL, "realizes_count" integer DEFAULT 0 NOT NULL, "produces_count" integer DEFAULT 0 NOT NULL, "owns_count" integer DEFAULT 0 NOT NULL, "required_role_id" integer DEFAULT 1 NOT NULL, "required_score" integer DEFAULT 0 NOT NULL, "state" varchar(255), "email" text, "url" text) [0m
|
|
12
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("patrons")
|
|
13
|
-
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "index_patrons_on_user_id" ON "patrons" ("user_id")[0m
|
|
14
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("patrons")
|
|
15
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_user_id')[0m
|
|
16
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_patrons_on_language_id" ON "patrons" ("language_id")
|
|
17
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("patrons")[0m
|
|
18
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_language_id')
|
|
19
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_user_id')[0m
|
|
20
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_patrons_on_country_id" ON "patrons" ("country_id")
|
|
21
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("patrons")[0m
|
|
22
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_country_id')
|
|
23
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_language_id')[0m
|
|
24
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_user_id')
|
|
25
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_patrons_on_required_role_id" ON "patrons" ("required_role_id")[0m
|
|
26
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("patrons")
|
|
27
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_required_role_id')[0m
|
|
28
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_country_id')
|
|
29
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_language_id')[0m
|
|
30
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_user_id')
|
|
31
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_patrons_on_full_name" ON "patrons" ("full_name")[0m
|
|
32
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('1')
|
|
33
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
|
34
|
-
Migrating to CreateLibraryGroups (80)
|
|
35
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
36
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "use_dsbl" boolean DEFAULT 'f' NOT NULL, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
37
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("library_groups")
|
|
38
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")[0m
|
|
39
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('80')
|
|
40
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
41
6
|
Migrating to CreateMessageTemplates (149)
|
|
42
|
-
[1m[35m (0.
|
|
43
|
-
[1m[36m (0.
|
|
44
|
-
[1m[35m (0.
|
|
45
|
-
[1m[36m (0.
|
|
46
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('149')
|
|
47
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
7
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "message_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" varchar(255) NOT NULL, "title" text NOT NULL, "body" text NOT NULL, "position" integer, "locale" varchar(255) DEFAULT 'en', "created_at" datetime, "updated_at" datetime)
|
|
8
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("message_templates")[0m
|
|
9
|
+
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_message_templates_on_status" ON "message_templates" ("status")
|
|
10
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('149')[0m
|
|
48
11
|
Migrating to CreateMessages (154)
|
|
49
|
-
[1m[35m (0.
|
|
50
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "read_at" datetime, "receiver_id" integer, "sender_id" integer, "subject" varchar(255) NOT NULL, "body" text, "message_request_id" integer, "state" varchar(255), "parent_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
51
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("messages")
|
|
52
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_messages_on_sender_id" ON "messages" ("sender_id")[0m
|
|
53
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("messages")
|
|
54
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_sender_id')[0m
|
|
55
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_messages_on_receiver_id" ON "messages" ("receiver_id")
|
|
12
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "read_at" datetime, "receiver_id" integer, "sender_id" integer, "subject" varchar(255) NOT NULL, "body" text, "message_request_id" integer, "state" varchar(255), "parent_id" integer, "created_at" datetime, "updated_at" datetime)
|
|
56
13
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("messages")[0m
|
|
57
|
-
[1m[35m (0.
|
|
58
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_sender_id')[0m
|
|
59
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_messages_on_message_request_id" ON "messages" ("message_request_id")
|
|
14
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_messages_on_sender_id" ON "messages" ("sender_id")
|
|
60
15
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("messages")[0m
|
|
61
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('
|
|
16
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_sender_id')
|
|
17
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_messages_on_receiver_id" ON "messages" ("receiver_id")[0m
|
|
18
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("messages")
|
|
62
19
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_receiver_id')[0m
|
|
63
20
|
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_sender_id')
|
|
64
|
-
[1m[36m (0.
|
|
65
|
-
[1m[35m (0.
|
|
66
|
-
[1m[36m (
|
|
21
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_messages_on_message_request_id" ON "messages" ("message_request_id")[0m
|
|
22
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("messages")
|
|
23
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_message_request_id')[0m
|
|
24
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_receiver_id')
|
|
25
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_sender_id')[0m
|
|
26
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_messages_on_parent_id" ON "messages" ("parent_id")
|
|
27
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('154')[0m
|
|
67
28
|
Migrating to CreateMessageRequests (20080819181903)
|
|
68
|
-
[1m[35m (0.
|
|
69
|
-
[1m[36m (0.
|
|
70
|
-
[1m[35m (0.
|
|
71
|
-
[1m[36m (0.
|
|
72
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20080819181903')
|
|
73
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
74
|
-
Migrating to CreatePatronTypes (20080905191442)
|
|
75
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
76
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "patron_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "note" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
77
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20080905191442')
|
|
78
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
79
|
-
Migrating to AddAdminNetworksToLibraryGroup (20100211105551)
|
|
80
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
81
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "library_groups" ADD "admin_networks" text[0m
|
|
82
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20100211105551')
|
|
83
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
84
|
-
Migrating to AddAllowBookmarkExternalUrlToLibraryGroup (20100222124420)
|
|
85
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
86
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "library_groups" ADD "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL[0m
|
|
87
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20100222124420')
|
|
88
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
89
|
-
Migrating to CreateDelayedJobs (20100527113752)
|
|
90
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
91
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "handler" text, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
92
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("delayed_jobs")
|
|
93
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m
|
|
94
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20100527113752')
|
|
95
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
96
|
-
Migrating to AddPositionToLibraryGroup (20110115022329)
|
|
97
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
98
|
-
[1m[36m (0.6ms)[0m [1mALTER TABLE "library_groups" ADD "position" integer[0m
|
|
99
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110115022329')
|
|
100
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
|
101
|
-
Migrating to AddUrlToLibraryGroup (20110222073537)
|
|
102
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
103
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "library_groups" ADD "url" varchar(255) DEFAULT 'http://localhost:3000/'[0m
|
|
104
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110222073537')
|
|
105
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
29
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "message_requests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sender_id" integer, "receiver_id" integer, "message_template_id" integer, "sent_at" datetime, "deleted_at" datetime, "body" text, "state" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
30
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("message_requests")[0m
|
|
31
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_message_requests_on_state" ON "message_requests" ("state")
|
|
32
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20080819181903')[0m
|
|
106
33
|
Migrating to AddLftAndRgtToMessage (20110913115320)
|
|
107
|
-
[1m[35m (0.
|
|
108
|
-
[1m[36m (0.
|
|
109
|
-
[1m[35m (0.
|
|
110
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110913115320')[0m
|
|
111
|
-
[1m[35m (0.8ms)[0m commit transaction
|
|
112
|
-
Migrating to RemoveDsblFromLibraryGroup (20111020063828)
|
|
113
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
114
|
-
[1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "altered_library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "use_dsbl" boolean DEFAULT 'f' NOT NULL, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
|
|
115
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("library_groups")[0m
|
|
116
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_library_groups_on_short_name')
|
|
117
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_library_groups")[0m
|
|
118
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "temp_index_altered_library_groups_on_short_name" ON "altered_library_groups" ("short_name")
|
|
119
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "library_groups"[0m
|
|
120
|
-
[1m[35m (0.2ms)[0m DROP TABLE "library_groups"
|
|
121
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/') [0m
|
|
122
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("altered_library_groups")
|
|
123
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('temp_index_altered_library_groups_on_short_name')[0m
|
|
124
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("library_groups")
|
|
125
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")[0m
|
|
126
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "altered_library_groups"
|
|
127
|
-
[1m[36m (0.5ms)[0m [1mDROP TABLE "altered_library_groups"[0m
|
|
128
|
-
[1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "altered_library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
|
|
129
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("library_groups")[0m
|
|
130
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_library_groups_on_short_name')
|
|
131
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_library_groups")[0m
|
|
132
|
-
[1m[35m (0.2ms)[0m CREATE INDEX "temp_index_altered_library_groups_on_short_name" ON "altered_library_groups" ("short_name")
|
|
133
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "library_groups"[0m
|
|
134
|
-
[1m[35m (0.5ms)[0m DROP TABLE "library_groups"
|
|
135
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/') [0m
|
|
136
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("altered_library_groups")
|
|
137
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('temp_index_altered_library_groups_on_short_name')[0m
|
|
138
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("library_groups")
|
|
139
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")[0m
|
|
140
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "altered_library_groups"
|
|
141
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_library_groups"[0m
|
|
142
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111020063828')
|
|
143
|
-
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
|
34
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "messages" ADD "lft" integer
|
|
35
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "messages" ADD "rgt" integer[0m
|
|
36
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110913115320')
|
|
144
37
|
Migrating to CreateLanguages (20111201121636)
|
|
145
|
-
[1m[
|
|
146
|
-
[1m[
|
|
147
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201121636')
|
|
148
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
38
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "native_name" varchar(255), "display_name" text, "iso_639_1" varchar(255), "iso_639_2" varchar(255), "iso_639_3" varchar(255), "note" text, "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
39
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201121636')
|
|
149
40
|
Migrating to CreateRoles (20111201121844)
|
|
150
|
-
[1m[
|
|
151
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "display_name" text, "note" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
41
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "display_name" text, "note" text, "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
152
42
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201121844')
|
|
153
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
154
43
|
Migrating to CreateUsers (20111201155456)
|
|
155
|
-
[1m[
|
|
156
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "required_role_id" integer, "username" varchar(255), "note" text, "locale" varchar(255), "user_number" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
44
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "required_role_id" integer, "username" varchar(255), "note" text, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
157
45
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201155456')
|
|
158
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
159
46
|
Migrating to AddDeviseToUsers (20111201155513)
|
|
160
|
-
[1m[
|
|
161
|
-
|
|
47
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
48
|
+
Migrating to CreateMessageTemplates (149)
|
|
49
|
+
Migrating to CreateMessages (154)
|
|
50
|
+
Migrating to CreateMessageRequests (20080819181903)
|
|
51
|
+
Migrating to AddLftAndRgtToMessage (20110913115320)
|
|
52
|
+
Migrating to CreateLanguages (20111201121636)
|
|
53
|
+
Migrating to CreateRoles (20111201121844)
|
|
54
|
+
Migrating to CreateUsers (20111201155456)
|
|
55
|
+
Migrating to AddDeviseToUsers (20111201155513)
|
|
56
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
|
57
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
58
|
+
Migrating to CreateMessageTemplates (149)
|
|
59
|
+
Migrating to CreateMessages (154)
|
|
60
|
+
Migrating to CreateMessageRequests (20080819181903)
|
|
61
|
+
Migrating to AddLftAndRgtToMessage (20110913115320)
|
|
62
|
+
Migrating to CreateLanguages (20111201121636)
|
|
63
|
+
Migrating to CreateRoles (20111201121844)
|
|
64
|
+
Migrating to CreateUsers (20111201155456)
|
|
65
|
+
Migrating to AddDeviseToUsers (20111201155513)
|
|
66
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
|
67
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "users" ADD "email" varchar(255) DEFAULT '' NOT NULL[0m
|
|
162
68
|
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "encrypted_password" varchar(128) DEFAULT '' NOT NULL
|
|
163
69
|
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "reset_password_token" varchar(255)[0m
|
|
164
70
|
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "reset_password_sent_at" datetime
|
|
165
71
|
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "remember_created_at" datetime[0m
|
|
166
|
-
[1m[35m (0.
|
|
72
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "users" ADD "sign_in_count" integer DEFAULT 0
|
|
167
73
|
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "current_sign_in_at" datetime[0m
|
|
168
74
|
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "last_sign_in_at" datetime
|
|
169
75
|
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "current_sign_in_ip" varchar(255)[0m
|
|
170
76
|
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "last_sign_in_ip" varchar(255)
|
|
171
77
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
|
172
|
-
[1m[35m (0.
|
|
78
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_users_on_email" ON "users" ("email")
|
|
173
79
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
|
174
80
|
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
|
175
|
-
[1m[36m (0.
|
|
81
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
|
176
82
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201155513')
|
|
177
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
178
83
|
Migrating to CreateUserGroups (20111201163342)
|
|
179
|
-
[1m[
|
|
180
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "display_name" text, "note" text, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
84
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "display_name" text, "note" text, "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
181
85
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201163342')
|
|
182
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
183
86
|
Migrating to CreateUserHasRoles (20111201163718)
|
|
184
|
-
[1m[
|
|
185
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "user_has_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
87
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_has_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
186
88
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201163718')
|
|
187
|
-
[1m[36m (
|
|
188
|
-
|
|
189
|
-
[1m[
|
|
190
|
-
[1m[
|
|
191
|
-
[1m[
|
|
192
|
-
[1m[
|
|
193
|
-
|
|
194
|
-
[1m[35m (0.
|
|
195
|
-
[1m[36m (0.
|
|
196
|
-
[1m[35m (0.
|
|
197
|
-
[1m[36m (0.
|
|
198
|
-
[1m[35m (0.
|
|
199
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
200
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("delayed_jobs")
|
|
201
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('delayed_jobs_priority')[0m
|
|
202
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("languages")
|
|
203
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("library_groups")[0m
|
|
204
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_library_groups_on_short_name')
|
|
205
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("message_requests")[0m
|
|
206
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_message_requests_on_state')
|
|
207
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("message_templates")[0m
|
|
208
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_message_templates_on_status')
|
|
209
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("messages")[0m
|
|
210
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_parent_id')
|
|
211
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_message_request_id')[0m
|
|
212
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_receiver_id')
|
|
213
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_sender_id')[0m
|
|
214
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("patron_types")
|
|
215
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("patrons")[0m
|
|
216
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_full_name')
|
|
217
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_required_role_id')[0m
|
|
218
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_country_id')
|
|
219
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_patrons_on_language_id')[0m
|
|
220
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_patrons_on_user_id')
|
|
89
|
+
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
|
90
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
|
91
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("languages")[0m
|
|
92
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("message_requests")
|
|
93
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_message_requests_on_state')[0m
|
|
94
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("message_templates")
|
|
95
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_message_templates_on_status')[0m
|
|
96
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("messages")
|
|
97
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_parent_id')[0m
|
|
98
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_message_request_id')
|
|
99
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_messages_on_receiver_id')[0m
|
|
100
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_messages_on_sender_id')
|
|
221
101
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("roles")[0m
|
|
222
102
|
[1m[35m (0.0ms)[0m PRAGMA index_list("user_groups")
|
|
223
103
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_has_roles")[0m
|
|
224
|
-
[1m[35m (0.
|
|
104
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
|
225
105
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
|
226
106
|
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|