switchman 1.2.12 → 1.2.13
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.
- checksums.yaml +4 -4
- data/lib/switchman/connection_pool_proxy.rb +2 -0
- data/lib/switchman/version.rb +1 -1
- data/spec/dummy/log/test.log +811 -0
- data/spec/lib/connection_pool_proxy_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c42fe24a528e52a66863dec71ddedea418db67ef
|
4
|
+
data.tar.gz: 7bfb9e2f497bc3aa2da526c3dc935062e18de4ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caae1ea35140146f3c38105eea77d6aaef1a519b76f4f7fac844f3d783bbf9b8b570950228368334c2717df6d69af2bb19e48f671f16ae0ee1373c2335b27db4
|
7
|
+
data.tar.gz: 2da783ea1de3ebbae72703b85792ce607181edf97ef7b84928c47f649b1ddb6c72b95aa584be6ec723fc470e8a7a295d05e09d2967fbb7e4764b33f0fb313192
|
@@ -95,6 +95,8 @@ module Switchman
|
|
95
95
|
config = default_pool.spec.instance_variable_get(:@config)
|
96
96
|
if config[active_shackles_environment].is_a?(Hash)
|
97
97
|
config = config.merge(config[active_shackles_environment])
|
98
|
+
elsif config[active_shackles_environment].is_a?(Array)
|
99
|
+
config = config.merge(config[active_shackles_environment].first)
|
98
100
|
else
|
99
101
|
config = config.dup
|
100
102
|
end
|
data/lib/switchman/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -106291,3 +106291,814 @@ LINE 1: SELECT COUNT(*) FROM "users"
|
|
106291
106291
|
[1m[35m (0.2ms)[0m BEGIN
|
106292
106292
|
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1[0m [["id", 799]]
|
106293
106293
|
[1m[35m (0.1ms)[0m COMMIT
|
106294
|
+
[1m[36m (2.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106295
|
+
[1m[35mSwitchman::Shard Load (28.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106296
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106297
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106299
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106300
|
+
[1m[36mSQL (31.7ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
106301
|
+
[1m[35m (0.3ms)[0m COMMIT
|
106302
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
106303
|
+
[1m[35mSwitchman::Shard Load (1.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106304
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106305
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
|
106306
|
+
[1m[36m (1.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_821[0m [shard 821 deploy]
|
106307
|
+
[1m[35m (40.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 821 deploy]
|
106308
|
+
[1m[36m (2.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 821 deploy]
|
106309
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 821 deploy]
|
106310
|
+
Migrating to CreateUsers (20130403132607)
|
106311
|
+
[1m[36m (36.6ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106312
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 821 deploy]
|
106313
|
+
Migrating to CreateAppendages (20130411202442)
|
106314
|
+
[1m[36m (31.7ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106315
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 821 deploy]
|
106316
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106317
|
+
[1m[36m (17.5ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106318
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 821 deploy]
|
106319
|
+
Migrating to CreateDigits (20131022202028)
|
106320
|
+
[1m[36m (33.7ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106321
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 821 deploy]
|
106322
|
+
Migrating to CreateFeatures (20131206172923)
|
106323
|
+
[1m[36m (18.1ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106324
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 821 deploy]
|
106325
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106326
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 821 deploy]
|
106327
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 821 deploy]
|
106328
|
+
Migrating to CreateRoots (20140219183820)
|
106329
|
+
[1m[36m (18.2ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 821 deploy]
|
106330
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 821 deploy]
|
106331
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 821[0m [["name", "switchman_test_shard_821"]] [shard 820 master]
|
106332
|
+
[1m[35m (1.2ms)[0m COMMIT [shard 820 master]
|
106333
|
+
[1m[36mSwitchman::Shard Load (1.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 820 master]
|
106334
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 820 master]
|
106335
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id"[0m [["database_server_id", "1"], ["name", "public"]] [shard 820 master]
|
106336
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 820 master]
|
106337
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_822[0m [shard 822 deploy]
|
106338
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 822 deploy]
|
106339
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 822 deploy]
|
106340
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 822 deploy]
|
106341
|
+
Migrating to CreateUsers (20130403132607)
|
106342
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106343
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106344
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130403132607"]] [shard 822 deploy]
|
106345
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 822 deploy]
|
106346
|
+
Migrating to CreateAppendages (20130411202442)
|
106347
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106348
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106349
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202442"]] [shard 822 deploy]
|
106350
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 822 deploy]
|
106351
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106352
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106353
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106354
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202551"]] [shard 822 deploy]
|
106355
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 822 deploy]
|
106356
|
+
Migrating to CreateDigits (20131022202028)
|
106357
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106358
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106359
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131022202028"]] [shard 822 deploy]
|
106360
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 822 deploy]
|
106361
|
+
Migrating to CreateFeatures (20131206172923)
|
106362
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106363
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106364
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131206172923"]] [shard 822 deploy]
|
106365
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 822 deploy]
|
106366
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106367
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106368
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 822 deploy]
|
106369
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140123154135"]] [shard 822 deploy]
|
106370
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 822 deploy]
|
106371
|
+
Migrating to CreateRoots (20140219183820)
|
106372
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 deploy]
|
106373
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy]
|
106374
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140219183820"]] [shard 822 deploy]
|
106375
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 822 deploy]
|
106376
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 820 master]
|
106377
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 822 [["name", "switchman_test_shard_822"]] [shard 820 master]
|
106378
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 820 master]
|
106379
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [shard 820 master]
|
106380
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 820 master]
|
106381
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 820 master]
|
106382
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 820 master]
|
106383
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 820]] [shard 820 master]
|
106384
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 820 master]
|
106385
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
|
106386
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 820 master]
|
106387
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 821], ["name", "switchman_test_shard_821"]] [shard 820 master]
|
106388
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 820 master]
|
106389
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 820 master]
|
106390
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 822], ["name", "switchman_test_shard_822"]] [shard 820 master]
|
106391
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 820 master]
|
106392
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 820 master]
|
106393
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
|
106394
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 821]] [shard 820 master]
|
106395
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]
|
106396
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 master]
|
106397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [shard 820 master]
|
106398
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id"[0m [["database_server_id", "2"]] [shard 820 master]
|
106399
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [shard 820 master]
|
106400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 820 master]
|
106401
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 820 master]
|
106402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 820 master]
|
106403
|
+
[1m[35m (0.2ms)[0m ROLLBACK [shard 822 master]
|
106404
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 820 master]
|
106405
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 820 master]
|
106406
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 820 master]
|
106407
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master]
|
106408
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 822]] [shard 820 master]
|
106409
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 822 master]
|
106410
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [shard 822 master]
|
106411
|
+
[1m[35m (0.2ms)[0m ROLLBACK [shard 820 master]
|
106412
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 820 master]
|
106413
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]
|
106414
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 821]] [shard 820 master]
|
106415
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]
|
106416
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 822 master]
|
106417
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 822 master]
|
106418
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 820 master]
|
106419
|
+
[1m[35mSQL (19.8ms)[0m DELETE FROM "switchman_shards" [shard 820 master]
|
106420
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 820 master]
|
106421
|
+
[1m[35m (7.9ms)[0m DROP SCHEMA switchman_test_shard_821 CASCADE [shard 821 deploy]
|
106422
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106423
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 821]]
|
106424
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106425
|
+
[1m[35m (4.7ms)[0m DROP SCHEMA switchman_test_shard_822 CASCADE [shard 822 deploy]
|
106426
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
106427
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 822]]
|
106428
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106429
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106430
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106431
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106432
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106433
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106434
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106435
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
106436
|
+
[1m[35m (3.5ms)[0m COMMIT
|
106437
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
106438
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106440
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
|
106441
|
+
[1m[36m (0.3ms)[0m [1mCREATE SCHEMA switchman_test_shard_826[0m [shard 826 deploy]
|
106442
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 826 deploy]
|
106443
|
+
[1m[36m (8.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 826 deploy]
|
106444
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 826 deploy]
|
106445
|
+
Migrating to CreateUsers (20130403132607)
|
106446
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106447
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 826 deploy]
|
106448
|
+
Migrating to CreateAppendages (20130411202442)
|
106449
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106450
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 826 deploy]
|
106451
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106452
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106453
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 826 deploy]
|
106454
|
+
Migrating to CreateDigits (20131022202028)
|
106455
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106456
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 826 deploy]
|
106457
|
+
Migrating to CreateFeatures (20131206172923)
|
106458
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106459
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 826 deploy]
|
106460
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106461
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 826 deploy]
|
106462
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 826 deploy]
|
106463
|
+
Migrating to CreateRoots (20140219183820)
|
106464
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 826 deploy]
|
106465
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 826 deploy]
|
106466
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 826[0m [["name", "switchman_test_shard_826"]] [shard 825 master]
|
106467
|
+
[1m[35m (0.8ms)[0m COMMIT [shard 825 master]
|
106468
|
+
[1m[36mSwitchman::Shard Load (0.6ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 825 master]
|
106469
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 825 master]
|
106470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id"[0m [["database_server_id", "1"], ["name", "public"]] [shard 825 master]
|
106471
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 825 master]
|
106472
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_827[0m [shard 827 deploy]
|
106473
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 827 deploy]
|
106474
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 827 deploy]
|
106475
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 827 deploy]
|
106476
|
+
Migrating to CreateUsers (20130403132607)
|
106477
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106478
|
+
[1m[35m (2.8ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106479
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130403132607"]] [shard 827 deploy]
|
106480
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106481
|
+
Migrating to CreateAppendages (20130411202442)
|
106482
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106483
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106484
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202442"]] [shard 827 deploy]
|
106485
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106486
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106487
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106488
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106489
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202551"]] [shard 827 deploy]
|
106490
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106491
|
+
Migrating to CreateDigits (20131022202028)
|
106492
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106493
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106494
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131022202028"]] [shard 827 deploy]
|
106495
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106496
|
+
Migrating to CreateFeatures (20131206172923)
|
106497
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106498
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106499
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131206172923"]] [shard 827 deploy]
|
106500
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106501
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106503
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 827 deploy]
|
106504
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140123154135"]] [shard 827 deploy]
|
106505
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106506
|
+
Migrating to CreateRoots (20140219183820)
|
106507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 deploy]
|
106508
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy]
|
106509
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140219183820"]] [shard 827 deploy]
|
106510
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 827 deploy]
|
106511
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 825 master]
|
106512
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 827 [["name", "switchman_test_shard_827"]] [shard 825 master]
|
106513
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 825 master]
|
106514
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [shard 825 master]
|
106515
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 825 master]
|
106516
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 825 master]
|
106517
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 825 master]
|
106518
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 825]] [shard 825 master]
|
106519
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 825 master]
|
106520
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
|
106521
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 825 master]
|
106522
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 826], ["name", "switchman_test_shard_826"]] [shard 825 master]
|
106523
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [shard 825 master]
|
106524
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 825 master]
|
106525
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 827], ["name", "switchman_test_shard_827"]] [shard 825 master]
|
106526
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 825 master]
|
106527
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 825 master]
|
106528
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
|
106529
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 826]] [shard 825 master]
|
106530
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]
|
106531
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 master]
|
106532
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 827 master]
|
106533
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 825 master]
|
106534
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 825 master]
|
106535
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 825 master]
|
106536
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master]
|
106537
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 827]] [shard 825 master]
|
106538
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 827 master]
|
106539
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 825 master]
|
106540
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 825 master]
|
106541
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 825 master]
|
106542
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [shard 825 master]
|
106543
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id"[0m [["database_server_id", "2"]] [shard 825 master]
|
106544
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [shard 825 master]
|
106545
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [shard 827 master]
|
106546
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 825 master]
|
106547
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 825 master]
|
106548
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]
|
106549
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 826]] [shard 825 master]
|
106550
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]
|
106551
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 827 master]
|
106552
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 827 master]
|
106553
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 825 master]
|
106554
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [shard 825 master]
|
106555
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 825 master]
|
106556
|
+
[1m[35m (4.7ms)[0m DROP SCHEMA switchman_test_shard_826 CASCADE [shard 826 deploy]
|
106557
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106558
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 826]]
|
106559
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106560
|
+
[1m[35m (5.7ms)[0m DROP SCHEMA switchman_test_shard_827 CASCADE [shard 827 deploy]
|
106561
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
106562
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 827]]
|
106563
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
106564
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106565
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106566
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106567
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106568
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106569
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106570
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
106571
|
+
[1m[35m (6.6ms)[0m COMMIT
|
106572
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
106573
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106574
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106575
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
|
106576
|
+
[1m[36m (0.3ms)[0m [1mCREATE SCHEMA switchman_test_shard_831[0m [shard 831 deploy]
|
106577
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 831 deploy]
|
106578
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 831 deploy]
|
106579
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 831 deploy]
|
106580
|
+
Migrating to CreateUsers (20130403132607)
|
106581
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106582
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 831 deploy]
|
106583
|
+
Migrating to CreateAppendages (20130411202442)
|
106584
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106585
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 831 deploy]
|
106586
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106587
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106588
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 831 deploy]
|
106589
|
+
Migrating to CreateDigits (20131022202028)
|
106590
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106591
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 831 deploy]
|
106592
|
+
Migrating to CreateFeatures (20131206172923)
|
106593
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106594
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 831 deploy]
|
106595
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106596
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 831 deploy]
|
106597
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 831 deploy]
|
106598
|
+
Migrating to CreateRoots (20140219183820)
|
106599
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 831 deploy]
|
106600
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 831 deploy]
|
106601
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 831[0m [["name", "switchman_test_shard_831"]] [shard 830 master]
|
106602
|
+
[1m[35m (0.7ms)[0m COMMIT [shard 830 master]
|
106603
|
+
[1m[36mSwitchman::Shard Load (0.6ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 830 master]
|
106604
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 830 master]
|
106605
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id"[0m [["database_server_id", "1"], ["name", "public"]] [shard 830 master]
|
106606
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 830 master]
|
106607
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_832[0m [shard 832 deploy]
|
106608
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 832 deploy]
|
106609
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 832 deploy]
|
106610
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 832 deploy]
|
106611
|
+
Migrating to CreateUsers (20130403132607)
|
106612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106613
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106614
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130403132607"]] [shard 832 deploy]
|
106615
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 832 deploy]
|
106616
|
+
Migrating to CreateAppendages (20130411202442)
|
106617
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106618
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106619
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202442"]] [shard 832 deploy]
|
106620
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 832 deploy]
|
106621
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106622
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106623
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106624
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202551"]] [shard 832 deploy]
|
106625
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 832 deploy]
|
106626
|
+
Migrating to CreateDigits (20131022202028)
|
106627
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106628
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106629
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131022202028"]] [shard 832 deploy]
|
106630
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 832 deploy]
|
106631
|
+
Migrating to CreateFeatures (20131206172923)
|
106632
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106633
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106634
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131206172923"]] [shard 832 deploy]
|
106635
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 832 deploy]
|
106636
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106637
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106638
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 832 deploy]
|
106639
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140123154135"]] [shard 832 deploy]
|
106640
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 832 deploy]
|
106641
|
+
Migrating to CreateRoots (20140219183820)
|
106642
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 deploy]
|
106643
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy]
|
106644
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140219183820"]] [shard 832 deploy]
|
106645
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 832 deploy]
|
106646
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 830 master]
|
106647
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 832 [["name", "switchman_test_shard_832"]] [shard 830 master]
|
106648
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [shard 830 master]
|
106649
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [shard 830 master]
|
106650
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 830 master]
|
106651
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 830 master]
|
106652
|
+
[1m[36mSwitchman::Shard Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 830 master]
|
106653
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 830]] [shard 830 master]
|
106654
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 830 master]
|
106655
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
|
106656
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 830 master]
|
106657
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 831], ["name", "switchman_test_shard_831"]] [shard 830 master]
|
106658
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [shard 830 master]
|
106659
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 830 master]
|
106660
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 832], ["name", "switchman_test_shard_832"]] [shard 830 master]
|
106661
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 830 master]
|
106662
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 830 master]
|
106663
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
|
106664
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 831]] [shard 830 master]
|
106665
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]
|
106666
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 master]
|
106667
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 832 master]
|
106668
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 830 master]
|
106669
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 830 master]
|
106670
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 830 master]
|
106671
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master]
|
106672
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 832]] [shard 830 master]
|
106673
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 832 master]
|
106674
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 832 master]
|
106675
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 830 master]
|
106676
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 830 master]
|
106677
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]
|
106678
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 831]] [shard 830 master]
|
106679
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]
|
106680
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 832 master]
|
106681
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [shard 830 master]
|
106682
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id"[0m [["database_server_id", "2"]] [shard 830 master]
|
106683
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [shard 830 master]
|
106684
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 830 master]
|
106685
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 830 master]
|
106686
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 830 master]
|
106687
|
+
[1m[35m (0.2ms)[0m ROLLBACK [shard 832 master]
|
106688
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [shard 830 master]
|
106689
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [shard 830 master]
|
106690
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 830 master]
|
106691
|
+
[1m[35m (4.7ms)[0m DROP SCHEMA switchman_test_shard_831 CASCADE [shard 831 deploy]
|
106692
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106693
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 831]]
|
106694
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106695
|
+
[1m[35m (6.3ms)[0m DROP SCHEMA switchman_test_shard_832 CASCADE [shard 832 deploy]
|
106696
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
106697
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 832]]
|
106698
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106699
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106700
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106701
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106702
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106703
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106704
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106705
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
106706
|
+
[1m[35m (6.4ms)[0m COMMIT
|
106707
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
106708
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106709
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106710
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
|
106711
|
+
[1m[36m (0.3ms)[0m [1mCREATE SCHEMA switchman_test_shard_836[0m [shard 836 deploy]
|
106712
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 836 deploy]
|
106713
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 836 deploy]
|
106714
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 836 deploy]
|
106715
|
+
Migrating to CreateUsers (20130403132607)
|
106716
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106717
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 836 deploy]
|
106718
|
+
Migrating to CreateAppendages (20130411202442)
|
106719
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106720
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 836 deploy]
|
106721
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106722
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106723
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 836 deploy]
|
106724
|
+
Migrating to CreateDigits (20131022202028)
|
106725
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106726
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 836 deploy]
|
106727
|
+
Migrating to CreateFeatures (20131206172923)
|
106728
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106729
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 836 deploy]
|
106730
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106731
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 836 deploy]
|
106732
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 836 deploy]
|
106733
|
+
Migrating to CreateRoots (20140219183820)
|
106734
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 836 deploy]
|
106735
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 836 deploy]
|
106736
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 836[0m [["name", "switchman_test_shard_836"]] [shard 835 master]
|
106737
|
+
[1m[35m (0.7ms)[0m COMMIT [shard 835 master]
|
106738
|
+
[1m[36mSwitchman::Shard Load (0.8ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 835 master]
|
106739
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 835 master]
|
106740
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id"[0m [["database_server_id", "1"], ["name", "public"]] [shard 835 master]
|
106741
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 835 master]
|
106742
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_837[0m [shard 837 deploy]
|
106743
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 837 deploy]
|
106744
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 837 deploy]
|
106745
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 837 deploy]
|
106746
|
+
Migrating to CreateUsers (20130403132607)
|
106747
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106748
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106749
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130403132607"]] [shard 837 deploy]
|
106750
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 837 deploy]
|
106751
|
+
Migrating to CreateAppendages (20130411202442)
|
106752
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106753
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106754
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202442"]] [shard 837 deploy]
|
106755
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 837 deploy]
|
106756
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106757
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106758
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106759
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202551"]] [shard 837 deploy]
|
106760
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 837 deploy]
|
106761
|
+
Migrating to CreateDigits (20131022202028)
|
106762
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106763
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106764
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131022202028"]] [shard 837 deploy]
|
106765
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 837 deploy]
|
106766
|
+
Migrating to CreateFeatures (20131206172923)
|
106767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106768
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106769
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131206172923"]] [shard 837 deploy]
|
106770
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 837 deploy]
|
106771
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106772
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106773
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 837 deploy]
|
106774
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140123154135"]] [shard 837 deploy]
|
106775
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 837 deploy]
|
106776
|
+
Migrating to CreateRoots (20140219183820)
|
106777
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 deploy]
|
106778
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy]
|
106779
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140219183820"]] [shard 837 deploy]
|
106780
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 837 deploy]
|
106781
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 835 master]
|
106782
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 837 [["name", "switchman_test_shard_837"]] [shard 835 master]
|
106783
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 835 master]
|
106784
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [shard 835 master]
|
106785
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 835 master]
|
106786
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 835 master]
|
106787
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 835 master]
|
106788
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 835]] [shard 835 master]
|
106789
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 835 master]
|
106790
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
|
106791
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 835 master]
|
106792
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 836], ["name", "switchman_test_shard_836"]] [shard 835 master]
|
106793
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 835 master]
|
106794
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 835 master]
|
106795
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 837], ["name", "switchman_test_shard_837"]] [shard 835 master]
|
106796
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 835 master]
|
106797
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 835 master]
|
106798
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
|
106799
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 836]] [shard 835 master]
|
106800
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]
|
106801
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 837 master]
|
106802
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 837 master]
|
106803
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 835 master]
|
106804
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 835 master]
|
106805
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 835 master]
|
106806
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master]
|
106807
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 837]] [shard 835 master]
|
106808
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 837 master]
|
106809
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 835 master]
|
106810
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 835 master]
|
106811
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 835 master]
|
106812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [shard 835 master]
|
106813
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id"[0m [["database_server_id", "2"]] [shard 835 master]
|
106814
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [shard 835 master]
|
106815
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 837 master]
|
106816
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 835 master]
|
106817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 835 master]
|
106818
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]
|
106819
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 836]] [shard 835 master]
|
106820
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]
|
106821
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [shard 837 master]
|
106822
|
+
[1m[35m (0.2ms)[0m ROLLBACK [shard 837 master]
|
106823
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 835 master]
|
106824
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [shard 835 master]
|
106825
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 835 master]
|
106826
|
+
[1m[35m (4.5ms)[0m DROP SCHEMA switchman_test_shard_836 CASCADE [shard 836 deploy]
|
106827
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106828
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 836]]
|
106829
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106830
|
+
[1m[35m (6.1ms)[0m DROP SCHEMA switchman_test_shard_837 CASCADE [shard 837 deploy]
|
106831
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
106832
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 837]]
|
106833
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106834
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106835
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106836
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106837
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106838
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106839
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106840
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
106841
|
+
[1m[35m (0.4ms)[0m COMMIT
|
106842
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
106843
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
106844
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106845
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]
|
106846
|
+
[1m[36m (0.2ms)[0m [1mCREATE SCHEMA switchman_test_shard_841[0m [shard 841 deploy]
|
106847
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 841 deploy]
|
106848
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 841 deploy]
|
106849
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 841 deploy]
|
106850
|
+
Migrating to CreateUsers (20130403132607)
|
106851
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106852
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 841 deploy]
|
106853
|
+
Migrating to CreateAppendages (20130411202442)
|
106854
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106855
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 841 deploy]
|
106856
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106857
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106858
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 841 deploy]
|
106859
|
+
Migrating to CreateDigits (20131022202028)
|
106860
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106861
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 841 deploy]
|
106862
|
+
Migrating to CreateFeatures (20131206172923)
|
106863
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106864
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 841 deploy]
|
106865
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106866
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 841 deploy]
|
106867
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 841 deploy]
|
106868
|
+
Migrating to CreateRoots (20140219183820)
|
106869
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [0m [shard 841 deploy]
|
106870
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 841 deploy]
|
106871
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 841[0m [["name", "switchman_test_shard_841"]] [shard 840 master]
|
106872
|
+
[1m[35m (0.6ms)[0m COMMIT [shard 840 master]
|
106873
|
+
[1m[36mSwitchman::Shard Load (0.8ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 840 master]
|
106874
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 840 master]
|
106875
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id"[0m [["database_server_id", "1"], ["name", "public"]] [shard 840 master]
|
106876
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 840 master]
|
106877
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_842[0m [shard 842 deploy]
|
106878
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 842 deploy]
|
106879
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 842 deploy]
|
106880
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [shard 842 deploy]
|
106881
|
+
Migrating to CreateUsers (20130403132607)
|
106882
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106883
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106884
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130403132607"]] [shard 842 deploy]
|
106885
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106886
|
+
Migrating to CreateAppendages (20130411202442)
|
106887
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106888
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106889
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202442"]] [shard 842 deploy]
|
106890
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106891
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106892
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106893
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106894
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20130411202551"]] [shard 842 deploy]
|
106895
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106896
|
+
Migrating to CreateDigits (20131022202028)
|
106897
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106898
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106899
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131022202028"]] [shard 842 deploy]
|
106900
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106901
|
+
Migrating to CreateFeatures (20131206172923)
|
106902
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106903
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106904
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131206172923"]] [shard 842 deploy]
|
106905
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106906
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
106907
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106908
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 842 deploy]
|
106909
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140123154135"]] [shard 842 deploy]
|
106910
|
+
[1m[35m (0.4ms)[0m COMMIT [shard 842 deploy]
|
106911
|
+
Migrating to CreateRoots (20140219183820)
|
106912
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 deploy]
|
106913
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy]
|
106914
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140219183820"]] [shard 842 deploy]
|
106915
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 842 deploy]
|
106916
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 840 master]
|
106917
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 842 [["name", "switchman_test_shard_842"]] [shard 840 master]
|
106918
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [shard 840 master]
|
106919
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" [shard 840 master]
|
106920
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 840 master]
|
106921
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 840 master]
|
106922
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 840 master]
|
106923
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 840]] [shard 840 master]
|
106924
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 840 master]
|
106925
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
|
106926
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 840 master]
|
106927
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 841], ["name", "switchman_test_shard_841"]] [shard 840 master]
|
106928
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 840 master]
|
106929
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 840 master]
|
106930
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 842], ["name", "switchman_test_shard_842"]] [shard 840 master]
|
106931
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 840 master]
|
106932
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 840 master]
|
106933
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
|
106934
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 841]] [shard 840 master]
|
106935
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]
|
106936
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 master]
|
106937
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [shard 840 master]
|
106938
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id"[0m [["database_server_id", "2"]] [shard 840 master]
|
106939
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [shard 840 master]
|
106940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 840 master]
|
106941
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 840 master]
|
106942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 840 master]
|
106943
|
+
[1m[35m (0.2ms)[0m ROLLBACK [shard 842 master]
|
106944
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 840 master]
|
106945
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 840 master]
|
106946
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 840 master]
|
106947
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master]
|
106948
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 842]] [shard 840 master]
|
106949
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 842 master]
|
106950
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 842 master]
|
106951
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 840 master]
|
106952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 840 master]
|
106953
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]
|
106954
|
+
[1m[36mSwitchman::Shard Load (0.1ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 841]] [shard 840 master]
|
106955
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]
|
106956
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 842 master]
|
106957
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 842 master]
|
106958
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 840 master]
|
106959
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [shard 840 master]
|
106960
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [shard 840 master]
|
106961
|
+
[1m[35m (5.2ms)[0m DROP SCHEMA switchman_test_shard_841 CASCADE [shard 841 deploy]
|
106962
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106963
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 841]]
|
106964
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106965
|
+
[1m[35m (6.0ms)[0m DROP SCHEMA switchman_test_shard_842 CASCADE [shard 842 deploy]
|
106966
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
106967
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 842]]
|
106968
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
106969
|
+
Connecting to database specified by database.yml
|
106970
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
106971
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106972
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
106973
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106974
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106975
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
106976
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", nil], ["default", true], ["name", nil]]
|
106977
|
+
[1m[35m (0.3ms)[0m COMMIT
|
106978
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m
|
106979
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1
|
106980
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106981
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]
|
106982
|
+
[1m[36m (0.3ms)[0m [1mCREATE SCHEMA switchman_test_shard_846[0m [shard 846 deploy]
|
106983
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 846 deploy]
|
106984
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 846 deploy]
|
106985
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 846 deploy]
|
106986
|
+
Migrating to CreateUsers (20130403132607)
|
106987
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
106988
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 846 deploy]
|
106989
|
+
Migrating to CreateAppendages (20130411202442)
|
106990
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
106991
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 846 deploy]
|
106992
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
106993
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
106994
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 846 deploy]
|
106995
|
+
Migrating to CreateDigits (20131022202028)
|
106996
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
106997
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 846 deploy]
|
106998
|
+
Migrating to CreateFeatures (20131206172923)
|
106999
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
107000
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 846 deploy]
|
107001
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
107002
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD COLUMN "parent_id" bigint[0m [shard 846 deploy]
|
107003
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 846 deploy]
|
107004
|
+
Migrating to CreateRoots (20140219183820)
|
107005
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard 846 deploy]
|
107006
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 846 deploy]
|
107007
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "switchman_shards" SET "name" = 'switchman_test_shard_846' WHERE "switchman_shards"."id" = 846[0m [shard 845 master]
|
107008
|
+
[1m[35m (1.3ms)[0m COMMIT [shard 845 master]
|
107009
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1[0m [shard 845 master]
|
107010
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 845 master]
|
107011
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 845 master]
|
107012
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 845 master]
|
107013
|
+
[1m[36m (0.6ms)[0m [1mCREATE SCHEMA switchman_test_shard_847[0m [shard 847 deploy]
|
107014
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 847 deploy]
|
107015
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard 847 deploy]
|
107016
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 847 deploy]
|
107017
|
+
Migrating to CreateUsers (20130403132607)
|
107018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107019
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107020
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')[0m [shard 847 deploy]
|
107021
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 847 deploy]
|
107022
|
+
Migrating to CreateAppendages (20130411202442)
|
107023
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107024
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107025
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')[0m [shard 847 deploy]
|
107026
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 847 deploy]
|
107027
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
107028
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107029
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107030
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')[0m [shard 847 deploy]
|
107031
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 847 deploy]
|
107032
|
+
Migrating to CreateDigits (20131022202028)
|
107033
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107034
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107035
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')[0m [shard 847 deploy]
|
107036
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 847 deploy]
|
107037
|
+
Migrating to CreateFeatures (20131206172923)
|
107038
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107039
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107040
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20131206172923')[0m [shard 847 deploy]
|
107041
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 847 deploy]
|
107042
|
+
Migrating to AddParentIdToUsers (20140123154135)
|
107043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107044
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 847 deploy]
|
107045
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20140123154135')[0m [shard 847 deploy]
|
107046
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 847 deploy]
|
107047
|
+
Migrating to CreateRoots (20140219183820)
|
107048
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m [shard 847 deploy]
|
107049
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]
|
107050
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20140219183820')[0m [shard 847 deploy]
|
107051
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 847 deploy]
|
107052
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 845 master]
|
107053
|
+
[1m[35m (0.2ms)[0m UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_847' WHERE "switchman_shards"."id" = 847 [shard 845 master]
|
107054
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [shard 845 master]
|
107055
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [shard 845 master]
|
107056
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 845 master]
|
107057
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 845 master]
|
107058
|
+
[1m[36mSwitchman::Shard Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 845 master]
|
107059
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 845], ["name", nil]] [shard 845 master]
|
107060
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [shard 845 master]
|
107061
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
|
107062
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m [shard 845 master]
|
107063
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 846], ["name", "switchman_test_shard_846"]] [shard 845 master]
|
107064
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [shard 845 master]
|
107065
|
+
[1m[35m (0.0ms)[0m BEGIN [shard 845 master]
|
107066
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["database_server_id", "1"], ["default", false], ["id", 847], ["name", "switchman_test_shard_847"]] [shard 845 master]
|
107067
|
+
[1m[35m (0.2ms)[0m COMMIT [shard 845 master]
|
107068
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m [shard 845 master]
|
107069
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
|
107070
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 846]] [shard 845 master]
|
107071
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]
|
107072
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 master]
|
107073
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 847 master]
|
107074
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 845 master]
|
107075
|
+
[1m[35m (0.1ms)[0m BEGIN [shard 845 master]
|
107076
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 845 master]
|
107077
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master]
|
107078
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 847]] [shard 845 master]
|
107079
|
+
[1m[35m (0.0ms)[0m BEGIN [shard 847 master]
|
107080
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [shard 845 master]
|
107081
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]
|
107082
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [shard 845 master]
|
107083
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [shard 845 master]
|
107084
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]
|
107085
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [shard 845 master]
|
107086
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 847 master]
|
107087
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 845 master]
|
107088
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 845 master]
|
107089
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]
|
107090
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 846]] [shard 845 master]
|
107091
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]
|
107092
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 847 master]
|
107093
|
+
[1m[35m (0.1ms)[0m ROLLBACK [shard 847 master]
|
107094
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [shard 845 master]
|
107095
|
+
[1m[35mSQL (9.7ms)[0m DELETE FROM "switchman_shards" [shard 845 master]
|
107096
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard 845 master]
|
107097
|
+
[1m[35m (4.8ms)[0m DROP SCHEMA switchman_test_shard_846 CASCADE [shard 846 deploy]
|
107098
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
107099
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 846]]
|
107100
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
107101
|
+
[1m[35m (6.3ms)[0m DROP SCHEMA switchman_test_shard_847 CASCADE [shard 847 deploy]
|
107102
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
107103
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 847]]
|
107104
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
@@ -18,5 +18,16 @@ module Switchman
|
|
18
18
|
@shard2.activate{ proxy.current_pool.expects(:clear_idle_connections!).once }
|
19
19
|
proxy.clear_idle_connections!(Time.now)
|
20
20
|
end
|
21
|
+
|
22
|
+
it "should handle an array of slaves when creating a pool" do
|
23
|
+
spec = Object.new
|
24
|
+
spec.instance_variable_set(:@config, adapter: Shard.connection_pool.spec.config[:adapter], database: 'master', slave: [ { database: 'slave1' }, { database: 'slave2' }])
|
25
|
+
default_pool = stub(spec: spec)
|
26
|
+
cache = {}
|
27
|
+
proxy = ConnectionPoolProxy.new(:unsharded, default_pool, cache)
|
28
|
+
proxy.stubs(:active_shackles_environment).returns(:slave)
|
29
|
+
new_pool = proxy.send(:create_pool)
|
30
|
+
expect(new_pool.spec.config[:database]).to eq 'slave1'
|
31
|
+
end
|
21
32
|
end
|
22
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|