rails_redshift_replicator 0.0.1
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/rails_redshift_replicator/application.js +13 -0
- data/app/assets/stylesheets/rails_redshift_replicator/application.css +15 -0
- data/app/controllers/rails_redshift_replicator/application_controller.rb +5 -0
- data/app/helpers/rails_redshift_replicator/application_helper.rb +4 -0
- data/app/models/rails_redshift_replicator/replication.rb +98 -0
- data/app/views/layouts/rails_redshift_replicator/application.html.erb +14 -0
- data/config/locales/rails_redshift_replicator.en.yml +20 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20160503214955_create_rails_redshift_replicator_replications.rb +24 -0
- data/db/migrate/20160509193335_create_table_rails_redshift_replicator_deleted_ids.rb +8 -0
- data/lib/generators/rails_redshift_replicator/install_generator.rb +25 -0
- data/lib/generators/templates/rails_redshift_replicator.rb +74 -0
- data/lib/rails_redshift_replicator.rb +229 -0
- data/lib/rails_redshift_replicator/adapters/generic.rb +40 -0
- data/lib/rails_redshift_replicator/adapters/mysql2.rb +22 -0
- data/lib/rails_redshift_replicator/adapters/postgresql.rb +37 -0
- data/lib/rails_redshift_replicator/adapters/sqlite.rb +27 -0
- data/lib/rails_redshift_replicator/deleter.rb +67 -0
- data/lib/rails_redshift_replicator/engine.rb +14 -0
- data/lib/rails_redshift_replicator/exporters/base.rb +215 -0
- data/lib/rails_redshift_replicator/exporters/full_replicator.rb +9 -0
- data/lib/rails_redshift_replicator/exporters/identity_replicator.rb +9 -0
- data/lib/rails_redshift_replicator/exporters/timed_replicator.rb +9 -0
- data/lib/rails_redshift_replicator/file_manager.rb +134 -0
- data/lib/rails_redshift_replicator/importers/base.rb +158 -0
- data/lib/rails_redshift_replicator/importers/full_replicator.rb +17 -0
- data/lib/rails_redshift_replicator/importers/identity_replicator.rb +15 -0
- data/lib/rails_redshift_replicator/importers/timed_replicator.rb +18 -0
- data/lib/rails_redshift_replicator/model/extension.rb +45 -0
- data/lib/rails_redshift_replicator/model/hair_trigger_extension.rb +8 -0
- data/lib/rails_redshift_replicator/replicable.rb +143 -0
- data/lib/rails_redshift_replicator/rlogger.rb +12 -0
- data/lib/rails_redshift_replicator/tools/analyze.rb +18 -0
- data/lib/rails_redshift_replicator/tools/vacuum.rb +77 -0
- data/lib/rails_redshift_replicator/version.rb +3 -0
- data/lib/tasks/rails_redshift_replicator_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/post.rb +4 -0
- data/spec/dummy/app/models/tag.rb +4 -0
- data/spec/dummy/app/models/user.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +37 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/rails_redshift_replicator.rb +59 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/locales/rails_redshift_replicator.en.yml +19 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20160504120421_create_test_tables.rb +40 -0
- data/spec/dummy/db/migrate/20160509225445_create_triggers_posts_delete_or_tags_delete_or_users_delete.rb +33 -0
- data/spec/dummy/db/migrate/20160511000937_create_rails_redshift_replicator_replications.rails_redshift_replicator.rb +25 -0
- data/spec/dummy/db/migrate/20160511000938_create_table_rails_redshift_replicator_deleted_ids.rails_redshift_replicator.rb +9 -0
- data/spec/dummy/db/schema.rb +99 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1623 -0
- data/spec/dummy/log/test.log +95379 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/rails_redshift_replicator_development +0 -0
- data/spec/factories/rails_redshift_replicator_replications.rb +31 -0
- data/spec/integration/rails_redshift_replicator_spec.rb +148 -0
- data/spec/integration/setup_spec.rb +149 -0
- data/spec/lib/rails_redshift_replicator/deleter_spec.rb +90 -0
- data/spec/lib/rails_redshift_replicator/exporters/base_spec.rb +326 -0
- data/spec/lib/rails_redshift_replicator/exporters/full_replicator_spec.rb +33 -0
- data/spec/lib/rails_redshift_replicator/exporters/identity_replicator_spec.rb +40 -0
- data/spec/lib/rails_redshift_replicator/exporters/timed_replicator_spec.rb +43 -0
- data/spec/lib/rails_redshift_replicator/file_manager_spec.rb +90 -0
- data/spec/lib/rails_redshift_replicator/importers/base_spec.rb +102 -0
- data/spec/lib/rails_redshift_replicator/importers/full_replicator_spec.rb +27 -0
- data/spec/lib/rails_redshift_replicator/importers/identity_replicator_spec.rb +26 -0
- data/spec/lib/rails_redshift_replicator/importers/timed_replicator_spec.rb +26 -0
- data/spec/lib/rails_redshift_replicator/model/extension_spec.rb +36 -0
- data/spec/lib/rails_redshift_replicator/replicable_spec.rb +230 -0
- data/spec/lib/rails_redshift_replicator/rlogger_spec.rb +22 -0
- data/spec/lib/rails_redshift_replicator/tools/analyze_spec.rb +15 -0
- data/spec/lib/rails_redshift_replicator/tools/vacuum_spec.rb +65 -0
- data/spec/lib/rails_redshift_replicator_spec.rb +110 -0
- data/spec/models/rails_redshift_replicator/replication_spec.rb +104 -0
- data/spec/spec_helper.rb +36 -0
- data/spec/support/csv/invalid_user.csv +12 -0
- data/spec/support/csv/valid_post.csv +2 -0
- data/spec/support/csv/valid_tags_users.csv +1 -0
- data/spec/support/csv/valid_user.csv +2 -0
- data/spec/support/rails_redshift_replicator_helpers.rb +95 -0
- metadata +430 -0
|
Binary file
|
|
@@ -0,0 +1,1623 @@
|
|
|
1
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
2
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
|
3
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
5
|
+
Migrating to CreateRailsRedshiftReplicatorRedshiftReplications (20160503214955)
|
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
7
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "rails_redshift_replicator_redshift_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" integer, "last_error" text, "target_table" varchar, "slices" integer, "first_record" integer, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "ids_to_delete" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160503214955"]]
|
|
9
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
11
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
12
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
13
|
+
Migrating to CreateRailsRedshiftReplicatorRedshiftReplications (20160503214955)
|
|
14
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
15
|
+
[1m[35m (1.8ms)[0m DROP TABLE "rails_redshift_replicator_redshift_replications"
|
|
16
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20160503214955"]]
|
|
17
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
19
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
20
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
21
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
22
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" integer, "last_error" text, "target_table" varchar, "slices" integer, "first_record" integer, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "ids_to_delete" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
23
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160503214955"]]
|
|
24
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
|
25
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
27
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
28
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
29
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
30
|
+
[1m[35m (0.4ms)[0m DROP TABLE "rails_redshift_replicator_replications"
|
|
31
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20160503214955"]]
|
|
32
|
+
[1m[35m (2.4ms)[0m commit transaction
|
|
33
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
35
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
37
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" integer, "last_error" text, "source_table" varchar, "target_table" varchar, "slices" integer, "first_record" integer, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "ids_to_delete" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
38
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160503214955"]]
|
|
39
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
|
40
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
42
|
+
Migrating to CreateTestTables (20160504120421)
|
|
43
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
44
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:6)
|
|
45
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "user" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "age" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
46
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:11)
|
|
47
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "post" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
48
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
|
49
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
50
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160504120421"]]
|
|
51
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
52
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
53
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
54
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
55
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
56
|
+
Migrating to CreateTestTables (20160504120421)
|
|
57
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
58
|
+
[1m[35m (1.2ms)[0m DROP TABLE "tags_users"
|
|
59
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE "tags"[0m
|
|
60
|
+
[1m[35m (0.1ms)[0m DROP TABLE "post"
|
|
61
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "user"[0m
|
|
62
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20160504120421"]]
|
|
63
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
64
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
66
|
+
Migrating to CreateTestTables (20160504120421)
|
|
67
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
68
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:6)
|
|
69
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "age" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
70
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:11)
|
|
71
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
72
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
|
73
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
74
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160504120421"]]
|
|
75
|
+
[1m[35m (2.3ms)[0m commit transaction
|
|
76
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
77
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
78
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
79
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
80
|
+
Migrating to CreateTestTables (20160504120421)
|
|
81
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
82
|
+
[1m[35m (0.4ms)[0m DROP TABLE "tags_users"
|
|
83
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "tags"[0m
|
|
84
|
+
[1m[35m (0.2ms)[0m DROP TABLE "posts"
|
|
85
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "users"[0m
|
|
86
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20160504120421"]]
|
|
87
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
88
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
89
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
90
|
+
Migrating to CreateTestTables (20160504120421)
|
|
91
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
92
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:7)
|
|
93
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
94
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:12)
|
|
95
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
96
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
|
97
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
98
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160504120421"]]
|
|
99
|
+
[1m[35m (2.9ms)[0m commit transaction
|
|
100
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
101
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
102
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
103
|
+
Migrating to CreateTestTables (20160504120421)
|
|
104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
105
|
+
[1m[35m (0.4ms)[0m DROP TABLE "tags_users"
|
|
106
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "tags"[0m
|
|
107
|
+
[1m[35m (0.2ms)[0m DROP TABLE "posts"
|
|
108
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "users"[0m
|
|
109
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20160504120421"]]
|
|
110
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
|
111
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
112
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
113
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
114
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
116
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
117
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
|
118
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
|
119
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
120
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
121
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
122
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
123
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
124
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
125
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
126
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
127
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
128
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
129
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
130
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
131
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
132
|
+
FROM sqlite_master
|
|
133
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
134
|
+
UNION ALL
|
|
135
|
+
SELECT sql
|
|
136
|
+
FROM sqlite_temp_master
|
|
137
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
138
|
+
[0m
|
|
139
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
140
|
+
FROM sqlite_master
|
|
141
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
142
|
+
UNION ALL
|
|
143
|
+
SELECT sql
|
|
144
|
+
FROM sqlite_temp_master
|
|
145
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
146
|
+
|
|
147
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
148
|
+
FROM sqlite_master
|
|
149
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
150
|
+
UNION ALL
|
|
151
|
+
SELECT sql
|
|
152
|
+
FROM sqlite_temp_master
|
|
153
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
154
|
+
[0m
|
|
155
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
156
|
+
FROM sqlite_master
|
|
157
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
158
|
+
UNION ALL
|
|
159
|
+
SELECT sql
|
|
160
|
+
FROM sqlite_temp_master
|
|
161
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
162
|
+
|
|
163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
165
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE "users"[0m
|
|
166
|
+
[1m[35m (0.8ms)[0m DROP TABLE "posts"
|
|
167
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "tags"[0m
|
|
168
|
+
[1m[35m (0.8ms)[0m DROP TABLE "tags_users"
|
|
169
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20160504120421"]]
|
|
170
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
172
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
174
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
175
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
|
176
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
177
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
178
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
179
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
180
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
181
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
182
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
183
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
184
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
185
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
186
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
187
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
188
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
189
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
190
|
+
FROM sqlite_master
|
|
191
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
192
|
+
UNION ALL
|
|
193
|
+
SELECT sql
|
|
194
|
+
FROM sqlite_temp_master
|
|
195
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
196
|
+
[0m
|
|
197
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
198
|
+
FROM sqlite_master
|
|
199
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
200
|
+
UNION ALL
|
|
201
|
+
SELECT sql
|
|
202
|
+
FROM sqlite_temp_master
|
|
203
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
204
|
+
|
|
205
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
206
|
+
FROM sqlite_master
|
|
207
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
208
|
+
UNION ALL
|
|
209
|
+
SELECT sql
|
|
210
|
+
FROM sqlite_temp_master
|
|
211
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
212
|
+
[0m
|
|
213
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
214
|
+
FROM sqlite_master
|
|
215
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
216
|
+
UNION ALL
|
|
217
|
+
SELECT sql
|
|
218
|
+
FROM sqlite_temp_master
|
|
219
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
220
|
+
|
|
221
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
222
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
223
|
+
Migrating to CreateTestTables (20160504120421)
|
|
224
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
225
|
+
[1m[35m (1.3ms)[0m DROP TABLE "users"
|
|
226
|
+
[1m[36m (1.3ms)[0m [1mDROP TABLE "posts"[0m
|
|
227
|
+
[1m[35m (0.8ms)[0m DROP TABLE "tags"
|
|
228
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "tags_users"[0m
|
|
229
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20160504120421"]]
|
|
230
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
|
231
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
232
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
233
|
+
Migrating to CreateTestTables (20160504120421)
|
|
234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
235
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
236
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
|
237
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
238
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
239
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
240
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
241
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
242
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
243
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
244
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
245
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
246
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
247
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
248
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
249
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
250
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
251
|
+
FROM sqlite_master
|
|
252
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
253
|
+
UNION ALL
|
|
254
|
+
SELECT sql
|
|
255
|
+
FROM sqlite_temp_master
|
|
256
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
257
|
+
[0m
|
|
258
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
259
|
+
FROM sqlite_master
|
|
260
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
261
|
+
UNION ALL
|
|
262
|
+
SELECT sql
|
|
263
|
+
FROM sqlite_temp_master
|
|
264
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
265
|
+
|
|
266
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
267
|
+
FROM sqlite_master
|
|
268
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
269
|
+
UNION ALL
|
|
270
|
+
SELECT sql
|
|
271
|
+
FROM sqlite_temp_master
|
|
272
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
273
|
+
[0m
|
|
274
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
275
|
+
FROM sqlite_master
|
|
276
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
277
|
+
UNION ALL
|
|
278
|
+
SELECT sql
|
|
279
|
+
FROM sqlite_temp_master
|
|
280
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
281
|
+
|
|
282
|
+
[1m[36m (82.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
|
283
|
+
[1m[35m (43.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
|
284
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
|
285
|
+
Migrating to CreateTestTables (20160504120421)
|
|
286
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
287
|
+
[1m[35m (28.2ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `age` int(11), `confirmed` tinyint(1), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
|
288
|
+
[1m[36m (23.2ms)[0m [1mCREATE INDEX `index_users_on_login_and_age` ON `users` (`login`, `age`) [0m
|
|
289
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
290
|
+
[1m[35m (17.6ms)[0m CREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `content` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
|
291
|
+
[1m[36m (13.9ms)[0m [1mCREATE INDEX `index_posts_on_user_id_and_updated_at` ON `posts` (`user_id`, `updated_at`) [0m
|
|
292
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
293
|
+
[1m[35m (15.0ms)[0m CREATE TABLE `tags` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
|
294
|
+
[1m[36m (25.0ms)[0m [1mCREATE INDEX `index_tags_on_name_and_updated_at` ON `tags` (`name`, `updated_at`) [0m
|
|
295
|
+
[1m[35m (15.4ms)[0m CREATE TABLE `tags_users` (`user_id` int(11), `tag_id` int(11)) ENGINE=InnoDB
|
|
296
|
+
[1m[36m (16.0ms)[0m [1mCREATE INDEX `index_tags_users_on_user_id_and_tag_id` ON `tags_users` (`user_id`, `tag_id`) [0m
|
|
297
|
+
[1m[35m (1.1ms)[0m BEGIN
|
|
298
|
+
[1m[36mSQL (25.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20160504120421')[0m
|
|
299
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
300
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
|
301
|
+
[1m[35m (5.5ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
|
302
|
+
,fk.referenced_column_name as 'primary_key'
|
|
303
|
+
,fk.column_name as 'column'
|
|
304
|
+
,fk.constraint_name as 'name'
|
|
305
|
+
FROM information_schema.key_column_usage fk
|
|
306
|
+
WHERE fk.referenced_column_name is not null
|
|
307
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
308
|
+
AND fk.table_name = 'posts'
|
|
309
|
+
|
|
310
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `posts`[0m
|
|
311
|
+
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
|
312
|
+
,fk.referenced_column_name as 'primary_key'
|
|
313
|
+
,fk.column_name as 'column'
|
|
314
|
+
,fk.constraint_name as 'name'
|
|
315
|
+
FROM information_schema.key_column_usage fk
|
|
316
|
+
WHERE fk.referenced_column_name is not null
|
|
317
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
318
|
+
AND fk.table_name = 'tags'
|
|
319
|
+
|
|
320
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `tags`[0m
|
|
321
|
+
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
|
322
|
+
,fk.referenced_column_name as 'primary_key'
|
|
323
|
+
,fk.column_name as 'column'
|
|
324
|
+
,fk.constraint_name as 'name'
|
|
325
|
+
FROM information_schema.key_column_usage fk
|
|
326
|
+
WHERE fk.referenced_column_name is not null
|
|
327
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
328
|
+
AND fk.table_name = 'tags_users'
|
|
329
|
+
|
|
330
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `tags_users`[0m
|
|
331
|
+
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
|
332
|
+
,fk.referenced_column_name as 'primary_key'
|
|
333
|
+
,fk.column_name as 'column'
|
|
334
|
+
,fk.constraint_name as 'name'
|
|
335
|
+
FROM information_schema.key_column_usage fk
|
|
336
|
+
WHERE fk.referenced_column_name is not null
|
|
337
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
338
|
+
AND fk.table_name = 'users'
|
|
339
|
+
|
|
340
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `users`[0m
|
|
341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
|
342
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
|
343
|
+
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
344
|
+
,fk.referenced_column_name as 'primary_key'
|
|
345
|
+
,fk.column_name as 'column'
|
|
346
|
+
,fk.constraint_name as 'name'
|
|
347
|
+
FROM information_schema.key_column_usage fk
|
|
348
|
+
WHERE fk.referenced_column_name is not null
|
|
349
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
350
|
+
AND fk.table_name = 'posts'
|
|
351
|
+
[0m
|
|
352
|
+
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `posts`
|
|
353
|
+
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
354
|
+
,fk.referenced_column_name as 'primary_key'
|
|
355
|
+
,fk.column_name as 'column'
|
|
356
|
+
,fk.constraint_name as 'name'
|
|
357
|
+
FROM information_schema.key_column_usage fk
|
|
358
|
+
WHERE fk.referenced_column_name is not null
|
|
359
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
360
|
+
AND fk.table_name = 'tags'
|
|
361
|
+
[0m
|
|
362
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `tags`
|
|
363
|
+
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
364
|
+
,fk.referenced_column_name as 'primary_key'
|
|
365
|
+
,fk.column_name as 'column'
|
|
366
|
+
,fk.constraint_name as 'name'
|
|
367
|
+
FROM information_schema.key_column_usage fk
|
|
368
|
+
WHERE fk.referenced_column_name is not null
|
|
369
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
370
|
+
AND fk.table_name = 'tags_users'
|
|
371
|
+
[0m
|
|
372
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `tags_users`
|
|
373
|
+
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
374
|
+
,fk.referenced_column_name as 'primary_key'
|
|
375
|
+
,fk.column_name as 'column'
|
|
376
|
+
,fk.constraint_name as 'name'
|
|
377
|
+
FROM information_schema.key_column_usage fk
|
|
378
|
+
WHERE fk.referenced_column_name is not null
|
|
379
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
380
|
+
AND fk.table_name = 'users'
|
|
381
|
+
[0m
|
|
382
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `users`
|
|
383
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
|
384
|
+
[1m[35m (20.3ms)[0m CREATE TABLE `rails_redshift_replicator_replications` (`id` int(11) auto_increment PRIMARY KEY, `replication_type` varchar(255), `key` varchar(255), `state` varchar(255) DEFAULT 'enqueued', `last_record` varchar(255), `retries` int(11) DEFAULT 0, `last_error` text, `source_table` varchar(255), `target_table` varchar(255), `slices` int(11), `first_record` int(11), `record_count` int(11), `export_format` varchar(255), `export_duration` int(11), `upload_duration` int(11), `import_duration` int(11), `ids_to_delete` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
|
385
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
386
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20160503214955')
|
|
387
|
+
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
|
|
388
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
|
389
|
+
[1m[36m (0.5ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
390
|
+
,fk.referenced_column_name as 'primary_key'
|
|
391
|
+
,fk.column_name as 'column'
|
|
392
|
+
,fk.constraint_name as 'name'
|
|
393
|
+
FROM information_schema.key_column_usage fk
|
|
394
|
+
WHERE fk.referenced_column_name is not null
|
|
395
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
396
|
+
AND fk.table_name = 'posts'
|
|
397
|
+
[0m
|
|
398
|
+
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `posts`
|
|
399
|
+
[1m[36m (0.4ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
400
|
+
,fk.referenced_column_name as 'primary_key'
|
|
401
|
+
,fk.column_name as 'column'
|
|
402
|
+
,fk.constraint_name as 'name'
|
|
403
|
+
FROM information_schema.key_column_usage fk
|
|
404
|
+
WHERE fk.referenced_column_name is not null
|
|
405
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
406
|
+
AND fk.table_name = 'rails_redshift_replicator_replications'
|
|
407
|
+
[0m
|
|
408
|
+
[1m[35m (0.2ms)[0m SHOW CREATE TABLE `rails_redshift_replicator_replications`
|
|
409
|
+
[1m[36m (0.3ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
410
|
+
,fk.referenced_column_name as 'primary_key'
|
|
411
|
+
,fk.column_name as 'column'
|
|
412
|
+
,fk.constraint_name as 'name'
|
|
413
|
+
FROM information_schema.key_column_usage fk
|
|
414
|
+
WHERE fk.referenced_column_name is not null
|
|
415
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
416
|
+
AND fk.table_name = 'tags'
|
|
417
|
+
[0m
|
|
418
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `tags`
|
|
419
|
+
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
420
|
+
,fk.referenced_column_name as 'primary_key'
|
|
421
|
+
,fk.column_name as 'column'
|
|
422
|
+
,fk.constraint_name as 'name'
|
|
423
|
+
FROM information_schema.key_column_usage fk
|
|
424
|
+
WHERE fk.referenced_column_name is not null
|
|
425
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
426
|
+
AND fk.table_name = 'tags_users'
|
|
427
|
+
[0m
|
|
428
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `tags_users`
|
|
429
|
+
[1m[36m (0.2ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
|
430
|
+
,fk.referenced_column_name as 'primary_key'
|
|
431
|
+
,fk.column_name as 'column'
|
|
432
|
+
,fk.constraint_name as 'name'
|
|
433
|
+
FROM information_schema.key_column_usage fk
|
|
434
|
+
WHERE fk.referenced_column_name is not null
|
|
435
|
+
AND fk.table_schema = 'rails_redshift_replicator_development'
|
|
436
|
+
AND fk.table_name = 'users'
|
|
437
|
+
[0m
|
|
438
|
+
[1m[35m (0.1ms)[0m SHOW CREATE TABLE `users`
|
|
439
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
440
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
|
441
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
442
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
443
|
+
Migrating to CreateTestTables (20160504120421)
|
|
444
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
445
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
446
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime)
|
|
447
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
448
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
449
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
450
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
451
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
452
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
453
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
454
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
455
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
456
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
457
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
458
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
459
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
460
|
+
FROM sqlite_master
|
|
461
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
462
|
+
UNION ALL
|
|
463
|
+
SELECT sql
|
|
464
|
+
FROM sqlite_temp_master
|
|
465
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
466
|
+
[0m
|
|
467
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
468
|
+
FROM sqlite_master
|
|
469
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
470
|
+
UNION ALL
|
|
471
|
+
SELECT sql
|
|
472
|
+
FROM sqlite_temp_master
|
|
473
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
474
|
+
|
|
475
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
476
|
+
FROM sqlite_master
|
|
477
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
478
|
+
UNION ALL
|
|
479
|
+
SELECT sql
|
|
480
|
+
FROM sqlite_temp_master
|
|
481
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
482
|
+
[0m
|
|
483
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
484
|
+
FROM sqlite_master
|
|
485
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
486
|
+
UNION ALL
|
|
487
|
+
SELECT sql
|
|
488
|
+
FROM sqlite_temp_master
|
|
489
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
490
|
+
|
|
491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
492
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "first"], ["created_at", "2016-05-06 15:17:08.786047"], ["updated_at", "2016-05-06 15:17:08.786047"]]
|
|
493
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
|
494
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
495
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "tags" SET "created_at" = ?, "updated_at" = ? WHERE "tags"."id" = ?[0m [["created_at", "2016-05-06 15:17:22.603360"], ["updated_at", "2016-05-06 15:17:22.604093"], ["id", 1]]
|
|
496
|
+
[1m[35m (2.5ms)[0m commit transaction
|
|
497
|
+
[1m[36mTag Load (0.3ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
498
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
499
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
500
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
|
501
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
502
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
503
|
+
Migrating to CreateTestTables (20160504120421)
|
|
504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
505
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
506
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime)
|
|
507
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
508
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
509
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
510
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
511
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
512
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
513
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
514
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
515
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
516
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
517
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
518
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
519
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
520
|
+
FROM sqlite_master
|
|
521
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
522
|
+
UNION ALL
|
|
523
|
+
SELECT sql
|
|
524
|
+
FROM sqlite_temp_master
|
|
525
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
526
|
+
[0m
|
|
527
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
528
|
+
FROM sqlite_master
|
|
529
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
530
|
+
UNION ALL
|
|
531
|
+
SELECT sql
|
|
532
|
+
FROM sqlite_temp_master
|
|
533
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
534
|
+
|
|
535
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
536
|
+
FROM sqlite_master
|
|
537
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
538
|
+
UNION ALL
|
|
539
|
+
SELECT sql
|
|
540
|
+
FROM sqlite_temp_master
|
|
541
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
542
|
+
[0m
|
|
543
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
544
|
+
FROM sqlite_master
|
|
545
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
546
|
+
UNION ALL
|
|
547
|
+
SELECT sql
|
|
548
|
+
FROM sqlite_temp_master
|
|
549
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
550
|
+
|
|
551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
552
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("login", "created_at", "updated_at") VALUES (?, ?, ?) [["login", "a"], ["created_at", "2016-05-08 04:51:10.282893"], ["updated_at", "2016-05-08 04:51:10.282893"]]
|
|
553
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
|
554
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
555
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
|
556
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
557
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
558
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
559
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
560
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
561
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
562
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" varchar, "retries" integer DEFAULT 0, "last_error" text, "source_table" varchar, "target_table" varchar, "slices" integer, "first_record" varchar, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "ids_to_delete" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
563
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160503214955"]]
|
|
564
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
565
|
+
Migrating to CreateTestTables (20160504120421)
|
|
566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
567
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
568
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
|
569
|
+
[1m[35m (1.0ms)[0m select sqlite_version(*)
|
|
570
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
571
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
572
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
573
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
574
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
575
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
576
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
577
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
578
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
579
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
580
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
581
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
582
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
583
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
584
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
585
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
586
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
587
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "table_rails_redshift_replicator_deleted_ids" ("source_table" varchar, "object_id" integer) [0m
|
|
588
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509193335"]]
|
|
589
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
590
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
591
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
592
|
+
FROM sqlite_master
|
|
593
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
594
|
+
UNION ALL
|
|
595
|
+
SELECT sql
|
|
596
|
+
FROM sqlite_temp_master
|
|
597
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
598
|
+
[0m
|
|
599
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
600
|
+
FROM sqlite_master
|
|
601
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
602
|
+
UNION ALL
|
|
603
|
+
SELECT sql
|
|
604
|
+
FROM sqlite_temp_master
|
|
605
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
606
|
+
|
|
607
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
608
|
+
FROM sqlite_master
|
|
609
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
610
|
+
UNION ALL
|
|
611
|
+
SELECT sql
|
|
612
|
+
FROM sqlite_temp_master
|
|
613
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
614
|
+
[0m
|
|
615
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
616
|
+
FROM sqlite_master
|
|
617
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
618
|
+
UNION ALL
|
|
619
|
+
SELECT sql
|
|
620
|
+
FROM sqlite_temp_master
|
|
621
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
622
|
+
|
|
623
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
624
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
625
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
626
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
627
|
+
[1m[35m (2.3ms)[0m DROP TABLE "table_rails_redshift_replicator_deleted_ids"
|
|
628
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20160509193335"]]
|
|
629
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
630
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
631
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
632
|
+
FROM sqlite_master
|
|
633
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
634
|
+
UNION ALL
|
|
635
|
+
SELECT sql
|
|
636
|
+
FROM sqlite_temp_master
|
|
637
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
638
|
+
|
|
639
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
640
|
+
FROM sqlite_master
|
|
641
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
642
|
+
UNION ALL
|
|
643
|
+
SELECT sql
|
|
644
|
+
FROM sqlite_temp_master
|
|
645
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
646
|
+
[0m
|
|
647
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
648
|
+
FROM sqlite_master
|
|
649
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
650
|
+
UNION ALL
|
|
651
|
+
SELECT sql
|
|
652
|
+
FROM sqlite_temp_master
|
|
653
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
654
|
+
|
|
655
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
656
|
+
FROM sqlite_master
|
|
657
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
658
|
+
UNION ALL
|
|
659
|
+
SELECT sql
|
|
660
|
+
FROM sqlite_temp_master
|
|
661
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
662
|
+
[0m
|
|
663
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
664
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
665
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
666
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "rails_redshift_replicator_deleted_ids" ("source_table" varchar, "object_id" integer) [0m
|
|
667
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509193335"]]
|
|
668
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
669
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
670
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
671
|
+
FROM sqlite_master
|
|
672
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
673
|
+
UNION ALL
|
|
674
|
+
SELECT sql
|
|
675
|
+
FROM sqlite_temp_master
|
|
676
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
677
|
+
[0m
|
|
678
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
679
|
+
FROM sqlite_master
|
|
680
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
681
|
+
UNION ALL
|
|
682
|
+
SELECT sql
|
|
683
|
+
FROM sqlite_temp_master
|
|
684
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
685
|
+
|
|
686
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
687
|
+
FROM sqlite_master
|
|
688
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
689
|
+
UNION ALL
|
|
690
|
+
SELECT sql
|
|
691
|
+
FROM sqlite_temp_master
|
|
692
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
693
|
+
[0m
|
|
694
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
695
|
+
FROM sqlite_master
|
|
696
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
697
|
+
UNION ALL
|
|
698
|
+
SELECT sql
|
|
699
|
+
FROM sqlite_temp_master
|
|
700
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
701
|
+
|
|
702
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
703
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
704
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
705
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
706
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
707
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
708
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
710
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
711
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
712
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
713
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
714
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
715
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
716
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509221348)
|
|
717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
718
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
719
|
+
[0m
|
|
720
|
+
[1m[35m (0.4ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
721
|
+
FOR EACH ROW
|
|
722
|
+
BEGIN
|
|
723
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, id) VALUES('posts', OLD.id);
|
|
724
|
+
END;
|
|
725
|
+
|
|
726
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
727
|
+
[0m
|
|
728
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
729
|
+
FOR EACH ROW
|
|
730
|
+
BEGIN
|
|
731
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, id) VALUES('tags', OLD.id);
|
|
732
|
+
END;
|
|
733
|
+
|
|
734
|
+
[1m[36m (0.0ms)[0m [1mDROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
735
|
+
[0m
|
|
736
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
737
|
+
FOR EACH ROW
|
|
738
|
+
BEGIN
|
|
739
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, id) VALUES('users', OLD.id);
|
|
740
|
+
END;
|
|
741
|
+
|
|
742
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509221348"]]
|
|
743
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
744
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
745
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
|
746
|
+
FROM sqlite_master
|
|
747
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
748
|
+
UNION ALL
|
|
749
|
+
SELECT sql
|
|
750
|
+
FROM sqlite_temp_master
|
|
751
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
752
|
+
|
|
753
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
754
|
+
FROM sqlite_master
|
|
755
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
756
|
+
UNION ALL
|
|
757
|
+
SELECT sql
|
|
758
|
+
FROM sqlite_temp_master
|
|
759
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
760
|
+
[0m
|
|
761
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
762
|
+
FROM sqlite_master
|
|
763
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
764
|
+
UNION ALL
|
|
765
|
+
SELECT sql
|
|
766
|
+
FROM sqlite_temp_master
|
|
767
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
768
|
+
|
|
769
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
770
|
+
FROM sqlite_master
|
|
771
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
772
|
+
UNION ALL
|
|
773
|
+
SELECT sql
|
|
774
|
+
FROM sqlite_temp_master
|
|
775
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
776
|
+
[0m
|
|
777
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
778
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
779
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
780
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
781
|
+
FROM sqlite_master
|
|
782
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
783
|
+
UNION ALL
|
|
784
|
+
SELECT sql
|
|
785
|
+
FROM sqlite_temp_master
|
|
786
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
787
|
+
[0m
|
|
788
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
789
|
+
FROM sqlite_master
|
|
790
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
791
|
+
UNION ALL
|
|
792
|
+
SELECT sql
|
|
793
|
+
FROM sqlite_temp_master
|
|
794
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
795
|
+
|
|
796
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
797
|
+
FROM sqlite_master
|
|
798
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
799
|
+
UNION ALL
|
|
800
|
+
SELECT sql
|
|
801
|
+
FROM sqlite_temp_master
|
|
802
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
803
|
+
[0m
|
|
804
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
805
|
+
FROM sqlite_master
|
|
806
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
807
|
+
UNION ALL
|
|
808
|
+
SELECT sql
|
|
809
|
+
FROM sqlite_temp_master
|
|
810
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
811
|
+
|
|
812
|
+
[1m[36m (0.1ms)[0m [1mSELECT name, sql FROM sqlite_master WHERE type = 'trigger' [0m
|
|
813
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
814
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
815
|
+
[1m[36m (2.9ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
816
|
+
[1m[36m (0.6ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
817
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
818
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("login", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["login", "ale"], ["created_at", "2016-05-09 22:52:59.753083"], ["updated_at", "2016-05-09 22:52:59.753083"]]
|
|
819
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
820
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
821
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
822
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "tags_users" WHERE "tags_users"."user_id" = ?[0m [["user_id", 1]]
|
|
823
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
|
824
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
825
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
826
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
827
|
+
Migrating to DropTriggersPostsOrTagsOrUsers (20160509225417)
|
|
828
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
829
|
+
[1m[36m (0.3ms)[0m [1mDROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
830
|
+
[0m
|
|
831
|
+
[1m[35m (0.1ms)[0m DROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
832
|
+
|
|
833
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
834
|
+
[0m
|
|
835
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509225417"]]
|
|
836
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
837
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
838
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
839
|
+
FROM sqlite_master
|
|
840
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
841
|
+
UNION ALL
|
|
842
|
+
SELECT sql
|
|
843
|
+
FROM sqlite_temp_master
|
|
844
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
845
|
+
[0m
|
|
846
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
847
|
+
FROM sqlite_master
|
|
848
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
849
|
+
UNION ALL
|
|
850
|
+
SELECT sql
|
|
851
|
+
FROM sqlite_temp_master
|
|
852
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
853
|
+
|
|
854
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
855
|
+
FROM sqlite_master
|
|
856
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
857
|
+
UNION ALL
|
|
858
|
+
SELECT sql
|
|
859
|
+
FROM sqlite_temp_master
|
|
860
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
861
|
+
[0m
|
|
862
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
863
|
+
FROM sqlite_master
|
|
864
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
865
|
+
UNION ALL
|
|
866
|
+
SELECT sql
|
|
867
|
+
FROM sqlite_temp_master
|
|
868
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
869
|
+
|
|
870
|
+
[1m[36m (0.1ms)[0m [1mSELECT name, sql FROM sqlite_master WHERE type = 'trigger' [0m
|
|
871
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
872
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
873
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
874
|
+
FROM sqlite_master
|
|
875
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
876
|
+
UNION ALL
|
|
877
|
+
SELECT sql
|
|
878
|
+
FROM sqlite_temp_master
|
|
879
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
880
|
+
|
|
881
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
882
|
+
FROM sqlite_master
|
|
883
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
884
|
+
UNION ALL
|
|
885
|
+
SELECT sql
|
|
886
|
+
FROM sqlite_temp_master
|
|
887
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
888
|
+
[0m
|
|
889
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
890
|
+
FROM sqlite_master
|
|
891
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
892
|
+
UNION ALL
|
|
893
|
+
SELECT sql
|
|
894
|
+
FROM sqlite_temp_master
|
|
895
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
896
|
+
|
|
897
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
898
|
+
FROM sqlite_master
|
|
899
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
900
|
+
UNION ALL
|
|
901
|
+
SELECT sql
|
|
902
|
+
FROM sqlite_temp_master
|
|
903
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
904
|
+
[0m
|
|
905
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
906
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
907
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
908
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
909
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509225445)
|
|
910
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
911
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
912
|
+
[0m
|
|
913
|
+
[1m[35m (0.3ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
914
|
+
FOR EACH ROW
|
|
915
|
+
BEGIN
|
|
916
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
917
|
+
END;
|
|
918
|
+
|
|
919
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
920
|
+
[0m
|
|
921
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
922
|
+
FOR EACH ROW
|
|
923
|
+
BEGIN
|
|
924
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('tags', OLD.id);
|
|
925
|
+
END;
|
|
926
|
+
|
|
927
|
+
[1m[36m (0.0ms)[0m [1mDROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
928
|
+
[0m
|
|
929
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
930
|
+
FOR EACH ROW
|
|
931
|
+
BEGIN
|
|
932
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('users', OLD.id);
|
|
933
|
+
END;
|
|
934
|
+
|
|
935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509225445"]]
|
|
936
|
+
[1m[35m (2.7ms)[0m commit transaction
|
|
937
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
938
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
939
|
+
FROM sqlite_master
|
|
940
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
941
|
+
UNION ALL
|
|
942
|
+
SELECT sql
|
|
943
|
+
FROM sqlite_temp_master
|
|
944
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
945
|
+
|
|
946
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
947
|
+
FROM sqlite_master
|
|
948
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
949
|
+
UNION ALL
|
|
950
|
+
SELECT sql
|
|
951
|
+
FROM sqlite_temp_master
|
|
952
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
953
|
+
[0m
|
|
954
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
955
|
+
FROM sqlite_master
|
|
956
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
957
|
+
UNION ALL
|
|
958
|
+
SELECT sql
|
|
959
|
+
FROM sqlite_temp_master
|
|
960
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
961
|
+
|
|
962
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
963
|
+
FROM sqlite_master
|
|
964
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
965
|
+
UNION ALL
|
|
966
|
+
SELECT sql
|
|
967
|
+
FROM sqlite_temp_master
|
|
968
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
969
|
+
[0m
|
|
970
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
971
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
972
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
973
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
974
|
+
FROM sqlite_master
|
|
975
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
976
|
+
UNION ALL
|
|
977
|
+
SELECT sql
|
|
978
|
+
FROM sqlite_temp_master
|
|
979
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
980
|
+
[0m
|
|
981
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
982
|
+
FROM sqlite_master
|
|
983
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
984
|
+
UNION ALL
|
|
985
|
+
SELECT sql
|
|
986
|
+
FROM sqlite_temp_master
|
|
987
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
988
|
+
|
|
989
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
990
|
+
FROM sqlite_master
|
|
991
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
992
|
+
UNION ALL
|
|
993
|
+
SELECT sql
|
|
994
|
+
FROM sqlite_temp_master
|
|
995
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
996
|
+
[0m
|
|
997
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
998
|
+
FROM sqlite_master
|
|
999
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1000
|
+
UNION ALL
|
|
1001
|
+
SELECT sql
|
|
1002
|
+
FROM sqlite_temp_master
|
|
1003
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1004
|
+
|
|
1005
|
+
[1m[36m (0.1ms)[0m [1mSELECT name, sql FROM sqlite_master WHERE type = 'trigger' [0m
|
|
1006
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1007
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1008
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
1009
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1010
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "tags_users" WHERE "tags_users"."user_id" = ? [["user_id", 1]]
|
|
1011
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
|
1012
|
+
[1m[35m (2.8ms)[0m commit transaction
|
|
1013
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1014
|
+
[1m[35m (0.2ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1015
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1016
|
+
[1m[35m (0.2ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1017
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1018
|
+
[1m[35m (0.2ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1019
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1020
|
+
[1m[35m (0.2ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1021
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1022
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1023
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("login", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["login", "ale0"], ["created_at", "2016-05-09 22:57:17.810881"], ["updated_at", "2016-05-09 22:57:17.810881"]]
|
|
1024
|
+
[1m[35m (2.3ms)[0m commit transaction
|
|
1025
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1026
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("login", "created_at", "updated_at") VALUES (?, ?, ?) [["login", "ale1"], ["created_at", "2016-05-09 22:57:17.816084"], ["updated_at", "2016-05-09 22:57:17.816084"]]
|
|
1027
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
1028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1029
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("login", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["login", "ale2"], ["created_at", "2016-05-09 22:57:17.818768"], ["updated_at", "2016-05-09 22:57:17.818768"]]
|
|
1030
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
1031
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "users"[0m
|
|
1032
|
+
[1m[35m (0.3ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1033
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1034
|
+
[1m[35m (0.2ms)[0m SELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'
|
|
1035
|
+
[1m[36m (0.3ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids where source_table = 'users'[0m
|
|
1036
|
+
[1m[36m (1.3ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids WHERE source_table = 'users'[0m
|
|
1037
|
+
[1m[35m (3.6ms)[0m delete from rails_redshift_replicator_deleted_ids
|
|
1038
|
+
[1m[36m (0.2ms)[0m [1mSELECT object_id FROM rails_redshift_replicator_deleted_ids WHERE source_table = 'users'[0m
|
|
1039
|
+
[1m[35mSQL (1.0ms)[0m DELETE FROM "users"
|
|
1040
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "posts"[0m
|
|
1041
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
1042
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
1043
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
1044
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1045
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
1046
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1047
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" varchar, "retries" integer DEFAULT 0, "last_error" text, "source_table" varchar, "target_table" varchar, "slices" integer, "first_record" varchar, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1048
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160503214955"]]
|
|
1049
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
1050
|
+
Migrating to CreateTestTables (20160504120421)
|
|
1051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1052
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
1053
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime)
|
|
1054
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
1055
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
1056
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
1057
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
1058
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
1059
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
1060
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
1061
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
1062
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
1063
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
1064
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
1065
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
1066
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1067
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "rails_redshift_replicator_deleted_ids" ("source_table" varchar, "object_id" integer) [0m
|
|
1068
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509193335"]]
|
|
1069
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
1070
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509225445)
|
|
1071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1072
|
+
[1m[36m (0.2ms)[0m [1mDROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
1073
|
+
[0m
|
|
1074
|
+
[1m[35m (0.3ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1075
|
+
FOR EACH ROW
|
|
1076
|
+
BEGIN
|
|
1077
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1078
|
+
END;
|
|
1079
|
+
|
|
1080
|
+
[1m[36m (0.0ms)[0m [1mDROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
1081
|
+
[0m
|
|
1082
|
+
[1m[35m (0.2ms)[0m CREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
1083
|
+
FOR EACH ROW
|
|
1084
|
+
BEGIN
|
|
1085
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('tags', OLD.id);
|
|
1086
|
+
END;
|
|
1087
|
+
|
|
1088
|
+
[1m[36m (0.0ms)[0m [1mDROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
1089
|
+
[0m
|
|
1090
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
1091
|
+
FOR EACH ROW
|
|
1092
|
+
BEGIN
|
|
1093
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('users', OLD.id);
|
|
1094
|
+
END;
|
|
1095
|
+
|
|
1096
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509225445"]]
|
|
1097
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
1098
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1099
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
|
1100
|
+
FROM sqlite_master
|
|
1101
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1102
|
+
UNION ALL
|
|
1103
|
+
SELECT sql
|
|
1104
|
+
FROM sqlite_temp_master
|
|
1105
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1106
|
+
|
|
1107
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1108
|
+
FROM sqlite_master
|
|
1109
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1110
|
+
UNION ALL
|
|
1111
|
+
SELECT sql
|
|
1112
|
+
FROM sqlite_temp_master
|
|
1113
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1114
|
+
[0m
|
|
1115
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1116
|
+
FROM sqlite_master
|
|
1117
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1118
|
+
UNION ALL
|
|
1119
|
+
SELECT sql
|
|
1120
|
+
FROM sqlite_temp_master
|
|
1121
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1122
|
+
|
|
1123
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1124
|
+
FROM sqlite_master
|
|
1125
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1126
|
+
UNION ALL
|
|
1127
|
+
SELECT sql
|
|
1128
|
+
FROM sqlite_temp_master
|
|
1129
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1130
|
+
[0m
|
|
1131
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1133
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1134
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1135
|
+
FROM sqlite_master
|
|
1136
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1137
|
+
UNION ALL
|
|
1138
|
+
SELECT sql
|
|
1139
|
+
FROM sqlite_temp_master
|
|
1140
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1141
|
+
[0m
|
|
1142
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1143
|
+
FROM sqlite_master
|
|
1144
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1145
|
+
UNION ALL
|
|
1146
|
+
SELECT sql
|
|
1147
|
+
FROM sqlite_temp_master
|
|
1148
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1149
|
+
|
|
1150
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1151
|
+
FROM sqlite_master
|
|
1152
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1153
|
+
UNION ALL
|
|
1154
|
+
SELECT sql
|
|
1155
|
+
FROM sqlite_temp_master
|
|
1156
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1157
|
+
[0m
|
|
1158
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1159
|
+
FROM sqlite_master
|
|
1160
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1161
|
+
UNION ALL
|
|
1162
|
+
SELECT sql
|
|
1163
|
+
FROM sqlite_temp_master
|
|
1164
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1165
|
+
|
|
1166
|
+
[1m[36m (0.1ms)[0m [1mSELECT name, sql FROM sqlite_master WHERE type = 'trigger' [0m
|
|
1167
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1168
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
1169
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
1170
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
1171
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1172
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
1173
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1174
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" varchar, "retries" integer DEFAULT 0, "last_error" text, "source_table" varchar, "target_table" varchar, "slices" integer, "first_record" varchar, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1175
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160503214955"]]
|
|
1176
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
1177
|
+
Migrating to CreateTestTables (20160504120421)
|
|
1178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1179
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:9)
|
|
1180
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime, "updated_at" datetime)
|
|
1181
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
1182
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:16)
|
|
1183
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime, "updated_at" datetime)
|
|
1184
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
1185
|
+
DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/alexandreangelim/github/rails_redshift_replicator/spec/dummy/db/migrate/20160504120421_create_test_tables.rb:22)
|
|
1186
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
|
|
1187
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
1188
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
1189
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
1190
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
1191
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
1192
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
1193
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1194
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "rails_redshift_replicator_deleted_ids" ("source_table" varchar, "object_id" integer) [0m
|
|
1195
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_rails_redshift_replicator_deleted_ids_on_source_table" ON "rails_redshift_replicator_deleted_ids" ("source_table")
|
|
1196
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509193335"]]
|
|
1197
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
1198
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509225445)
|
|
1199
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1200
|
+
[1m[35m (0.1ms)[0m DROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
1201
|
+
|
|
1202
|
+
[1m[36m (0.3ms)[0m [1mCREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1203
|
+
FOR EACH ROW
|
|
1204
|
+
BEGIN
|
|
1205
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1206
|
+
END;
|
|
1207
|
+
[0m
|
|
1208
|
+
[1m[35m (0.1ms)[0m DROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
1209
|
+
|
|
1210
|
+
[1m[36m (0.1ms)[0m [1mCREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
1211
|
+
FOR EACH ROW
|
|
1212
|
+
BEGIN
|
|
1213
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('tags', OLD.id);
|
|
1214
|
+
END;
|
|
1215
|
+
[0m
|
|
1216
|
+
[1m[35m (0.0ms)[0m DROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
1217
|
+
|
|
1218
|
+
[1m[36m (0.1ms)[0m [1mCREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
1219
|
+
FOR EACH ROW
|
|
1220
|
+
BEGIN
|
|
1221
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('users', OLD.id);
|
|
1222
|
+
END;
|
|
1223
|
+
[0m
|
|
1224
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509225445"]]
|
|
1225
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
1226
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1227
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1228
|
+
FROM sqlite_master
|
|
1229
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1230
|
+
UNION ALL
|
|
1231
|
+
SELECT sql
|
|
1232
|
+
FROM sqlite_temp_master
|
|
1233
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1234
|
+
[0m
|
|
1235
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
|
1236
|
+
FROM sqlite_master
|
|
1237
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1238
|
+
UNION ALL
|
|
1239
|
+
SELECT sql
|
|
1240
|
+
FROM sqlite_temp_master
|
|
1241
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1242
|
+
|
|
1243
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1244
|
+
FROM sqlite_master
|
|
1245
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1246
|
+
UNION ALL
|
|
1247
|
+
SELECT sql
|
|
1248
|
+
FROM sqlite_temp_master
|
|
1249
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1250
|
+
[0m
|
|
1251
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1252
|
+
FROM sqlite_master
|
|
1253
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1254
|
+
UNION ALL
|
|
1255
|
+
SELECT sql
|
|
1256
|
+
FROM sqlite_temp_master
|
|
1257
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1258
|
+
|
|
1259
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1260
|
+
FROM sqlite_master
|
|
1261
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1262
|
+
UNION ALL
|
|
1263
|
+
SELECT sql
|
|
1264
|
+
FROM sqlite_temp_master
|
|
1265
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1266
|
+
[0m
|
|
1267
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1268
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1269
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1270
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1271
|
+
FROM sqlite_master
|
|
1272
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1273
|
+
UNION ALL
|
|
1274
|
+
SELECT sql
|
|
1275
|
+
FROM sqlite_temp_master
|
|
1276
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1277
|
+
[0m
|
|
1278
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1279
|
+
FROM sqlite_master
|
|
1280
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1281
|
+
UNION ALL
|
|
1282
|
+
SELECT sql
|
|
1283
|
+
FROM sqlite_temp_master
|
|
1284
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1285
|
+
|
|
1286
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1287
|
+
FROM sqlite_master
|
|
1288
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1289
|
+
UNION ALL
|
|
1290
|
+
SELECT sql
|
|
1291
|
+
FROM sqlite_temp_master
|
|
1292
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1293
|
+
[0m
|
|
1294
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1295
|
+
FROM sqlite_master
|
|
1296
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1297
|
+
UNION ALL
|
|
1298
|
+
SELECT sql
|
|
1299
|
+
FROM sqlite_temp_master
|
|
1300
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1301
|
+
|
|
1302
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1303
|
+
FROM sqlite_master
|
|
1304
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1305
|
+
UNION ALL
|
|
1306
|
+
SELECT sql
|
|
1307
|
+
FROM sqlite_temp_master
|
|
1308
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1309
|
+
[0m
|
|
1310
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1311
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1312
|
+
[1m[36m (123.3ms)[0m [1mDROP DATABASE IF EXISTS "rails_redshift_replicator_test"[0m
|
|
1313
|
+
[1m[35m (344.3ms)[0m CREATE DATABASE "rails_redshift_replicator_test" ENCODING = 'utf8'
|
|
1314
|
+
[1m[36m (37.0ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "user_id" integer, "content" text, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
1315
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")
|
|
1316
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "rails_redshift_replicator_deleted_ids" ("source_table" character varying, "object_id" integer) [0m
|
|
1317
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_rails_redshift_replicator_deleted_ids_on_source_table" ON "rails_redshift_replicator_deleted_ids" ("source_table")
|
|
1318
|
+
[1m[36m (26.2ms)[0m [1mCREATE TABLE "rails_redshift_replicator_replications" ("id" serial primary key, "replication_type" character varying, "key" character varying, "state" character varying DEFAULT 'enqueued', "last_record" character varying, "retries" integer DEFAULT 0, "last_error" text, "source_table" character varying, "target_table" character varying, "slices" integer, "first_record" character varying, "record_count" integer, "export_format" character varying, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
|
1319
|
+
[1m[35m (3.4ms)[0m CREATE TABLE "tags" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp)
|
|
1320
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
1321
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
1322
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
1323
|
+
[1m[35m (3.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "login" character varying, "password" character varying, "age" integer, "confirmed" boolean, "created_at" timestamp, "updated_at" timestamp)
|
|
1324
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
1325
|
+
[1m[35m (0.6ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1326
|
+
FOR EACH ROW
|
|
1327
|
+
BEGIN
|
|
1328
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1329
|
+
END;
|
|
1330
|
+
|
|
1331
|
+
[1m[36m (186.1ms)[0m [1mDROP DATABASE IF EXISTS `rails_redshift_replicator_test`[0m
|
|
1332
|
+
[1m[35m (7.4ms)[0m CREATE DATABASE `rails_redshift_replicator_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
|
1333
|
+
[1m[36m (32.6ms)[0m [1mCREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `content` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
|
1334
|
+
[1m[35m (26.4ms)[0m CREATE INDEX `index_posts_on_user_id_and_updated_at` ON `posts` (`user_id`, `updated_at`)
|
|
1335
|
+
[1m[36m (24.1ms)[0m [1mCREATE TABLE `rails_redshift_replicator_deleted_ids` (`source_table` varchar(255), `object_id` int(11)) ENGINE=InnoDB[0m
|
|
1336
|
+
[1m[35m (18.3ms)[0m CREATE INDEX `index_rails_redshift_replicator_deleted_ids_on_source_table` ON `rails_redshift_replicator_deleted_ids` (`source_table`)
|
|
1337
|
+
[1m[36m (41.6ms)[0m [1mCREATE TABLE `rails_redshift_replicator_replications` (`id` int(11) auto_increment PRIMARY KEY, `replication_type` varchar(255), `key` varchar(255), `state` varchar(255) DEFAULT 'enqueued', `last_record` varchar(255), `retries` int(11) DEFAULT 0, `last_error` text, `source_table` varchar(255), `target_table` varchar(255), `slices` int(11), `first_record` varchar(255), `record_count` int(11), `export_format` varchar(255), `export_duration` int(11), `upload_duration` int(11), `import_duration` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
|
1338
|
+
[1m[35m (16.8ms)[0m CREATE TABLE `tags` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
|
1339
|
+
[1m[36m (25.2ms)[0m [1mCREATE INDEX `index_tags_on_name_and_updated_at` ON `tags` (`name`, `updated_at`) [0m
|
|
1340
|
+
[1m[35m (48.2ms)[0m CREATE TABLE `tags_users` (`user_id` int(11), `tag_id` int(11)) ENGINE=InnoDB
|
|
1341
|
+
[1m[36m (15.7ms)[0m [1mCREATE INDEX `index_tags_users_on_user_id_and_tag_id` ON `tags_users` (`user_id`, `tag_id`) [0m
|
|
1342
|
+
[1m[35m (16.6ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `age` int(11), `confirmed` tinyint(1), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
|
1343
|
+
[1m[36m (14.6ms)[0m [1mCREATE INDEX `index_users_on_login_and_age` ON `users` (`login`, `age`) [0m
|
|
1344
|
+
[1m[35m (0.3ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1345
|
+
FOR EACH ROW
|
|
1346
|
+
BEGIN
|
|
1347
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1348
|
+
END;
|
|
1349
|
+
|
|
1350
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
1351
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
1352
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
1353
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1354
|
+
Migrating to CreateRailsRedshiftReplicatorReplications (20160503214955)
|
|
1355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1356
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "rails_redshift_replicator_replications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "replication_type" varchar, "key" varchar, "state" varchar DEFAULT 'enqueued', "last_record" varchar, "retries" integer DEFAULT 0, "last_error" text, "source_table" varchar, "target_table" varchar, "slices" integer, "first_record" varchar, "record_count" integer, "export_format" varchar, "export_duration" integer, "upload_duration" integer, "import_duration" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1357
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160503214955"]]
|
|
1358
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
1359
|
+
Migrating to CreateTestTables (20160504120421)
|
|
1360
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1361
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1362
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
1363
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1364
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
1365
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1366
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
1367
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
1368
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
1369
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
1370
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
1371
|
+
Migrating to CreateTableRailsRedshiftReplicatorDeletedIds (20160509193335)
|
|
1372
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1373
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "rails_redshift_replicator_deleted_ids" ("source_table" varchar, "object_id" integer) [0m
|
|
1374
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_rails_redshift_replicator_deleted_ids_on_source_table" ON "rails_redshift_replicator_deleted_ids" ("source_table")
|
|
1375
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509193335"]]
|
|
1376
|
+
[1m[35m (0.6ms)[0m commit transaction
|
|
1377
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509225445)
|
|
1378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1379
|
+
[1m[35m (0.1ms)[0m DROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
1380
|
+
|
|
1381
|
+
[1m[36m (0.3ms)[0m [1mCREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1382
|
+
FOR EACH ROW
|
|
1383
|
+
BEGIN
|
|
1384
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1385
|
+
END;
|
|
1386
|
+
[0m
|
|
1387
|
+
[1m[35m (0.1ms)[0m DROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
1388
|
+
|
|
1389
|
+
[1m[36m (0.1ms)[0m [1mCREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
1390
|
+
FOR EACH ROW
|
|
1391
|
+
BEGIN
|
|
1392
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('tags', OLD.id);
|
|
1393
|
+
END;
|
|
1394
|
+
[0m
|
|
1395
|
+
[1m[35m (0.0ms)[0m DROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
1396
|
+
|
|
1397
|
+
[1m[36m (0.2ms)[0m [1mCREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
1398
|
+
FOR EACH ROW
|
|
1399
|
+
BEGIN
|
|
1400
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('users', OLD.id);
|
|
1401
|
+
END;
|
|
1402
|
+
[0m
|
|
1403
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160509225445"]]
|
|
1404
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
1405
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1406
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1407
|
+
FROM sqlite_master
|
|
1408
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1409
|
+
UNION ALL
|
|
1410
|
+
SELECT sql
|
|
1411
|
+
FROM sqlite_temp_master
|
|
1412
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1413
|
+
[0m
|
|
1414
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1415
|
+
FROM sqlite_master
|
|
1416
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1417
|
+
UNION ALL
|
|
1418
|
+
SELECT sql
|
|
1419
|
+
FROM sqlite_temp_master
|
|
1420
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1421
|
+
|
|
1422
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1423
|
+
FROM sqlite_master
|
|
1424
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1425
|
+
UNION ALL
|
|
1426
|
+
SELECT sql
|
|
1427
|
+
FROM sqlite_temp_master
|
|
1428
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1429
|
+
[0m
|
|
1430
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1431
|
+
FROM sqlite_master
|
|
1432
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1433
|
+
UNION ALL
|
|
1434
|
+
SELECT sql
|
|
1435
|
+
FROM sqlite_temp_master
|
|
1436
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1437
|
+
|
|
1438
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1439
|
+
FROM sqlite_master
|
|
1440
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1441
|
+
UNION ALL
|
|
1442
|
+
SELECT sql
|
|
1443
|
+
FROM sqlite_temp_master
|
|
1444
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1445
|
+
[0m
|
|
1446
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1447
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1448
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1449
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1450
|
+
FROM sqlite_master
|
|
1451
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1452
|
+
UNION ALL
|
|
1453
|
+
SELECT sql
|
|
1454
|
+
FROM sqlite_temp_master
|
|
1455
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1456
|
+
[0m
|
|
1457
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1458
|
+
FROM sqlite_master
|
|
1459
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1460
|
+
UNION ALL
|
|
1461
|
+
SELECT sql
|
|
1462
|
+
FROM sqlite_temp_master
|
|
1463
|
+
WHERE name='index_rails_redshift_replicator_deleted_ids_on_source_table' AND type='index'
|
|
1464
|
+
|
|
1465
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1466
|
+
FROM sqlite_master
|
|
1467
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1468
|
+
UNION ALL
|
|
1469
|
+
SELECT sql
|
|
1470
|
+
FROM sqlite_temp_master
|
|
1471
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1472
|
+
[0m
|
|
1473
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1474
|
+
FROM sqlite_master
|
|
1475
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1476
|
+
UNION ALL
|
|
1477
|
+
SELECT sql
|
|
1478
|
+
FROM sqlite_temp_master
|
|
1479
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1480
|
+
|
|
1481
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1482
|
+
FROM sqlite_master
|
|
1483
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1484
|
+
UNION ALL
|
|
1485
|
+
SELECT sql
|
|
1486
|
+
FROM sqlite_temp_master
|
|
1487
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1488
|
+
[0m
|
|
1489
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1490
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1491
|
+
[1m[36m (1.3ms)[0m [1mDROP DATABASE IF EXISTS `rails_redshift_replicator_test`[0m
|
|
1492
|
+
[1m[35m (6.5ms)[0m CREATE DATABASE `rails_redshift_replicator_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
|
1493
|
+
[1m[36m (43.6ms)[0m [1mCREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `content` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
|
1494
|
+
[1m[35m (25.3ms)[0m CREATE INDEX `index_posts_on_user_id_and_updated_at` ON `posts` (`user_id`, `updated_at`)
|
|
1495
|
+
[1m[36m (29.6ms)[0m [1mCREATE TABLE `rails_redshift_replicator_deleted_ids` (`source_table` varchar(255), `object_id` int(11)) ENGINE=InnoDB[0m
|
|
1496
|
+
[1m[35m (20.8ms)[0m CREATE INDEX `index_rails_redshift_replicator_deleted_ids_on_source_table` ON `rails_redshift_replicator_deleted_ids` (`source_table`)
|
|
1497
|
+
[1m[36m (27.5ms)[0m [1mCREATE TABLE `rails_redshift_replicator_replications` (`id` int(11) auto_increment PRIMARY KEY, `replication_type` varchar(255), `key` varchar(255), `state` varchar(255) DEFAULT 'enqueued', `last_record` varchar(255), `retries` int(11) DEFAULT 0, `last_error` text, `source_table` varchar(255), `target_table` varchar(255), `slices` int(11), `first_record` varchar(255), `record_count` int(11), `export_format` varchar(255), `export_duration` int(11), `upload_duration` int(11), `import_duration` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
|
1498
|
+
[1m[35m (23.1ms)[0m CREATE TABLE `tags` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
|
1499
|
+
[1m[36m (23.4ms)[0m [1mCREATE INDEX `index_tags_on_name_and_updated_at` ON `tags` (`name`, `updated_at`) [0m
|
|
1500
|
+
[1m[35m (28.1ms)[0m CREATE TABLE `tags_users` (`user_id` int(11), `tag_id` int(11)) ENGINE=InnoDB
|
|
1501
|
+
[1m[36m (19.7ms)[0m [1mCREATE INDEX `index_tags_users_on_user_id_and_tag_id` ON `tags_users` (`user_id`, `tag_id`) [0m
|
|
1502
|
+
[1m[35m (18.1ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `age` int(11), `confirmed` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
|
1503
|
+
[1m[36m (21.8ms)[0m [1mCREATE INDEX `index_users_on_login_and_age` ON `users` (`login`, `age`) [0m
|
|
1504
|
+
[1m[35m (0.4ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1505
|
+
FOR EACH ROW
|
|
1506
|
+
BEGIN
|
|
1507
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1508
|
+
END;
|
|
1509
|
+
|
|
1510
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
1511
|
+
[1m[35m (0.7ms)[0m select sqlite_version(*)
|
|
1512
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
1513
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1514
|
+
Migrating to CreateTestTables (20160504120421)
|
|
1515
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1516
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "age" integer, "confirmed" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1517
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_login_and_age" ON "users" ("login", "age")[0m
|
|
1518
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1519
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_posts_on_user_id_and_updated_at" ON "posts" ("user_id", "updated_at")[0m
|
|
1520
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
1521
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_on_name_and_updated_at" ON "tags" ("name", "updated_at")[0m
|
|
1522
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "tags_users" ("user_id" integer, "tag_id" integer)
|
|
1523
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tags_users_on_user_id_and_tag_id" ON "tags_users" ("user_id", "tag_id")[0m
|
|
1524
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160504120421"]]
|
|
1525
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
1526
|
+
Migrating to CreateTriggersPostsDeleteOrTagsDeleteOrUsersDelete (20160509225445)
|
|
1527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1528
|
+
[1m[36m (0.8ms)[0m [1mDROP TRIGGER IF EXISTS posts_after_delete_row_tr;
|
|
1529
|
+
[0m
|
|
1530
|
+
[1m[35m (0.4ms)[0m CREATE TRIGGER posts_after_delete_row_tr AFTER DELETE ON "posts"
|
|
1531
|
+
FOR EACH ROW
|
|
1532
|
+
BEGIN
|
|
1533
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('posts', OLD.id);
|
|
1534
|
+
END;
|
|
1535
|
+
|
|
1536
|
+
[1m[36m (0.1ms)[0m [1mDROP TRIGGER IF EXISTS tags_after_delete_row_tr;
|
|
1537
|
+
[0m
|
|
1538
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER tags_after_delete_row_tr AFTER DELETE ON "tags"
|
|
1539
|
+
FOR EACH ROW
|
|
1540
|
+
BEGIN
|
|
1541
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('tags', OLD.id);
|
|
1542
|
+
END;
|
|
1543
|
+
|
|
1544
|
+
[1m[36m (0.0ms)[0m [1mDROP TRIGGER IF EXISTS users_after_delete_row_tr;
|
|
1545
|
+
[0m
|
|
1546
|
+
[1m[35m (0.1ms)[0m CREATE TRIGGER users_after_delete_row_tr AFTER DELETE ON "users"
|
|
1547
|
+
FOR EACH ROW
|
|
1548
|
+
BEGIN
|
|
1549
|
+
INSERT INTO rails_redshift_replicator_deleted_ids(source_table, object_id) VALUES('users', OLD.id);
|
|
1550
|
+
END;
|
|
1551
|
+
|
|
1552
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160509225445"]]
|
|
1553
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
1554
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1555
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
|
1556
|
+
FROM sqlite_master
|
|
1557
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1558
|
+
UNION ALL
|
|
1559
|
+
SELECT sql
|
|
1560
|
+
FROM sqlite_temp_master
|
|
1561
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1562
|
+
|
|
1563
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1564
|
+
FROM sqlite_master
|
|
1565
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1566
|
+
UNION ALL
|
|
1567
|
+
SELECT sql
|
|
1568
|
+
FROM sqlite_temp_master
|
|
1569
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1570
|
+
[0m
|
|
1571
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1572
|
+
FROM sqlite_master
|
|
1573
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1574
|
+
UNION ALL
|
|
1575
|
+
SELECT sql
|
|
1576
|
+
FROM sqlite_temp_master
|
|
1577
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1578
|
+
|
|
1579
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
1580
|
+
FROM sqlite_master
|
|
1581
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1582
|
+
UNION ALL
|
|
1583
|
+
SELECT sql
|
|
1584
|
+
FROM sqlite_temp_master
|
|
1585
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1586
|
+
[0m
|
|
1587
|
+
[1m[35m (0.1ms)[0m SELECT name, sql FROM sqlite_master WHERE type = 'trigger'
|
|
1588
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1589
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1590
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1591
|
+
FROM sqlite_master
|
|
1592
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1593
|
+
UNION ALL
|
|
1594
|
+
SELECT sql
|
|
1595
|
+
FROM sqlite_temp_master
|
|
1596
|
+
WHERE name='index_posts_on_user_id_and_updated_at' AND type='index'
|
|
1597
|
+
[0m
|
|
1598
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
|
1599
|
+
FROM sqlite_master
|
|
1600
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1601
|
+
UNION ALL
|
|
1602
|
+
SELECT sql
|
|
1603
|
+
FROM sqlite_temp_master
|
|
1604
|
+
WHERE name='index_tags_on_name_and_updated_at' AND type='index'
|
|
1605
|
+
|
|
1606
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
1607
|
+
FROM sqlite_master
|
|
1608
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1609
|
+
UNION ALL
|
|
1610
|
+
SELECT sql
|
|
1611
|
+
FROM sqlite_temp_master
|
|
1612
|
+
WHERE name='index_tags_users_on_user_id_and_tag_id' AND type='index'
|
|
1613
|
+
[0m
|
|
1614
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
1615
|
+
FROM sqlite_master
|
|
1616
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1617
|
+
UNION ALL
|
|
1618
|
+
SELECT sql
|
|
1619
|
+
FROM sqlite_temp_master
|
|
1620
|
+
WHERE name='index_users_on_login_and_age' AND type='index'
|
|
1621
|
+
|
|
1622
|
+
[1m[36m (0.1ms)[0m [1mSELECT name, sql FROM sqlite_master WHERE type = 'trigger' [0m
|
|
1623
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|