effective_orders 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/order.rb +1 -2
- data/lib/effective_orders/version.rb +1 -1
- data/lib/generators/templates/effective_orders.rb +1 -1
- data/spec/controllers/stripe_orders_controller_spec.rb +4 -3
- data/spec/dummy/config/initializers/effective_orders.rb +194 -5
- data/spec/dummy/log/test.log +8 -238
- data/spec/models/acts_as_purchasable_spec.rb +22 -0
- data/spec/models/customer_spec.rb +3 -2
- data/spec/models/subscription_spec.rb +4 -4
- data/spec/support/factories.rb +1 -1
- metadata +48 -8
- data/spec/dummy/log/development.log +0 -487
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6171edb7decb2419e845db8af7b83851a284a8f8
|
4
|
+
data.tar.gz: 2d4a15554d343111758486fc031159b8e2c83ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 877e43822891f56644670344377ed7fa76e45fcf3b9bccab2e4170bbf814b971929e30c3fba978cca691d77236530c388fd880220df520bbc4c075e4b4d0634c
|
7
|
+
data.tar.gz: 306ce59d6f08dd5d8cd5faf3d765709c1ddd094d7b54d40965ea734da4561e509e1248d333e0e3f06074faa29655d57a32e1998ce6949d6c0219466e47498c69
|
@@ -190,9 +190,8 @@ module Effective
|
|
190
190
|
self.purchased_at ||= Time.zone.now
|
191
191
|
self.payment = payment_details.kind_of?(Hash) ? payment_details : {:details => (payment_details || 'none').to_s}
|
192
192
|
|
193
|
-
order_items.each { |item| item.purchasable.purchased!(self, item) }
|
194
|
-
|
195
193
|
self.save!(:validate => opts[:validate])
|
194
|
+
order_items.each { |item| item.purchasable.purchased!(self, item) }
|
196
195
|
|
197
196
|
if EffectiveOrders.mailer[:send_order_receipt_to_admin] && opts[:email]
|
198
197
|
if Rails.env.production?
|
@@ -28,7 +28,7 @@ EffectiveOrders.setup do |config|
|
|
28
28
|
#
|
29
29
|
# Or disable the check completely:
|
30
30
|
# config.authorization_method = false
|
31
|
-
config.authorization_method = Proc.new { |controller, action, resource|
|
31
|
+
config.authorization_method = Proc.new { |controller, action, resource| true }
|
32
32
|
|
33
33
|
# Register Effective::Order with ActiveAdmin if ActiveAdmin is present
|
34
34
|
config.use_active_admin = true
|
@@ -8,9 +8,10 @@ describe Effective::OrdersController do
|
|
8
8
|
before { StripeMock.start }
|
9
9
|
after { StripeMock.stop }
|
10
10
|
|
11
|
+
let(:stripe_helper) { StripeMock.create_test_helper }
|
11
12
|
let(:order) { FactoryGirl.create(:order) }
|
12
13
|
let(:buyer) { Effective::Customer.for_user(order.user) }
|
13
|
-
let(:token) {
|
14
|
+
let(:token) { stripe_helper.generate_card_token }
|
14
15
|
let(:stripe_charge_params) do
|
15
16
|
{:effective_stripe_charge => {'effective_order_id' => order.to_param, 'token' => token}}
|
16
17
|
end
|
@@ -92,7 +93,7 @@ describe Effective::OrdersController do
|
|
92
93
|
let(:order) { FactoryGirl.create(:order_with_subscription) }
|
93
94
|
let(:buyer) { Effective::Customer.for_user(order.user) }
|
94
95
|
let(:subscription) { order.order_items[1].purchasable }
|
95
|
-
let(:token) {
|
96
|
+
let(:token) { stripe_helper.generate_card_token }
|
96
97
|
let(:stripe_charge_params) do
|
97
98
|
{:effective_stripe_charge => {'effective_order_id' => order.to_param, 'token' => token}}
|
98
99
|
end
|
@@ -117,7 +118,7 @@ describe Effective::OrdersController do
|
|
117
118
|
post :stripe_charge, stripe_charge_params
|
118
119
|
|
119
120
|
assigns(:order).payment[:subscriptions]["#{subscription.stripe_plan_id}"]['object'].should eq 'subscription'
|
120
|
-
assigns(:order).payment[:subscriptions]["#{subscription.stripe_plan_id}"]['plan'].should eq subscription.stripe_plan_id
|
121
|
+
assigns(:order).payment[:subscriptions]["#{subscription.stripe_plan_id}"]['plan']['id'].should eq subscription.stripe_plan_id
|
121
122
|
subscription.reload.stripe_subscription_id.present?.should eq true
|
122
123
|
subscription.reload.stripe_coupon_id.present?.should eq true
|
123
124
|
|
@@ -1,22 +1,211 @@
|
|
1
1
|
# EffectiveOrders Rails Engine
|
2
2
|
|
3
3
|
EffectiveOrders.setup do |config|
|
4
|
+
# Configure Database Tables
|
5
|
+
config.orders_table_name = :orders
|
6
|
+
config.order_items_table_name = :order_items
|
7
|
+
config.carts_table_name = :carts
|
8
|
+
config.cart_items_table_name = :cart_items
|
9
|
+
config.customers_table_name = :customers
|
10
|
+
config.subscriptions_table_name = :subscriptions
|
11
|
+
|
4
12
|
# Authorization Method
|
5
|
-
|
13
|
+
#
|
14
|
+
# This method is called by all controller actions with the appropriate action and resource
|
15
|
+
# If the method returns false, an Effective::AccessDenied Error will be raised (see README.md for complete info)
|
16
|
+
#
|
17
|
+
# Use via Proc (and with CanCan):
|
18
|
+
# config.authorization_method = Proc.new { |controller, action, resource| can?(action, resource) }
|
19
|
+
#
|
20
|
+
# Use via custom method:
|
21
|
+
# config.authorization_method = :my_authorization_method
|
22
|
+
#
|
23
|
+
# And then in your application_controller.rb:
|
24
|
+
#
|
25
|
+
# def my_authorization_method(action, resource)
|
26
|
+
# current_user.is?(:admin)
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# Or disable the check completely:
|
30
|
+
# config.authorization_method = false
|
31
|
+
config.authorization_method = Proc.new { |controller, action, resource| true }
|
32
|
+
|
33
|
+
# Register Effective::Order with ActiveAdmin if ActiveAdmin is present
|
34
|
+
config.use_active_admin = true
|
35
|
+
|
36
|
+
# Use effective_obfuscation gem to change order.id into a seemingly random 10-digit number
|
37
|
+
config.obfuscate_order_ids = true
|
6
38
|
|
39
|
+
# Silence the price deprecation warnings
|
40
|
+
config.silence_deprecation_warnings = false
|
41
|
+
|
42
|
+
# Require these addresses when creating a new Order. Works with effective_addresses gem
|
7
43
|
config.require_billing_address = true
|
8
44
|
config.require_shipping_address = true
|
9
45
|
|
10
|
-
|
11
|
-
|
12
|
-
|
46
|
+
# If set, the orders#new screen will render effective/orders/user_fields partial and capture this User Info
|
47
|
+
# The partial can be overridden to customize the form, but the following fields are also fed into strong_paramters
|
13
48
|
config.collect_user_fields = [:first_name, :last_name]
|
49
|
+
#config.collect_user_fields = [:salutation, :first_name, :last_name] # Must be valid fields on the User object
|
14
50
|
|
51
|
+
# Don't validate_associated :user when saving an Order
|
52
|
+
config.skip_user_validation = false
|
53
|
+
|
54
|
+
# Tax Calculation Method
|
55
|
+
config.tax_rate_method = Proc.new { |acts_as_purchasable| 0.05 } # Regardless of the object, charge 5% tax (GST)
|
56
|
+
|
57
|
+
# Minimum Charge
|
58
|
+
# Prevent orders less than this value from being purchased
|
59
|
+
# Stripe doesn't allow orders less than $0.50
|
60
|
+
# Set to nil for no minimum charge
|
61
|
+
# Default value is 50 cents, or $0.50
|
15
62
|
config.minimum_charge = 50
|
63
|
+
|
64
|
+
# Free Orders
|
65
|
+
# Allow orders with a total of 0.00 to be purchased (regardless of the minimum charge setting)
|
66
|
+
# When enabled, the checkout process will skip the paypal/stripe/purchasing step
|
67
|
+
# and just display the 'Thank You' after checkout is clicked
|
16
68
|
config.allow_free_orders = true
|
17
69
|
|
70
|
+
# Allow Pretend Purchase in Production
|
71
|
+
# WARNING: Setting this option to true will allow users to purchase! an Order without entering a credit card
|
72
|
+
# WARNING: When true, users can purchase! anything without paying money
|
73
|
+
#
|
74
|
+
# This should basically always be false, but sometimes you want to make a Beta/Demo site
|
75
|
+
# where users may test the purchase workflow without actually paying money
|
76
|
+
#
|
77
|
+
# When true, there will be a 'Process Order' button on the Checkout screen.
|
78
|
+
# Clicking this button will mark an Order purchased and redirect the user to the
|
79
|
+
# Thank You page just as if they had successfully Checked Out through a payment processor
|
80
|
+
config.allow_pretend_purchase_in_production = false
|
81
|
+
config.allow_pretend_purchase_in_production_message = '* payment information is not required to process this order at this time.'
|
82
|
+
|
83
|
+
# Show/hide the 'Order History' button on the 'Cart Page'
|
84
|
+
config.show_order_history_button = true
|
85
|
+
|
86
|
+
# Layout Settings
|
87
|
+
# Configure the Layout per controller, or all at once
|
88
|
+
|
89
|
+
# config.layout = 'application' # All EffectiveOrders controllers will use this layout
|
90
|
+
config.layout = {
|
91
|
+
:carts => 'application',
|
92
|
+
:orders => 'application',
|
93
|
+
:subscriptions => 'application',
|
94
|
+
:admin_customers => 'application',
|
95
|
+
:admin_orders => 'application'
|
96
|
+
}
|
97
|
+
|
98
|
+
# SimpleForm Options
|
99
|
+
# This Hash of options will be passed into any simple_form_for() calls
|
100
|
+
config.simple_form_options = {}
|
101
|
+
|
102
|
+
# config.simple_form_options = {
|
103
|
+
# :html => {:class => 'form-horizontal'},
|
104
|
+
# :wrapper => :horizontal_form,
|
105
|
+
# :wrapper_mappings => {
|
106
|
+
# :boolean => :horizontal_boolean,
|
107
|
+
# :check_boxes => :horizontal_radio_and_checkboxes,
|
108
|
+
# :radio_buttons => :horizontal_radio_and_checkboxes
|
109
|
+
# }
|
110
|
+
# }
|
111
|
+
|
112
|
+
# Mailer Settings
|
113
|
+
# effective_orders will send out receipts to the buyer, seller and admins.
|
114
|
+
# For all the emails, the same :subject_prefix will be prefixed. Leave as nil / empty string if you don't want any prefix
|
115
|
+
#
|
116
|
+
# The subject_for_admin_receipt, subject_for_buyer_receipt and subject_for_seller_receipt can be one of:
|
117
|
+
# - nil / empty string to use the built in defaults
|
118
|
+
# - A string with the full subject line for this email
|
119
|
+
# - A Proc to create the subject line based on the email
|
120
|
+
# In all three of these cases, the subject_prefix will still be used.
|
121
|
+
|
122
|
+
# The Procs are the same for admin & buyer receipt, the seller Proc is different
|
123
|
+
# :subject_for_admin_receipt => Proc.new { |order| "Order #{order.to_param} has been purchased"}
|
124
|
+
# :subject_for_buyer_receipt => Proc.new { |order| "Order #{order.to_param} has been purchased"}
|
125
|
+
# :subject_for_seller_receipt => Proc.new { |order, order_items, seller| "Order #{order.to_param} has been purchased"}
|
126
|
+
|
127
|
+
config.mailer = {
|
128
|
+
:send_order_receipt_to_admin => true,
|
129
|
+
:send_order_receipt_to_buyer => true,
|
130
|
+
:send_order_receipt_to_seller => true, # Only applies to StripeConnect
|
131
|
+
:admin_email => 'admin@example.com',
|
132
|
+
:default_from => 'info@example.com',
|
133
|
+
:subject_prefix => '[example]',
|
134
|
+
:subject_for_admin_receipt => '',
|
135
|
+
:subject_for_buyer_receipt => '',
|
136
|
+
:subject_for_seller_receipt => ''
|
137
|
+
}
|
138
|
+
|
139
|
+
# Moneris configuration
|
18
140
|
config.moneris_enabled = true
|
141
|
+
|
142
|
+
if Rails.env.production?
|
143
|
+
config.moneris = {
|
144
|
+
:ps_store_id => '',
|
145
|
+
:hpp_key => '',
|
146
|
+
:hpp_url => 'https://www3.moneris.com/HPPDP/index.php',
|
147
|
+
:verify_url => 'https://www3.moneris.com/HPPDP/verifyTxn.php'
|
148
|
+
}
|
149
|
+
else
|
150
|
+
config.moneris = {
|
151
|
+
:ps_store_id => '',
|
152
|
+
:hpp_key => '',
|
153
|
+
:hpp_url => 'https://esqa.moneris.com/HPPDP/index.php',
|
154
|
+
:verify_url => 'https://esqa.moneris.com/HPPDP/verifyTxn.php'
|
155
|
+
}
|
156
|
+
end
|
157
|
+
|
158
|
+
# Paypal configuration
|
19
159
|
config.paypal_enabled = true
|
20
160
|
|
21
|
-
|
161
|
+
if Rails.env.production?
|
162
|
+
config.paypal = {
|
163
|
+
:seller_email => '',
|
164
|
+
:secret => '',
|
165
|
+
:cert_id => '',
|
166
|
+
:paypal_url => 'https://www.paypal.com/cgi-bin/webscr',
|
167
|
+
:currency => 'CAD',
|
168
|
+
:paypal_cert => "#{Rails.root}/config/paypalcerts/production/paypal_cert.pem",
|
169
|
+
:app_cert => "#{Rails.root}/config/paypalcerts/production/app_cert.pem",
|
170
|
+
:app_key => "#{Rails.root}/config/paypalcerts/production/app_key.pem"
|
171
|
+
}
|
172
|
+
else
|
173
|
+
config.paypal = {
|
174
|
+
:seller_email => '',
|
175
|
+
:secret => '',
|
176
|
+
:cert_id => '',
|
177
|
+
:paypal_url => 'https://www.sandbox.paypal.com/cgi-bin/webscr',
|
178
|
+
:currency => 'CAD',
|
179
|
+
:paypal_cert => "#{Rails.root}/config/paypalcerts/#{Rails.env}/paypal_cert.pem",
|
180
|
+
:app_cert => "#{Rails.root}/config/paypalcerts/#{Rails.env}/app_cert.pem",
|
181
|
+
:app_key => "#{Rails.root}/config/paypalcerts/#{Rails.env}/app_key.pem"
|
182
|
+
}
|
183
|
+
end
|
184
|
+
|
185
|
+
# Stripe configuration
|
186
|
+
config.stripe_enabled = true
|
187
|
+
config.stripe_subscriptions_enabled = true # https://stripe.com/docs/subscriptions
|
188
|
+
config.stripe_connect_enabled = false # https://stripe.com/docs/connect
|
189
|
+
config.stripe_connect_application_fee_method = Proc.new { |order_item| order_item.total * 0.10 } # 10 percent
|
190
|
+
|
191
|
+
if Rails.env.production?
|
192
|
+
config.stripe = {
|
193
|
+
:secret_key => '',
|
194
|
+
:publishable_key => '',
|
195
|
+
:currency => 'usd',
|
196
|
+
:site_title => 'My Site',
|
197
|
+
:site_image => '', # A relative URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
|
198
|
+
:connect_client_id => ''
|
199
|
+
}
|
200
|
+
else
|
201
|
+
config.stripe = {
|
202
|
+
:secret_key => '',
|
203
|
+
:publishable_key => '',
|
204
|
+
:currency => 'usd',
|
205
|
+
:site_title => 'My Development Site', # Displayed on the Embedded Stripe Form
|
206
|
+
:site_image => '', # A relative URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
|
207
|
+
:connect_client_id => ''
|
208
|
+
}
|
209
|
+
end
|
210
|
+
|
22
211
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,354 +1,124 @@
|
|
1
|
-
|
2
|
-
BLAHBLAH
|
3
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) [0m
|
4
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m
|
6
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
7
|
-
FROM sqlite_master
|
8
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
9
|
-
UNION ALL
|
10
|
-
SELECT sql
|
11
|
-
FROM sqlite_temp_master
|
12
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
13
|
-
|
14
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
15
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
16
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")[0m
|
17
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
18
|
-
FROM sqlite_master
|
19
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
20
|
-
UNION ALL
|
21
|
-
SELECT sql
|
22
|
-
FROM sqlite_temp_master
|
23
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
24
|
-
|
25
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")[0m
|
26
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
27
|
-
FROM sqlite_master
|
28
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
29
|
-
UNION ALL
|
30
|
-
SELECT sql
|
31
|
-
FROM sqlite_temp_master
|
32
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
33
|
-
|
34
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35
|
-
FROM sqlite_master
|
36
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
37
|
-
UNION ALL
|
38
|
-
SELECT sql
|
39
|
-
FROM sqlite_temp_master
|
40
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
41
|
-
[0m
|
42
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
|
43
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
44
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
|
45
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
46
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
47
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
|
48
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
49
|
-
FROM sqlite_master
|
50
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
51
|
-
UNION ALL
|
52
|
-
SELECT sql
|
53
|
-
FROM sqlite_temp_master
|
54
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
55
|
-
|
56
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")[0m
|
57
|
-
[1m[35m (0.2ms)[0m SELECT sql
|
58
|
-
FROM sqlite_master
|
59
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
60
|
-
UNION ALL
|
61
|
-
SELECT sql
|
62
|
-
FROM sqlite_temp_master
|
63
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
64
|
-
|
65
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
66
|
-
FROM sqlite_master
|
67
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
68
|
-
UNION ALL
|
69
|
-
SELECT sql
|
70
|
-
FROM sqlite_temp_master
|
71
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
72
|
-
[0m
|
73
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
|
74
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
75
|
-
[1m[35m (1.0ms)[0m CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
|
76
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
77
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
|
78
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [0m
|
79
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
80
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
82
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
1
|
+
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
83
2
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
84
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
85
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
86
3
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
87
4
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
88
5
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
89
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
90
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
91
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
92
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
93
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
94
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
95
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
96
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
97
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
98
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
99
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
100
6
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
7
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
101
8
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
102
9
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
103
10
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
104
11
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
105
12
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
106
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
107
13
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
108
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
109
14
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
110
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
111
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
112
15
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
113
16
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
114
17
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
115
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
116
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
117
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
118
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
119
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
120
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
121
18
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
19
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
122
20
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
123
21
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
124
22
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
125
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
126
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
127
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
128
23
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
129
24
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
130
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
131
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
132
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
133
25
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
134
26
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
135
27
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
136
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
137
28
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
138
29
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
139
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
140
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
141
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
142
30
|
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
143
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
144
31
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
145
32
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
146
33
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
147
34
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
148
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
149
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
150
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
151
35
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
152
36
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
153
37
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
154
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
155
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
156
38
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
157
39
|
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
158
40
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
159
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
160
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
161
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
162
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
163
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
164
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
165
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
166
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
167
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
168
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
169
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
170
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
171
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
172
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
173
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
174
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
175
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
176
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
177
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
178
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
179
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
180
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
181
41
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
182
42
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
183
43
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
184
44
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
185
45
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
186
46
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
187
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
188
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
189
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
190
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
191
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
192
47
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
193
48
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
194
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
195
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
196
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
197
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
198
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
199
49
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
200
50
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
201
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
202
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
203
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
204
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
205
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
206
51
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
207
52
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
208
53
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
209
|
-
[1m[36m (0.
|
54
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
210
55
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
211
56
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
212
57
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
213
58
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
214
|
-
[1m[36m (0.
|
215
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
216
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
217
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
59
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
218
60
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
219
61
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
220
62
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
221
63
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
222
64
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
223
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
224
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
225
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
226
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
227
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
228
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
229
65
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
230
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
231
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
232
66
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
233
67
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
234
68
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
235
69
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
236
|
-
[1m[36m (0.
|
237
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
238
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
239
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
70
|
+
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
240
71
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
241
72
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
242
73
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
243
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
244
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
245
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
246
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
247
74
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
248
75
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
249
76
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
250
77
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
251
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
252
78
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
253
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
254
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
255
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
256
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
257
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
258
79
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
259
80
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
260
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
261
81
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
262
82
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
263
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
264
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
265
83
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
266
84
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
267
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
268
85
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
269
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
270
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
271
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
272
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
273
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
274
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
275
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
276
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
277
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
278
86
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
279
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
280
87
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
281
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
282
88
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
283
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
284
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
285
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
286
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
287
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
288
89
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
289
90
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
290
|
-
[1m[36m (0.
|
91
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
291
92
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
292
93
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
293
94
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
294
95
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
295
96
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
296
97
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
297
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
298
98
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
299
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
300
99
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
301
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
302
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
303
100
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
304
101
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
305
102
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
306
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
307
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
308
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
309
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
310
103
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
311
104
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
312
105
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
313
106
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
314
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
315
107
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
316
108
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
317
|
-
[1m[36m (0.
|
318
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
109
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
319
110
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
320
111
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
321
112
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
322
113
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
323
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
324
114
|
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
325
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
326
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
327
115
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
328
116
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
329
117
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
330
118
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
331
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
332
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
333
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
334
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
335
|
-
[1m[36m (0.6ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
336
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
337
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
338
119
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
339
120
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
340
121
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
341
122
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
342
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
343
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
344
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
345
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
346
123
|
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
347
124
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
348
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
349
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
350
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
351
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
352
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
353
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
354
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|