rules_engine 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/VERSION +1 -1
  2. data/lib/rules_engine.rb +2 -2
  3. data/lib/rules_engine/discovery.rb +1 -1
  4. data/lib/rules_engine/process/runner.rb +3 -3
  5. data/lib/rules_engine/rule/definition.rb +85 -0
  6. data/lib/rules_engine/rule/outcome.rb +19 -0
  7. data/rails_generators/manifests/complex.rb +30 -0
  8. data/rails_generators/manifests/complex.yml +24 -0
  9. data/rails_generators/manifests/simple.rb +26 -0
  10. data/rails_generators/manifests/simple.yml +21 -0
  11. data/rails_generators/rules_engine_generator.rb +2 -2
  12. data/rails_generators/templates/app/models/re_rule.rb +4 -4
  13. data/rails_generators/templates/app/models/re_rule_expected_outcome.rb +1 -1
  14. data/rails_generators/templates/app/rules/complex.rb +133 -0
  15. data/rails_generators/templates/app/rules/simple.rb +83 -0
  16. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_edit.html.erb +0 -0
  17. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_help.html.erb +0 -0
  18. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_new.html.erb +0 -0
  19. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_script.html.erb +0 -0
  20. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_title.html.erb +0 -0
  21. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_word.html.erb +0 -0
  22. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_words.html.erb +0 -0
  23. data/rails_generators/templates/app/views/re_rule_definitions/{rule_complex → complex}/_workflow.html.erb +0 -0
  24. data/rails_generators/templates/app/views/re_rule_definitions/simple/_edit.html.erb +1 -0
  25. data/rails_generators/templates/app/views/re_rule_definitions/simple/_form.html.erb +16 -0
  26. data/rails_generators/templates/app/views/re_rule_definitions/simple/_help.html.erb +1 -0
  27. data/rails_generators/templates/app/views/re_rule_definitions/simple/_new.html.erb +1 -0
  28. data/rails_generators/templates/doc/README.rules_engine +1 -1
  29. data/rails_generators/templates/spec/lib/rules/{rule_complex_spec.rb → complex_spec.rb} +30 -30
  30. data/rails_generators/templates/spec/lib/rules/simple_spec.rb +161 -0
  31. data/rails_generators/templates/spec/models/re_rule_expected_outcome_spec.rb +3 -3
  32. data/rails_generators/templates/spec/models/re_rule_spec.rb +11 -11
  33. data/spec/railsenv/app/rules/mock_rule.rb +9 -10
  34. data/spec/railsenv/log/debug.log +1356 -0
  35. data/spec/railsenv/log/test.log +78 -0
  36. data/spec/rules_engine/discovery_spec.rb +17 -7
  37. data/spec/rules_engine/process/runner_spec.rb +8 -8
  38. data/spec/rules_engine/{rule_spec.rb → rule/definition_spec.rb} +17 -17
  39. metadata +27 -27
  40. data/lib/rules_engine/rule.rb +0 -84
  41. data/lib/rules_engine/rule_outcome.rb +0 -17
  42. data/rails_generators/manifests/rule_complex.rb +0 -30
  43. data/rails_generators/manifests/rule_complex.yml +0 -24
  44. data/rails_generators/manifests/rule_simple.rb +0 -26
  45. data/rails_generators/manifests/rule_simple.yml +0 -21
  46. data/rails_generators/templates/app/rules/rule_complex.rb +0 -130
  47. data/rails_generators/templates/app/rules/rule_simple.rb +0 -79
  48. data/rails_generators/templates/app/views/re_rule_definitions/rule_simple/_edit.html.erb +0 -1
  49. data/rails_generators/templates/app/views/re_rule_definitions/rule_simple/_form.html.erb +0 -16
  50. data/rails_generators/templates/app/views/re_rule_definitions/rule_simple/_help.html.erb +0 -1
  51. data/rails_generators/templates/app/views/re_rule_definitions/rule_simple/_new.html.erb +0 -1
  52. data/rails_generators/templates/spec/lib/rules/rule_simple_spec.rb +0 -161
@@ -1,11 +1,10 @@
1
1
  # STUB FILE FOR RULES TESTING
2
-
3
- class MockRule
4
- def self.options
5
- return {:group => 'mock group'}
6
- end
7
-
8
- def self.rule_class_name
9
- return self.name.classify
10
- end
11
- end
2
+ module RulesEngine
3
+ module Rule
4
+ class MockRule < RulesEngine::Rule::Definition
5
+ def self.options
6
+ return {:group => 'mock group'}
7
+ end
8
+ end
9
+ end
10
+ end
@@ -7059,3 +7059,1359 @@
7059
7059
  RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 06:08:31', 1001, 1, 'message 3')
7060
7060
  RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 06:06:31', 1002, 1, 'message 4')
