data_fabric 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +10 -0
- data/README.rdoc +1 -0
- data/Rakefile +13 -11
- data/{example22 → example23}/Rakefile +0 -0
- data/{example22 → example23}/app/controllers/accounts_controller.rb +0 -0
- data/{example22/app/controllers/application.rb → example23/app/controllers/application_controller.rb} +0 -0
- data/{example22 → example23}/app/controllers/figments_controller.rb +0 -0
- data/{example22 → example23}/app/helpers/application_helper.rb +0 -0
- data/{example22 → example23}/app/models/account.rb +0 -0
- data/{example22 → example23}/app/models/figment.rb +0 -0
- data/{example22 → example23}/app/views/accounts/index.html.erb +0 -0
- data/{example22 → example23}/app/views/layouts/application.html.erb +0 -0
- data/{example22 → example23}/config/boot.rb +0 -0
- data/{example22 → example23}/config/database.yml +0 -0
- data/{example22 → example23}/config/environment.rb +2 -2
- data/{example22 → example23}/config/environments/development.rb +0 -0
- data/{example22 → example23}/config/environments/production.rb +0 -0
- data/{example22 → example23}/config/environments/test.rb +0 -0
- data/{example22 → example23}/config/initializers/inflections.rb +0 -0
- data/{example22 → example23}/config/initializers/mime_types.rb +0 -0
- data/{example22 → example23}/config/initializers/new_rails_defaults.rb +0 -0
- data/{example22 → example23}/config/locales/en.yml +0 -0
- data/{example22 → example23}/config/routes.rb +0 -0
- data/example23/db/development.sqlite3 +0 -0
- data/{example22 → example23}/db/migrate/20080702154628_create_accounts.rb +0 -0
- data/{example22 → example23}/db/migrate/20080702154820_create_figments.rb +0 -0
- data/example23/db/s0_development.sqlite3 +0 -0
- data/example23/db/s0_test.sqlite3 +0 -0
- data/example23/db/s1_development.sqlite3 +0 -0
- data/example23/db/s1_test.sqlite3 +0 -0
- data/example23/db/schema.rb +28 -0
- data/example23/db/test.sqlite3 +0 -0
- data/example23/log/development.log +295 -0
- data/example23/log/test.log +551 -0
- data/{example22 → example23}/public/404.html +0 -0
- data/{example22 → example23}/public/422.html +0 -0
- data/{example22 → example23}/public/500.html +0 -0
- data/{example22 → example23}/public/dispatch.cgi +0 -0
- data/{example22 → example23}/public/dispatch.fcgi +0 -0
- data/{example22 → example23}/public/dispatch.rb +0 -0
- data/{example22 → example23}/public/favicon.ico +0 -0
- data/{example22 → example23}/public/images/rails.png +0 -0
- data/{example22 → example23}/public/index.html +0 -0
- data/{example22 → example23}/public/robots.txt +0 -0
- data/{example22 → example23}/script/about +0 -0
- data/{example22 → example23}/script/console +0 -0
- data/{example22 → example23}/script/dbconsole +0 -0
- data/{example22 → example23}/script/destroy +0 -0
- data/{example22 → example23}/script/generate +0 -0
- data/{example22 → example23}/script/performance/benchmarker +0 -0
- data/{example22 → example23}/script/performance/profiler +0 -0
- data/{example22 → example23}/script/performance/request +0 -0
- data/{example22 → example23}/script/plugin +0 -0
- data/{example22 → example23}/script/process/inspector +0 -0
- data/{example22 → example23}/script/process/reaper +0 -0
- data/{example22 → example23}/script/process/spawner +0 -0
- data/{example22 → example23}/script/runner +0 -0
- data/{example22 → example23}/script/server +0 -0
- data/{example22 → example23}/test/fixtures/accounts.yml +0 -0
- data/{example22 → example23}/test/functional/accounts_controller_test.rb +0 -0
- data/{example22 → example23}/test/integration/account_figments_test.rb +0 -0
- data/{example22 → example23}/test/performance/browsing_test.rb +0 -0
- data/example23/test/test_helper.rb +3 -0
- data/example23/vendor/plugins/data_fabric/init.rb +3 -0
- data/example23/vendor/plugins/data_fabric/lib/data_fabric.rb +106 -0
- data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar20.rb +133 -0
- data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar22.rb +181 -0
- data/example23/vendor/plugins/data_fabric/lib/data_fabric/dash.rb +20 -0
- data/example23/vendor/plugins/data_fabric/lib/data_fabric/version.rb +7 -0
- data/lib/data_fabric/ar22.rb +2 -2
- data/lib/data_fabric/version.rb +1 -6
- data/test/connection_test.rb +1 -1
- data/test/database_test.rb +1 -1
- data/test/shard_test.rb +1 -1
- data/test/thread_test.rb +1 -1
- metadata +134 -126
- data/VERSION.yml +0 -4
- data/example22/test/test_helper.rb +0 -38
data/CHANGELOG
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
DataFabric changelog
|
2
2
|
|
3
|
+
v1.2.7 - 2010-08-10
|
4
|
+
|
5
|
+
- NO FUNCTIONAL CHANGES.
|
6
|
+
- Fix test suite under Ruby 1.9.2.
|
7
|
+
- Update example22 application to example23 and Rails 2.3.
|
8
|
+
|
9
|
+
v1.2.6 - Never released
|
10
|
+
|
11
|
+
- STI fixes.
|
12
|
+
|
3
13
|
v1.2.5 - 2009-03-28
|
4
14
|
|
5
15
|
- data_fabric should now work as a gem or plugin.
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,25 +1,28 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
3
|
begin
|
4
|
+
require './lib/data_fabric/version'
|
4
5
|
require 'jeweler'
|
5
|
-
|
6
6
|
Jeweler::Tasks.new do |p|
|
7
|
+
p.version = DataFabric::Version::STRING
|
7
8
|
p.authors = ["Mike Perham"]
|
8
9
|
p.email = 'mperham@gmail.com'
|
9
|
-
p.rubyforge_project = 'fiveruns'
|
10
10
|
p.summary = 'Sharding and replication support for ActiveRecord 2.x'
|
11
11
|
p.homepage = "http://github.com/mperham/data_fabric"
|
12
12
|
p.name = "data_fabric"
|
13
|
-
p.files = FileList['*.rdoc', 'Rakefile', '
|
13
|
+
p.files = FileList['*.rdoc', 'Rakefile', 'init.rb', 'CHANGELOG', "{lib,test,rails,example,example23}/**/*", ]
|
14
|
+
p.add_development_dependency 'jeweler'
|
15
|
+
p.add_development_dependency 'flexmock'
|
14
16
|
end
|
15
|
-
rescue LoadError
|
16
|
-
puts "Jeweler, or one of its dependencies, is not available. Install it with:
|
17
|
+
rescue LoadError => le
|
18
|
+
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler: #{le.message}"
|
17
19
|
end
|
18
20
|
|
19
21
|
require 'rake/testtask'
|
20
22
|
|
21
23
|
Rake::TestTask.new do |t|
|
22
24
|
t.verbose = true
|
25
|
+
t.libs << 'test' << 'rails'
|
23
26
|
t.test_files = FileList['test/*_test.rb']
|
24
27
|
end
|
25
28
|
|
@@ -28,13 +31,12 @@ task :gemspec => [:clean]
|
|
28
31
|
task :clean do
|
29
32
|
FileUtils.rm_f Dir['*.gem']
|
30
33
|
FileUtils.rm_f Dir['test/*.db']
|
31
|
-
FileUtils.rm_rf 'pkg'
|
32
34
|
FileUtils.rm_rf 'coverage'
|
33
35
|
end
|
34
36
|
|
35
37
|
desc "Install gem locally"
|
36
38
|
task :installer do
|
37
|
-
sh "
|
39
|
+
sh "gem install data_fabric-*.gem"
|
38
40
|
end
|
39
41
|
|
40
42
|
task :gem do
|
@@ -43,8 +45,8 @@ end
|
|
43
45
|
|
44
46
|
desc "Push gem to RubyForge"
|
45
47
|
task :publish => [:clean, :gemspec, :gem, :installer] do
|
46
|
-
require 'lib/data_fabric/version'
|
47
|
-
sh "
|
48
|
+
require './lib/data_fabric/version'
|
49
|
+
sh "gem push data_fabric-#{DataFabric::Version::STRING}.gem"
|
48
50
|
end
|
49
51
|
|
50
52
|
|
@@ -124,7 +126,7 @@ end
|
|
124
126
|
|
125
127
|
# Test coverage
|
126
128
|
begin
|
127
|
-
gem '
|
129
|
+
gem 'rcov' rescue nil
|
128
130
|
require 'rcov/rcovtask'
|
129
131
|
|
130
132
|
desc "Generate coverage numbers for all locally installed versions of ActiveRecord"
|
@@ -144,5 +146,5 @@ begin
|
|
144
146
|
t.rcov_opts = ['--text-report', '--exclude', "test,Library,#{ENV['GEM_HOME']}", '--sort', 'coverage']
|
145
147
|
end
|
146
148
|
rescue LoadError => e
|
147
|
-
puts 'Test coverage support requires \'gem install
|
149
|
+
puts 'Test coverage support requires \'gem install rcov\''
|
148
150
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# ENV['RAILS_ENV'] ||= 'production'
|
6
6
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
8
|
-
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
|
8
|
+
#RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
|
9
9
|
|
10
10
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
11
11
|
require File.join(File.dirname(__FILE__), 'boot')
|
@@ -55,7 +55,7 @@ Rails::Initializer.run do |config|
|
|
55
55
|
# Make sure the secret is at least 30 characters and all random,
|
56
56
|
# no regular words or you'll be exposed to dictionary attacks.
|
57
57
|
config.action_controller.session = {
|
58
|
-
:
|
58
|
+
:key => '_example22_session',
|
59
59
|
:secret => 'a726ae17b1f84e51e5ae5f8bc861a92dcffb188a7a1e9cb88c0c513ce9722b0983ee718c79741260669bfbc69b68044129fc11d8792b90fa912d719992cb9574'
|
60
60
|
}
|
61
61
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
2
|
+
# please use the migrations feature of Active Record to incrementally modify your database, and
|
3
|
+
# then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
|
6
|
+
# to create the application database on another system, you should be using db:schema:load, not running
|
7
|
+
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
8
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
9
|
+
#
|
10
|
+
# It's strongly recommended to check this file into your version control system.
|
11
|
+
|
12
|
+
ActiveRecord::Schema.define(:version => 20080702154820) do
|
13
|
+
|
14
|
+
create_table "accounts", :force => true do |t|
|
15
|
+
t.string "name"
|
16
|
+
t.string "shard"
|
17
|
+
t.datetime "created_at"
|
18
|
+
t.datetime "updated_at"
|
19
|
+
end
|
20
|
+
|
21
|
+
create_table "figments", :force => true do |t|
|
22
|
+
t.integer "account_id"
|
23
|
+
t.integer "value"
|
24
|
+
t.datetime "created_at"
|
25
|
+
t.datetime "updated_at"
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
Binary file
|
@@ -0,0 +1,295 @@
|
|
1
|
+
# Logfile created on 2010-08-10 12:53:16 -0700 [4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
2
|
+
FROM sqlite_master
|
3
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4
|
+
[0m
|
5
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
6
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
8
|
+
[4;36;1mSQL (1.0ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
10
|
+
FROM sqlite_master
|
11
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
12
|
+
[0m
|
13
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
|
14
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
15
|
+
FROM sqlite_master
|
16
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
17
|
+
[0m
|
18
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
19
|
+
Migrating to CreateAccounts (20080702154628)
|
20
|
+
[4;36;1mSQL (0.0ms)[0m [0;1mselect sqlite_version(*)[0m
|
21
|
+
[4;35;1mSQL (0.7ms)[0m [0mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
22
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20080702154628')[0m
|
23
|
+
Migrating to CreateFigments (20080702154820)
|
24
|
+
[4;35;1mSQL (0.3ms)[0m [0mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
25
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20080702154820')[0m
|
26
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
27
|
+
FROM sqlite_master
|
28
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
29
|
+
[0m
|
30
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
|
31
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
32
|
+
FROM sqlite_master
|
33
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
34
|
+
[0m
|
35
|
+
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("accounts")[0m
|
36
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("figments")[0m
|
37
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
38
|
+
FROM sqlite_master
|
39
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
40
|
+
[0m
|
41
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
42
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
43
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
44
|
+
FROM sqlite_master
|
45
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
46
|
+
[0m
|
47
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
48
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
49
|
+
FROM sqlite_master
|
50
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
51
|
+
[0m
|
52
|
+
[4;36;1mSQL (1.1ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
53
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
54
|
+
FROM sqlite_master
|
55
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
56
|
+
[0m
|
57
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
58
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
59
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
60
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
61
|
+
FROM sqlite_master
|
62
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
63
|
+
[0m
|
64
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
65
|
+
[4;35;1mSQL (1.3ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
66
|
+
[4;36;1mSQL (2.3ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
67
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
68
|
+
FROM sqlite_master
|
69
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
70
|
+
[0m
|
71
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
72
|
+
Migrating to CreateAccounts (20080702154628)
|
73
|
+
Migrating to CreateFigments (20080702154820)
|
74
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
|
75
|
+
[4;35;1mSQL (20.7ms)[0m [0m SELECT name
|
76
|
+
FROM sqlite_master
|
77
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
78
|
+
[0m
|
79
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT version FROM schema_migrations[0m
|
80
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
81
|
+
FROM sqlite_master
|
82
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
83
|
+
[0m
|
84
|
+
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("accounts")[0m
|
85
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("figments")[0m
|
86
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
87
|
+
FROM sqlite_master
|
88
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
89
|
+
[0m
|
90
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
91
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
92
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
93
|
+
FROM sqlite_master
|
94
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
95
|
+
[0m
|
96
|
+
[4;36;1mSQL (1.7ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
97
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
98
|
+
FROM sqlite_master
|
99
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
100
|
+
[0m
|
101
|
+
[4;36;1mSQL (1.4ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
102
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
103
|
+
FROM sqlite_master
|
104
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
105
|
+
[0m
|
106
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
107
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
108
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
109
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
110
|
+
FROM sqlite_master
|
111
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
112
|
+
[0m
|
113
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
114
|
+
[4;35;1mSQL (1.5ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
115
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
116
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
117
|
+
FROM sqlite_master
|
118
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
119
|
+
[0m
|
120
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
121
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
122
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
123
|
+
FROM sqlite_master
|
124
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
125
|
+
[0m
|
126
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
127
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
128
|
+
FROM sqlite_master
|
129
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
130
|
+
[0m
|
131
|
+
[4;36;1mSQL (1.1ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
132
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
133
|
+
FROM sqlite_master
|
134
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
135
|
+
[0m
|
136
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
137
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
138
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
139
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
140
|
+
FROM sqlite_master
|
141
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
142
|
+
[0m
|
143
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
144
|
+
[4;35;1mSQL (1.3ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
145
|
+
[4;36;1mSQL (2.2ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
146
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
147
|
+
FROM sqlite_master
|
148
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
149
|
+
[0m
|
150
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
151
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
152
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
153
|
+
FROM sqlite_master
|
154
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
155
|
+
[0m
|
156
|
+
[4;36;1mSQL (1.4ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
157
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
158
|
+
FROM sqlite_master
|
159
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
160
|
+
[0m
|
161
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
162
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
163
|
+
FROM sqlite_master
|
164
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
165
|
+
[0m
|
166
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
167
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
168
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
169
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
170
|
+
FROM sqlite_master
|
171
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
172
|
+
[0m
|
173
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
174
|
+
[4;35;1mSQL (1.4ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
175
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
176
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
177
|
+
FROM sqlite_master
|
178
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
179
|
+
[0m
|
180
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
181
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
182
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
183
|
+
FROM sqlite_master
|
184
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
185
|
+
[0m
|
186
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
187
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
188
|
+
FROM sqlite_master
|
189
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
190
|
+
[0m
|
191
|
+
[4;36;1mSQL (1.1ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
192
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
193
|
+
FROM sqlite_master
|
194
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
195
|
+
[0m
|
196
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
197
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
198
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
199
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
200
|
+
FROM sqlite_master
|
201
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
202
|
+
[0m
|
203
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
204
|
+
[4;35;1mSQL (1.3ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
205
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
206
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
207
|
+
FROM sqlite_master
|
208
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
209
|
+
[0m
|
210
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
211
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
212
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
213
|
+
FROM sqlite_master
|
214
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
215
|
+
[0m
|
216
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
217
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
218
|
+
FROM sqlite_master
|
219
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
220
|
+
[0m
|
221
|
+
[4;36;1mSQL (1.0ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
222
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
223
|
+
FROM sqlite_master
|
224
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
225
|
+
[0m
|
226
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
227
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
228
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
229
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
230
|
+
FROM sqlite_master
|
231
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
232
|
+
[0m
|
233
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
234
|
+
[4;35;1mSQL (1.8ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
235
|
+
[4;36;1mSQL (1.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
236
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
237
|
+
FROM sqlite_master
|
238
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
239
|
+
[0m
|
240
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
241
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
242
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
243
|
+
FROM sqlite_master
|
244
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
245
|
+
[0m
|
246
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
247
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
248
|
+
FROM sqlite_master
|
249
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
250
|
+
[0m
|
251
|
+
[4;36;1mSQL (1.1ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
252
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
253
|
+
FROM sqlite_master
|
254
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
255
|
+
[0m
|
256
|
+
[4;36;1mSQL (1.4ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
257
|
+
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
258
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
259
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
260
|
+
FROM sqlite_master
|
261
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
262
|
+
[0m
|
263
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
264
|
+
[4;35;1mSQL (1.2ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
265
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|
266
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
267
|
+
FROM sqlite_master
|
268
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
269
|
+
[0m
|
270
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
271
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
272
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
273
|
+
FROM sqlite_master
|
274
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
275
|
+
[0m
|
276
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
277
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
278
|
+
FROM sqlite_master
|
279
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
280
|
+
[0m
|
281
|
+
[4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) [0m
|
282
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
283
|
+
FROM sqlite_master
|
284
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
285
|
+
[0m
|
286
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
287
|
+
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
|
288
|
+
[4;36;1mSQL (1.3ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
289
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
290
|
+
FROM sqlite_master
|
291
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
292
|
+
[0m
|
293
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
294
|
+
[4;35;1mSQL (1.3ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('20080702154820')[0m
|
295
|
+
[4;36;1mSQL (2.3ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('20080702154628')[0m
|