7061
7061
  RulesEngine::Process::ReProcessAudit Load (0.3ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
7062
+ SQL (0.3ms) select sqlite_version(*)
7063
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7064
+ SQL (0.1ms)  SELECT name
7065
+ FROM sqlite_master
7066
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7067
+ 
7068
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7069
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7070
+ SQL (0.1ms)  SELECT name
7071
+ FROM sqlite_master
7072
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7073
+ 
7074
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7075
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7076
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7077
+ SQL (0.2ms)  SELECT name
7078
+ FROM sqlite_master
7079
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7080
+ 
7081
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7082
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7083
+ SQL (0.2ms)  SELECT name
7084
+ FROM sqlite_master
7085
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7086
+ 
7087
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7088
+ SQL (0.2ms) select sqlite_version(*)
7089
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7090
+ SQL (0.1ms)  SELECT name
7091
+ FROM sqlite_master
7092
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7093
+ 
7094
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7095
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7096
+ SQL (0.1ms)  SELECT name
7097
+ FROM sqlite_master
7098
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7099
+ 
7100
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7101
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7102
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7103
+ SQL (0.2ms)  SELECT name
7104
+ FROM sqlite_master
7105
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7106
+ 
7107
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7108
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7109
+ SQL (0.2ms)  SELECT name
7110
+ FROM sqlite_master
7111
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7112
+ 
7113
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7114
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7115
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7116
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7117
+ RulesEngine::Publish::RePublishedPlan Load (0.5ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
7118
+ RulesEngine::Publish::RePublishedPlan Load (1.0ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
7119
+ RulesEngine::Publish::RePublishedPlan Create (0.2ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7120
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7121
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7122
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
7123
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7124
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7125
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7126
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7127
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7128
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7129
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7130
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7131
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7132
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7133
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7134
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7135
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7136
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
7137
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 0, NULL)
7138
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 1, '2010-07-21 09:46:32')
7139
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:47:32', 'mock_code', 2, '2010-07-21 09:45:32')
7140
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:48:32', 'mock_code', 3, '2010-07-21 09:44:32')
7141
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'invalid_dates', 1, '2010-07-21 09:43:32')
7142
+ RulesEngine::Process::ReProcessRun Load (0.4ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
7143
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 0, NULL)
7144
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 1, '2010-07-21 09:46:32')
7145
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:47:32', 'mock_code', 2, '2010-07-21 09:45:32')
7146
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:48:32', 'mock_code', 3, '2010-07-21 09:44:32')
7147
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'invalid_dates', 1, '2010-07-21 09:43:32')
7148
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 0, NULL)
7149
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'mock_code', 1, '2010-07-21 09:46:32')
7150
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:47:32', 'mock_code', 2, '2010-07-21 09:45:32')
7151
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', '2010-07-21 09:48:32', 'mock_code', 3, '2010-07-21 09:44:32')
7152
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:46:32', NULL, 'invalid_dates', 1, '2010-07-21 09:43:32')
7153
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:46:32', 1001, 1, 'message 1')
7154
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:47:32', 1001, 1, 'message 2')
7155
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:48:32', 1001, 1, 'message 3')
7156
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:46:32', 1002, 1, 'message 4')
7157
+ RulesEngine::Process::ReProcessAudit Load (0.3ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
7158
+ SQL (0.4ms) select sqlite_version(*)
7159
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7160
+ SQL (0.1ms)  SELECT name
7161
+ FROM sqlite_master
7162
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7163
+ 
7164
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7165
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7166
+ SQL (0.1ms)  SELECT name
7167
+ FROM sqlite_master
7168
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7169
+ 
7170
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7171
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7172
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7173
+ SQL (0.2ms)  SELECT name
7174
+ FROM sqlite_master
7175
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7176
+ 
7177
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7178
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7179
+ SQL (0.2ms)  SELECT name
7180
+ FROM sqlite_master
7181
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7182
+ 
7183
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7184
+ SQL (0.4ms) select sqlite_version(*)
7185
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7186
+ SQL (0.1ms)  SELECT name
7187
+ FROM sqlite_master
7188
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7189
+ 
7190
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7191
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7192
+ SQL (0.1ms)  SELECT name
7193
+ FROM sqlite_master
7194
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7195
+ 
7196
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7197
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7198
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7199
+ SQL (0.2ms)  SELECT name
7200
+ FROM sqlite_master
7201
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7202
+ 
7203
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7204
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7205
+ SQL (0.2ms)  SELECT name
7206
+ FROM sqlite_master
7207
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7208
+ 
7209
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7210
+ SQL (0.3ms) select sqlite_version(*)
7211
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7212
+ SQL (0.1ms)  SELECT name
7213
+ FROM sqlite_master
7214
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7215
+ 
7216
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7217
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7218
+ SQL (0.1ms)  SELECT name
7219
+ FROM sqlite_master
7220
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7221
+ 
7222
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7223
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7224
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7225
+ SQL (0.2ms)  SELECT name
7226
+ FROM sqlite_master
7227
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7228
+ 
7229
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7230
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7231
+ SQL (0.2ms)  SELECT name
7232
+ FROM sqlite_master
7233
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7234
+ 
7235
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7236
+ SQL (0.4ms) select sqlite_version(*)
7237
+ SQL (0.6ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7238
+ SQL (0.1ms)  SELECT name
7239
+ FROM sqlite_master
7240
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7241
+ 
7242
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7243
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7244
+ SQL (0.1ms)  SELECT name
7245
+ FROM sqlite_master
7246
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7247
+ 
7248
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7249
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7250
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7251
+ SQL (0.1ms)  SELECT name
7252
+ FROM sqlite_master
7253
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7254
+ 
7255
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7256
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7257
+ SQL (0.2ms)  SELECT name
7258
+ FROM sqlite_master
7259
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7260
+ 
7261
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7262
+ SQL (1.0ms) select sqlite_version(*)
7263
+ SQL (0.7ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7264
+ SQL (1.3ms)  SELECT name
7265
+ FROM sqlite_master
7266
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7267
+ 
7268
+ SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7269
+ SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7270
+ SQL (0.4ms)  SELECT name
7271
+ FROM sqlite_master
7272
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7273
+ 
7274
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7275
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7276
+ SQL (0.3ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7277
+ SQL (0.2ms)  SELECT name
7278
+ FROM sqlite_master
7279
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7280
+ 
7281
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7282
+ SQL (0.3ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7283
+ SQL (0.2ms)  SELECT name
7284
+ FROM sqlite_master
7285
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7286
+ 
7287
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7288
+ SQL (0.2ms) select sqlite_version(*)
7289
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7290
+ SQL (0.1ms)  SELECT name
7291
+ FROM sqlite_master
7292
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7293
+ 
7294
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7295
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7296
+ SQL (0.3ms)  SELECT name
7297
+ FROM sqlite_master
7298
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7299
+ 
7300
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7301
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7302
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7303
+ SQL (0.2ms)  SELECT name
7304
+ FROM sqlite_master
7305
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7306
+ 
7307
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7308
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7309
+ SQL (0.2ms)  SELECT name
7310
+ FROM sqlite_master
7311
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7312
+ 
7313
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7314
+ SQL (0.4ms) select sqlite_version(*)
7315
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7316
+ SQL (0.1ms)  SELECT name
7317
+ FROM sqlite_master
7318
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7319
+ 
7320
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7321
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7322
+ SQL (0.2ms)  SELECT name
7323
+ FROM sqlite_master
7324
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7325
+ 
7326
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7327
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7328
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7329
+ SQL (0.2ms)  SELECT name
7330
+ FROM sqlite_master
7331
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7332
+ 
7333
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7334
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7335
+ SQL (0.2ms)  SELECT name
7336
+ FROM sqlite_master
7337
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7338
+ 
7339
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7340
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7341
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7342
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7343
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
7344
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
7345
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7346
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7347
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7348
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
7349
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7350
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7351
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7352
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7353
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7354
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7355
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7356
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7357
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7358
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7359
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7360
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7361
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7362
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
7363
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 0, NULL)
7364
+ RulesEngine::Process::ReProcessRun Create (0.2ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 1, '2010-07-21 09:57:21')
7365
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:58:21', 'mock_code', 2, '2010-07-21 09:56:21')
7366
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:59:21', 'mock_code', 3, '2010-07-21 09:55:21')
7367
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'invalid_dates', 1, '2010-07-21 09:54:21')
7368
+ RulesEngine::Process::ReProcessRun Load (0.5ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
7369
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 0, NULL)
7370
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 1, '2010-07-21 09:57:21')
7371
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:58:21', 'mock_code', 2, '2010-07-21 09:56:21')
7372
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:59:21', 'mock_code', 3, '2010-07-21 09:55:21')
7373
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'invalid_dates', 1, '2010-07-21 09:54:21')
7374
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 0, NULL)
7375
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'mock_code', 1, '2010-07-21 09:57:21')
7376
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:58:21', 'mock_code', 2, '2010-07-21 09:56:21')
7377
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', '2010-07-21 09:59:21', 'mock_code', 3, '2010-07-21 09:55:21')
7378
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 09:57:21', NULL, 'invalid_dates', 1, '2010-07-21 09:54:21')
7379
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:57:21', 1001, 1, 'message 1')
7380
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:58:21', 1001, 1, 'message 2')
7381
+ RulesEngine::Process::ReProcessAudit Create (0.2ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:59:21', 1001, 1, 'message 3')
7382
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 09:57:21', 1002, 1, 'message 4')
7383
+ RulesEngine::Process::ReProcessAudit Load (0.5ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
7384
+ SQL (0.3ms) select sqlite_version(*)
7385
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7386
+ SQL (0.1ms)  SELECT name
7387
+ FROM sqlite_master
7388
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7389
+ 
7390
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7391
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7392
+ SQL (0.1ms)  SELECT name
7393
+ FROM sqlite_master
7394
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7395
+ 
7396
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7397
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7398
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7399
+ SQL (0.1ms)  SELECT name
7400
+ FROM sqlite_master
7401
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7402
+ 
7403
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7404
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7405
+ SQL (0.2ms)  SELECT name
7406
+ FROM sqlite_master
7407
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7408
+ 
7409
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7410
+ SQL (0.4ms) select sqlite_version(*)
7411
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7412
+ SQL (0.1ms)  SELECT name
7413
+ FROM sqlite_master
7414
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7415
+ 
7416
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7417
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7418
+ SQL (0.1ms)  SELECT name
7419
+ FROM sqlite_master
7420
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7421
+ 
7422
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7423
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7424
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7425
+ SQL (0.1ms)  SELECT name
7426
+ FROM sqlite_master
7427
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7428
+ 
7429
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7430
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7431
+ SQL (0.2ms)  SELECT name
7432
+ FROM sqlite_master
7433
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7434
+ 
7435
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7436
+ SQL (0.3ms) select sqlite_version(*)
7437
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7438
+ SQL (0.1ms)  SELECT name
7439
+ FROM sqlite_master
7440
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7441
+ 
7442
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7443
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7444
+ SQL (0.1ms)  SELECT name
7445
+ FROM sqlite_master
7446
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7447
+ 
7448
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7449
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7450
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7451
+ SQL (0.2ms)  SELECT name
7452
+ FROM sqlite_master
7453
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7454
+ 
7455
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7456
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7457
+ SQL (0.2ms)  SELECT name
7458
+ FROM sqlite_master
7459
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7460
+ 
7461
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7462
+ SQL (0.3ms) select sqlite_version(*)
7463
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7464
+ SQL (0.1ms)  SELECT name
7465
+ FROM sqlite_master
7466
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7467
+ 
7468
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7469
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7470
+ SQL (0.1ms)  SELECT name
7471
+ FROM sqlite_master
7472
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7473
+ 
7474
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7475
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7476
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7477
+ SQL (0.2ms)  SELECT name
7478
+ FROM sqlite_master
7479
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7480
+ 
7481
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7482
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7483
+ SQL (0.2ms)  SELECT name
7484
+ FROM sqlite_master
7485
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7486
+ 
7487
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7488
+ SQL (0.2ms) select sqlite_version(*)
7489
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7490
+ SQL (0.1ms)  SELECT name
7491
+ FROM sqlite_master
7492
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7493
+ 
7494
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7495
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7496
+ SQL (0.1ms)  SELECT name
7497
+ FROM sqlite_master
7498
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7499
+ 
7500
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7501
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7502
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7503
+ SQL (0.2ms)  SELECT name
7504
+ FROM sqlite_master
7505
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7506
+ 
7507
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7508
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7509
+ SQL (0.2ms)  SELECT name
7510
+ FROM sqlite_master
7511
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7512
+ 
7513
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7514
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7515
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7516
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7517
+ RulesEngine::Publish::RePublishedPlan Load (0.4ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
7518
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
7519
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7520
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7521
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7522
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
7523
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7524
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7525
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7526
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7527
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7528
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7529
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7530
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7531
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7532
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7533
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7534
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7535
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7536
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
7537
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 0, NULL)
7538
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 1, '2010-07-21 10:03:34')
7539
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:04:34', 'mock_code', 2, '2010-07-21 10:02:34')
7540
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:05:34', 'mock_code', 3, '2010-07-21 10:01:34')
7541
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'invalid_dates', 1, '2010-07-21 10:00:34')
7542
+ RulesEngine::Process::ReProcessRun Load (0.4ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
7543
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 0, NULL)
7544
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 1, '2010-07-21 10:03:34')
7545
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:04:34', 'mock_code', 2, '2010-07-21 10:02:34')
7546
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:05:34', 'mock_code', 3, '2010-07-21 10:01:34')
7547
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'invalid_dates', 1, '2010-07-21 10:00:34')
7548
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 0, NULL)
7549
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'mock_code', 1, '2010-07-21 10:03:34')
7550
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:04:34', 'mock_code', 2, '2010-07-21 10:02:34')
7551
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', '2010-07-21 10:05:34', 'mock_code', 3, '2010-07-21 10:01:34')
7552
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:03:34', NULL, 'invalid_dates', 1, '2010-07-21 10:00:34')
7553
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:03:34', 1001, 1, 'message 1')
7554
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:04:34', 1001, 1, 'message 2')
7555
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:05:34', 1001, 1, 'message 3')
7556
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:03:34', 1002, 1, 'message 4')
7557
+ RulesEngine::Process::ReProcessAudit Load (0.3ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
7558
+ SQL (0.3ms) select sqlite_version(*)
7559
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7560
+ SQL (0.1ms)  SELECT name
7561
+ FROM sqlite_master
7562
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7563
+ 
7564
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7565
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7566
+ SQL (0.1ms)  SELECT name
7567
+ FROM sqlite_master
7568
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7569
+ 
7570
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7571
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7572
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7573
+ SQL (0.2ms)  SELECT name
7574
+ FROM sqlite_master
7575
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7576
+ 
7577
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7578
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7579
+ SQL (0.2ms)  SELECT name
7580
+ FROM sqlite_master
7581
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7582
+ 
7583
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7584
+ SQL (0.4ms) select sqlite_version(*)
7585
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7586
+ SQL (0.1ms)  SELECT name
7587
+ FROM sqlite_master
7588
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7589
+ 
7590
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7591
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7592
+ SQL (0.1ms)  SELECT name
7593
+ FROM sqlite_master
7594
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7595
+ 
7596
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7597
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7598
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7599
+ SQL (0.2ms)  SELECT name
7600
+ FROM sqlite_master
7601
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7602
+ 
7603
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7604
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7605
+ SQL (0.2ms)  SELECT name
7606
+ FROM sqlite_master
7607
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7608
+ 
7609
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7610
+ SQL (0.3ms) select sqlite_version(*)
7611
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7612
+ SQL (0.1ms)  SELECT name
7613
+ FROM sqlite_master
7614
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7615
+ 
7616
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7617
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7618
+ SQL (0.1ms)  SELECT name
7619
+ FROM sqlite_master
7620
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7621
+ 
7622
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7623
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7624
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7625
+ SQL (0.1ms)  SELECT name
7626
+ FROM sqlite_master
7627
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7628
+ 
7629
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7630
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7631
+ SQL (0.2ms)  SELECT name
7632
+ FROM sqlite_master
7633
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7634
+ 
7635
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7636
+ SQL (0.3ms) select sqlite_version(*)
7637
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7638
+ SQL (0.1ms)  SELECT name
7639
+ FROM sqlite_master
7640
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7641
+ 
7642
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7643
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7644
+ SQL (0.1ms)  SELECT name
7645
+ FROM sqlite_master
7646
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7647
+ 
7648
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7649
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7650
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7651
+ SQL (0.2ms)  SELECT name
7652
+ FROM sqlite_master
7653
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7654
+ 
7655
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7656
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7657
+ SQL (0.2ms)  SELECT name
7658
+ FROM sqlite_master
7659
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7660
+ 
7661
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7662
+ SQL (0.3ms) select sqlite_version(*)
7663
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7664
+ SQL (0.1ms)  SELECT name
7665
+ FROM sqlite_master
7666
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7667
+ 
7668
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7669
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7670
+ SQL (0.1ms)  SELECT name
7671
+ FROM sqlite_master
7672
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7673
+ 
7674
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7675
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7676
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7677
+ SQL (0.1ms)  SELECT name
7678
+ FROM sqlite_master
7679
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7680
+ 
7681
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7682
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7683
+ SQL (0.2ms)  SELECT name
7684
+ FROM sqlite_master
7685
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7686
+ 
7687
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7688
+ SQL (0.4ms) select sqlite_version(*)
7689
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7690
+ SQL (0.1ms)  SELECT name
7691
+ FROM sqlite_master
7692
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7693
+ 
7694
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7695
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7696
+ SQL (0.1ms)  SELECT name
7697
+ FROM sqlite_master
7698
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7699
+ 
7700
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7701
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7702
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7703
+ SQL (0.2ms)  SELECT name
7704
+ FROM sqlite_master
7705
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7706
+ 
7707
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7708
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7709
+ SQL (0.2ms)  SELECT name
7710
+ FROM sqlite_master
7711
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7712
+ 
7713
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7714
+ SQL (0.3ms) select sqlite_version(*)
7715
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7716
+ SQL (0.1ms)  SELECT name
7717
+ FROM sqlite_master
7718
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7719
+ 
7720
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7721
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7722
+ SQL (0.1ms)  SELECT name
7723
+ FROM sqlite_master
7724
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7725
+ 
7726
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7727
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7728
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7729
+ SQL (0.1ms)  SELECT name
7730
+ FROM sqlite_master
7731
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7732
+ 
7733
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7734
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7735
+ SQL (0.2ms)  SELECT name
7736
+ FROM sqlite_master
7737
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7738
+ 
7739
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7740
+ SQL (0.3ms) select sqlite_version(*)
7741
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7742
+ SQL (0.1ms)  SELECT name
7743
+ FROM sqlite_master
7744
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7745
+ 
7746
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7747
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7748
+ SQL (0.1ms)  SELECT name
7749
+ FROM sqlite_master
7750
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7751
+ 
7752
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7753
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7754
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7755
+ SQL (0.2ms)  SELECT name
7756
+ FROM sqlite_master
7757
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7758
+ 
7759
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7760
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7761
+ SQL (0.2ms)  SELECT name
7762
+ FROM sqlite_master
7763
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7764
+ 
7765
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7766
+ SQL (0.3ms) select sqlite_version(*)
7767
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7768
+ SQL (0.1ms)  SELECT name
7769
+ FROM sqlite_master
7770
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7771
+ 
7772
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7773
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7774
+ SQL (0.1ms)  SELECT name
7775
+ FROM sqlite_master
7776
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7777
+ 
7778
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7779
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7780
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7781
+ SQL (0.1ms)  SELECT name
7782
+ FROM sqlite_master
7783
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7784
+ 
7785
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7786
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7787
+ SQL (0.2ms)  SELECT name
7788
+ FROM sqlite_master
7789
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7790
+ 
7791
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7792
+ SQL (0.3ms) select sqlite_version(*)
7793
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7794
+ SQL (0.1ms)  SELECT name
7795
+ FROM sqlite_master
7796
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7797
+ 
7798
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7799
+ SQL (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7800
+ SQL (0.1ms)  SELECT name
7801
+ FROM sqlite_master
7802
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7803
+ 
7804
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7805
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7806
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7807
+ SQL (0.2ms)  SELECT name
7808
+ FROM sqlite_master
7809
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7810
+ 
7811
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7812
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7813
+ SQL (0.2ms)  SELECT name
7814
+ FROM sqlite_master
7815
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7816
+ 
7817
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7818
+ SQL (0.2ms) select sqlite_version(*)
7819
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7820
+ SQL (0.1ms)  SELECT name
7821
+ FROM sqlite_master
7822
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7823
+ 
7824
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7825
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7826
+ SQL (0.1ms)  SELECT name
7827
+ FROM sqlite_master
7828
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7829
+ 
7830
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7831
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7832
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7833
+ SQL (0.2ms)  SELECT name
7834
+ FROM sqlite_master
7835
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7836
+ 
7837
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7838
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7839
+ SQL (0.2ms)  SELECT name
7840
+ FROM sqlite_master
7841
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7842
+ 
7843
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7844
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7845
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7846
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7847
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
7848
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
7849
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7850
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7851
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7852
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
7853
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7854
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7855
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7856
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7857
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
7858
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7859
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7860
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7861
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7862
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
7863
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
7864
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
7865
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
7866
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
7867
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 0, NULL)
7868
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 1, '2010-07-21 10:17:49')
7869
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:18:49', 'mock_code', 2, '2010-07-21 10:16:49')
7870
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:19:49', 'mock_code', 3, '2010-07-21 10:15:49')
7871
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'invalid_dates', 1, '2010-07-21 10:14:49')
7872
+ RulesEngine::Process::ReProcessRun Load (0.4ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
7873
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 0, NULL)
7874
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 1, '2010-07-21 10:17:49')
7875
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:18:49', 'mock_code', 2, '2010-07-21 10:16:49')
7876
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:19:49', 'mock_code', 3, '2010-07-21 10:15:49')
7877
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'invalid_dates', 1, '2010-07-21 10:14:49')
7878
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 0, NULL)
7879
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'mock_code', 1, '2010-07-21 10:17:49')
7880
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:18:49', 'mock_code', 2, '2010-07-21 10:16:49')
7881
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', '2010-07-21 10:19:49', 'mock_code', 3, '2010-07-21 10:15:49')
7882
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:17:49', NULL, 'invalid_dates', 1, '2010-07-21 10:14:49')
7883
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:17:49', 1001, 1, 'message 1')
7884
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:18:49', 1001, 1, 'message 2')
7885
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:19:49', 1001, 1, 'message 3')
7886
+ RulesEngine::Process::ReProcessAudit Create (0.3ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:17:49', 1002, 1, 'message 4')
7887
+ RulesEngine::Process::ReProcessAudit Load (0.3ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
7888
+ SQL (0.3ms) select sqlite_version(*)
7889
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7890
+ SQL (0.1ms)  SELECT name
7891
+ FROM sqlite_master
7892
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7893
+ 
7894
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7895
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7896
+ SQL (0.1ms)  SELECT name
7897
+ FROM sqlite_master
7898
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7899
+ 
7900
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7901
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7902
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7903
+ SQL (0.2ms)  SELECT name
7904
+ FROM sqlite_master
7905
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7906
+ 
7907
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7908
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7909
+ SQL (0.2ms)  SELECT name
7910
+ FROM sqlite_master
7911
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7912
+ 
7913
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7914
+ SQL (0.4ms) select sqlite_version(*)
7915
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7916
+ SQL (0.1ms)  SELECT name
7917
+ FROM sqlite_master
7918
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7919
+ 
7920
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7921
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7922
+ SQL (0.1ms)  SELECT name
7923
+ FROM sqlite_master
7924
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7925
+ 
7926
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7927
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7928
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7929
+ SQL (0.1ms)  SELECT name
7930
+ FROM sqlite_master
7931
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7932
+ 
7933
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7934
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7935
+ SQL (0.2ms)  SELECT name
7936
+ FROM sqlite_master
7937
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7938
+ 
7939
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7940
+ SQL (0.3ms) select sqlite_version(*)
7941
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7942
+ SQL (0.1ms)  SELECT name
7943
+ FROM sqlite_master
7944
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7945
+ 
7946
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7947
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7948
+ SQL (0.1ms)  SELECT name
7949
+ FROM sqlite_master
7950
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7951
+ 
7952
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7953
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7954
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7955
+ SQL (0.2ms)  SELECT name
7956
+ FROM sqlite_master
7957
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7958
+ 
7959
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7960
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7961
+ SQL (0.2ms)  SELECT name
7962
+ FROM sqlite_master
7963
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7964
+ 
7965
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7966
+ SQL (0.3ms) select sqlite_version(*)
7967
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7968
+ SQL (0.1ms)  SELECT name
7969
+ FROM sqlite_master
7970
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7971
+ 
7972
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7973
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7974
+ SQL (0.1ms)  SELECT name
7975
+ FROM sqlite_master
7976
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7977
+ 
7978
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7979
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
7980
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
7981
+ SQL (0.2ms)  SELECT name
7982
+ FROM sqlite_master
7983
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7984
+ 
7985
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7986
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
7987
+ SQL (0.2ms)  SELECT name
7988
+ FROM sqlite_master
7989
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7990
+ 
7991
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
7992
+ SQL (0.3ms) select sqlite_version(*)
7993
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
7994
+ SQL (0.1ms)  SELECT name
7995
+ FROM sqlite_master
7996
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7997
+ 
7998
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7999
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8000
+ SQL (0.1ms)  SELECT name
8001
+ FROM sqlite_master
8002
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8003
+ 
8004
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8005
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8006
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8007
+ SQL (0.1ms)  SELECT name
8008
+ FROM sqlite_master
8009
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8010
+ 
8011
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8012
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8013
+ SQL (0.2ms)  SELECT name
8014
+ FROM sqlite_master
8015
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8016
+ 
8017
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8018
+ SQL (0.3ms) select sqlite_version(*)
8019
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8020
+ SQL (0.1ms)  SELECT name
8021
+ FROM sqlite_master
8022
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8023
+ 
8024
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8025
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8026
+ SQL (0.1ms)  SELECT name
8027
+ FROM sqlite_master
8028
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8029
+ 
8030
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8031
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8032
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8033
+ SQL (0.2ms)  SELECT name
8034
+ FROM sqlite_master
8035
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8036
+ 
8037
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8038
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8039
+ SQL (0.2ms)  SELECT name
8040
+ FROM sqlite_master
8041
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8042
+ 
8043
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8044
+ SQL (0.3ms) select sqlite_version(*)
8045
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8046
+ SQL (0.1ms)  SELECT name
8047
+ FROM sqlite_master
8048
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8049
+ 
8050
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8051
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8052
+ SQL (0.1ms)  SELECT name
8053
+ FROM sqlite_master
8054
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8055
+ 
8056
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8057
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8058
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8059
+ SQL (0.1ms)  SELECT name
8060
+ FROM sqlite_master
8061
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8062
+ 
8063
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8064
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8065
+ SQL (0.2ms)  SELECT name
8066
+ FROM sqlite_master
8067
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8068
+ 
8069
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8070
+ SQL (0.3ms) select sqlite_version(*)
8071
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8072
+ SQL (0.1ms)  SELECT name
8073
+ FROM sqlite_master
8074
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8075
+ 
8076
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8077
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8078
+ SQL (0.1ms)  SELECT name
8079
+ FROM sqlite_master
8080
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8081
+ 
8082
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8083
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8084
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8085
+ SQL (0.2ms)  SELECT name
8086
+ FROM sqlite_master
8087
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8088
+ 
8089
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8090
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8091
+ SQL (0.2ms)  SELECT name
8092
+ FROM sqlite_master
8093
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8094
+ 
8095
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8096
+ SQL (0.3ms) select sqlite_version(*)
8097
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8098
+ SQL (0.1ms)  SELECT name
8099
+ FROM sqlite_master
8100
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8101
+ 
8102
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8103
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8104
+ SQL (0.1ms)  SELECT name
8105
+ FROM sqlite_master
8106
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8107
+ 
8108
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8109
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8110
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8111
+ SQL (0.1ms)  SELECT name
8112
+ FROM sqlite_master
8113
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8114
+ 
8115
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8116
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8117
+ SQL (0.2ms)  SELECT name
8118
+ FROM sqlite_master
8119
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8120
+ 
8121
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8122
+ SQL (0.3ms) select sqlite_version(*)
8123
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8124
+ SQL (0.1ms)  SELECT name
8125
+ FROM sqlite_master
8126
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8127
+ 
8128
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8129
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8130
+ SQL (0.1ms)  SELECT name
8131
+ FROM sqlite_master
8132
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8133
+ 
8134
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8135
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8136
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8137
+ SQL (0.2ms)  SELECT name
8138
+ FROM sqlite_master
8139
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8140
+ 
8141
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8142
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8143
+ SQL (0.2ms)  SELECT name
8144
+ FROM sqlite_master
8145
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8146
+ 
8147
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8148
+ SQL (0.2ms) select sqlite_version(*)
8149
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8150
+ SQL (0.1ms)  SELECT name
8151
+ FROM sqlite_master
8152
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8153
+ 
8154
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8155
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8156
+ SQL (0.1ms)  SELECT name
8157
+ FROM sqlite_master
8158
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8159
+ 
8160
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8161
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8162
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8163
+ SQL (0.1ms)  SELECT name
8164
+ FROM sqlite_master
8165
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8166
+ 
8167
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8168
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8169
+ SQL (0.2ms)  SELECT name
8170
+ FROM sqlite_master
8171
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8172
+ 
8173
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8174
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8175
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8176
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8177
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
8178
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
8179
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8180
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8181
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8182
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
8183
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8184
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8185
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8186
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
8187
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
8188
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8189
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8190
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8191
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
8192
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8193
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8194
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8195
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
8196
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
8197
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 0, NULL)
8198
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 1, '2010-07-21 10:26:37')
8199
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:27:37', 'mock_code', 2, '2010-07-21 10:25:37')
8200
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:28:37', 'mock_code', 3, '2010-07-21 10:24:37')
8201
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'invalid_dates', 1, '2010-07-21 10:23:37')
8202
+ RulesEngine::Process::ReProcessRun Load (0.4ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
8203
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 0, NULL)
8204
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 1, '2010-07-21 10:26:37')
8205
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:27:37', 'mock_code', 2, '2010-07-21 10:25:37')
8206
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:28:37', 'mock_code', 3, '2010-07-21 10:24:37')
8207
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'invalid_dates', 1, '2010-07-21 10:23:37')
8208
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 0, NULL)
8209
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'mock_code', 1, '2010-07-21 10:26:37')
8210
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:27:37', 'mock_code', 2, '2010-07-21 10:25:37')
8211
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', '2010-07-21 10:28:37', 'mock_code', 3, '2010-07-21 10:24:37')
8212
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:26:37', NULL, 'invalid_dates', 1, '2010-07-21 10:23:37')
8213
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:26:37', 1001, 1, 'message 1')
8214
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:27:37', 1001, 1, 'message 2')
8215
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:28:37', 1001, 1, 'message 3')
8216
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:26:37', 1002, 1, 'message 4')
8217
+ RulesEngine::Process::ReProcessAudit Load (0.5ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
8218
+ SQL (0.3ms) select sqlite_version(*)
8219
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8220
+ SQL (0.1ms)  SELECT name
8221
+ FROM sqlite_master
8222
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8223
+ 
8224
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8225
+ SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8226
+ SQL (0.1ms)  SELECT name
8227
+ FROM sqlite_master
8228
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8229
+ 
8230
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8231
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8232
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8233
+ SQL (0.2ms)  SELECT name
8234
+ FROM sqlite_master
8235
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8236
+ 
8237
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8238
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8239
+ SQL (0.2ms)  SELECT name
8240
+ FROM sqlite_master
8241
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8242
+ 
8243
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8244
+ SQL (0.3ms) select sqlite_version(*)
8245
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8246
+ SQL (0.1ms)  SELECT name
8247
+ FROM sqlite_master
8248
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8249
+ 
8250
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8251
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8252
+ SQL (0.1ms)  SELECT name
8253
+ FROM sqlite_master
8254
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8255
+ 
8256
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8257
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8258
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8259
+ SQL (0.2ms)  SELECT name
8260
+ FROM sqlite_master
8261
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8262
+ 
8263
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8264
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8265
+ SQL (0.2ms)  SELECT name
8266
+ FROM sqlite_master
8267
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8268
+ 
8269
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8270
+ SQL (0.3ms) select sqlite_version(*)
8271
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8272
+ SQL (0.1ms)  SELECT name
8273
+ FROM sqlite_master
8274
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8275
+ 
8276
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8277
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8278
+ SQL (0.1ms)  SELECT name
8279
+ FROM sqlite_master
8280
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8281
+ 
8282
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8283
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8284
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8285
+ SQL (0.2ms)  SELECT name
8286
+ FROM sqlite_master
8287
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8288
+ 
8289
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8290
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8291
+ SQL (0.2ms)  SELECT name
8292
+ FROM sqlite_master
8293
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8294
+ 
8295
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8296
+ SQL (0.4ms) select sqlite_version(*)
8297
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8298
+ SQL (0.1ms)  SELECT name
8299
+ FROM sqlite_master
8300
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8301
+ 
8302
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8303
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8304
+ SQL (0.1ms)  SELECT name
8305
+ FROM sqlite_master
8306
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8307
+ 
8308
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8309
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8310
+ SQL (0.1ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8311
+ SQL (0.1ms)  SELECT name
8312
+ FROM sqlite_master
8313
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8314
+ 
8315
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8316
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8317
+ SQL (0.2ms)  SELECT name
8318
+ FROM sqlite_master
8319
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8320
+ 
8321
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8322
+ SQL (0.3ms) select sqlite_version(*)
8323
+ SQL (0.5ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8324
+ SQL (0.1ms)  SELECT name
8325
+ FROM sqlite_master
8326
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8327
+ 
8328
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8329
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8330
+ SQL (0.1ms)  SELECT name
8331
+ FROM sqlite_master
8332
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8333
+ 
8334
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8335
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8336
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8337
+ SQL (0.2ms)  SELECT name
8338
+ FROM sqlite_master
8339
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8340
+ 
8341
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8342
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8343
+ SQL (0.2ms)  SELECT name
8344
+ FROM sqlite_master
8345
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8346
+ 
8347
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8348
+ SQL (0.2ms) select sqlite_version(*)
8349
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
8350
+ SQL (0.1ms)  SELECT name
8351
+ FROM sqlite_master
8352
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8353
+ 
8354
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8355
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8356
+ SQL (0.1ms)  SELECT name
8357
+ FROM sqlite_master
8358
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8359
+ 
8360
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8361
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
8362
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
8363
+ SQL (0.2ms)  SELECT name
8364
+ FROM sqlite_master
8365
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8366
+ 
8367
+ SQL (0.4ms) SELECT version FROM "schema_migrations"
8368
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
8369
+ SQL (0.2ms)  SELECT name
8370
+ FROM sqlite_master
8371
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8372
+ 
8373
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
8374
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8375
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8376
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8377
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
8378
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
8379
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8380
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8381
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8382
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
8383
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8384
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8385
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8386
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
8387
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
8388
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8389
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8390
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8391
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
8392
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
8393
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
8394
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
8395
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
8396
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
8397
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 0, NULL)
8398
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 1, '2010-07-21 10:29:58')
8399
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:30:58', 'mock_code', 2, '2010-07-21 10:28:58')
8400
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:31:58', 'mock_code', 3, '2010-07-21 10:27:58')
8401
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'invalid_dates', 1, '2010-07-21 10:26:58')
8402
+ RulesEngine::Process::ReProcessRun Load (0.5ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
8403
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 0, NULL)
8404
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 1, '2010-07-21 10:29:58')
8405
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:30:58', 'mock_code', 2, '2010-07-21 10:28:58')
8406
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:31:58', 'mock_code', 3, '2010-07-21 10:27:58')
8407
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'invalid_dates', 1, '2010-07-21 10:26:58')
8408
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 0, NULL)
8409
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'mock_code', 1, '2010-07-21 10:29:58')
8410
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:30:58', 'mock_code', 2, '2010-07-21 10:28:58')
8411
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', '2010-07-21 10:31:58', 'mock_code', 3, '2010-07-21 10:27:58')
8412
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-07-21 10:29:58', NULL, 'invalid_dates', 1, '2010-07-21 10:26:58')
8413
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:29:58', 1001, 1, 'message 1')
8414
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:30:58', 1001, 1, 'message 2')
8415
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:31:58', 1001, 1, 'message 3')
8416
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-07-21 10:29:58', 1002, 1, 'message 4')
8417
+ RulesEngine::Process::ReProcessAudit Load (0.3ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC