periodic_counter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -21,9 +21,10 @@ Add your periodic counters (all integers):
21
21
 
22
22
  * <code>X\_last\_week</code>
23
23
  * <code>X\_last\_6\_hours</code>
24
- * <code>X\_last_sunday</code>
24
+ * <code>X\_last\_sunday</code>
25
+ * <code>X\_2\_days\_ago</code>
25
26
 
26
- Currently only days of the week and [ActiveSupport's time extensions](http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Time.html) are supported for text after <code>X_last</code>. If no digit is present, "1" is assumed.
27
+ Currently only days of the week and [ActiveSupport's time extensions](http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Time.html) are supported for time periods. If no digit is present, "1" is assumed.
27
28
 
28
29
  Create configuration
29
30
  --------------------
@@ -31,7 +31,7 @@ class PeriodicCounter
31
31
  # Find period columns
32
32
  period = columns.select do |col|
33
33
  col =~ /^#{column}/ &&
34
- col =~ /_last_/
34
+ (col =~ /_last_/ || col =~ /_ago$/)
35
35
  end
36
36
  # Grab all records
37
37
  select_columns = [ 'id', column, "#{column}_data" ]
@@ -54,25 +54,41 @@ class PeriodicCounter
54
54
  data["#{col}_before_today"] = count
55
55
  end
56
56
  else
57
- computed_at = data["#{col}_at"] || Time.now.utc
58
- duration = column_to_period_integer(col)
59
- time_since_compute = Time.now.utc - computed_at
60
- last_day =
61
- if col.include?('day')
57
+ computed_at = data["#{col}_at"]
58
+ last_time =
59
+ if col.include?('minute')
60
+ self.class.this_minute
61
+ elsif col.include?('hour')
62
+ self.class.this_hour
63
+ elsif col.include?('day')
62
64
  self.class.today
63
65
  elsif col.include?('week')
64
66
  self.class.last_monday
65
67
  elsif col.include?('month')
66
68
  self.class.first_of_the_month
67
69
  end
68
- if (time_since_compute - duration) >= 0
69
- data[col] = count
70
- data["#{col}_at"] = last_day
70
+ if col =~ /_ago$/
71
+ duration = column_to_period_integer(col, -3, -2)
72
+ if !computed_at || last_time == computed_at
73
+ data[col] = count
74
+ data["#{col}_at"] = last_time
75
+ end
76
+ if computed_at && (Time.now.utc - computed_at - duration) >= 0
77
+ record[col] = data[col]
78
+ data[col] = count
79
+ data["#{col}_at"] = last_time
80
+ end
71
81
  else
72
- data[col] ||= count
73
- data["#{col}_at"] ||= last_day
82
+ duration = column_to_period_integer(col, -2, -1)
83
+ if !computed_at || (Time.now.utc - computed_at - duration) >= 0
84
+ data[col] = count
85
+ data["#{col}_at"] = last_time
86
+ else
87
+ data[col] ||= count
88
+ data["#{col}_at"] ||= last_time
89
+ end
90
+ record[col] = count - data[col].to_i
74
91
  end
75
- record[col] = count - data[col].to_i
76
92
  end
77
93
  end
78
94
  # Update record
@@ -90,8 +106,8 @@ class PeriodicCounter
90
106
  end
91
107
  end
92
108
 
93
- def column_to_period_integer(column)
94
- column = column.split('_')[-2..-1]
109
+ def column_to_period_integer(column, from, to)
110
+ column = column.split('_')[from..to]
95
111
  column[0] = column[0].to_i
96
112
  if column[0] == 0
97
113
  column[0] = 1
@@ -114,6 +130,14 @@ class PeriodicCounter
114
130
  end
115
131
  Date.new(now.year, now.month, now.day + diff).to_time(:utc)
116
132
  end
133
+
134
+ def this_hour(now=Time.now.utc)
135
+ now - (now.min * 60) - now.sec
136
+ end
137
+
138
+ def this_minute(now=Time.now.utc)
139
+ now - now.sec
140
+ end
117
141
 
118
142
  def today(now=Time.now.utc.to_date)
119
143
  Date.new(now.year, now.month, now.day).to_time(:utc)
data/require.rb CHANGED
@@ -18,7 +18,7 @@ Require do
18
18
  name 'periodic_counter'
19
19
  homepage "http://github.com/winton/#{name}"
20
20
  summary "Maintains period fields on any counter column in your database"
21
- version '0.1.3'
21
+ version '0.1.4'
22
22
  end
23
23
 
24
24
  bin { require 'lib/periodic_counter' }
@@ -2,6 +2,8 @@ class Counters < ActiveRecord::Migration
2
2
  def self.up
3
3
  create_table :counters do |t|
4
4
  t.integer :counter
5
+ t.integer :counter_1_day_ago
6
+ t.integer :counter_2_days_ago
5
7
  t.integer :counter_last_day
6
8
  t.integer :counter_last_2_days
7
9
  t.integer :counter_last_monday
data/spec/log/test.log CHANGED
@@ -12444,3 +12444,4128 @@ counter_last_2_days: 4
12444
12444
  WHERE id = 1
12445
12445
  
12446
12446
  Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12447
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
12448
+ SQL (22.5ms) SHOW TABLES
12449
+ SQL (51.7ms) SELECT version FROM schema_migrations
12450
+ SQL (0.4ms) SHOW TABLES
12451
+ SQL (0.2ms) SELECT version FROM schema_migrations
12452
+ Migrating to Counters (1)
12453
+ SQL (0.3ms) SHOW TABLES
12454
+ SQL (0.2ms) SELECT version FROM schema_migrations
12455
+ SQL (0.2ms) SHOW TABLES
12456
+ SQL (0.2ms) SELECT version FROM schema_migrations
12457
+ Migrating to Counters (1)
12458
+ SQL (163.1ms) DROP TABLE `counters`
12459
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
12460
+ SQL (0.4ms) SHOW TABLES
12461
+ SQL (0.2ms) SELECT version FROM schema_migrations
12462
+ SQL (0.3ms) SHOW TABLES
12463
+ SQL (0.2ms) SELECT version FROM schema_migrations
12464
+ Migrating to Counters (1)
12465
+ SQL (3.8ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12466
+ SQL (1.0ms) INSERT INTO schema_migrations (version) VALUES ('1')
12467
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12468
+ SQL (0.0ms) BEGIN
12469
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12470
+ SQL (0.0ms) COMMIT
12471
+ SQL (0.0ms) SHOW TABLES
12472
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12473
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12474
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12475
+ FROM counters
12476
+ 
12477
+ SQL (0.0ms)  UPDATE counters
12478
+ SET counter_last_monday = 1, counter_data = '---
12479
+ counter_last_monday_before_today: 0
12480
+ counter_last_tuesday_before_today: 1
12481
+ counter_last_day: 1
12482
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12483
+ counter_last_wednesday_before_today: 1
12484
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12485
+ counter_last_2_days: 1
12486
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12487
+ WHERE id = 1
12488
+ 
12489
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12490
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12491
+ SQL (0.0ms) BEGIN
12492
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12493
+ SQL (0.0ms) COMMIT
12494
+ SQL (0.0ms) SHOW TABLES
12495
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12496
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12497
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12498
+ FROM counters
12499
+ 
12500
+ SQL (0.0ms)  UPDATE counters
12501
+ SET counter_last_monday = 2, counter_data = '---
12502
+ counter_last_monday_before_today: 0
12503
+ counter_last_tuesday_before_today: 2
12504
+ counter_last_day: 1
12505
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12506
+ counter_last_wednesday_before_today: 2
12507
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12508
+ counter_last_2_days: 1
12509
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12510
+ WHERE id = 1
12511
+ 
12512
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12513
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12514
+ SQL (0.0ms) BEGIN
12515
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12516
+ SQL (0.0ms) COMMIT
12517
+ SQL (0.0ms) SHOW TABLES
12518
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12519
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12520
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12521
+ FROM counters
12522
+ 
12523
+ SQL (0.0ms)  UPDATE counters
12524
+ SET counter_last_monday = 2, counter_data = '---
12525
+ counter_last_monday_before_today: 3
12526
+ counter_last_tuesday_before_today: 2
12527
+ counter_last_day: 3
12528
+ counter_last_day_at: 2010-06-22 00:00:00 Z
12529
+ counter_last_wednesday_before_today: 3
12530
+ counter_last_2_days_at: 2010-06-22 00:00:00 Z
12531
+ counter_last_2_days: 3
12532
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12533
+ WHERE id = 1
12534
+ 
12535
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12536
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12537
+ SQL (0.1ms) BEGIN
12538
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-22 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12539
+ SQL (0.5ms) COMMIT
12540
+ SQL (0.0ms) SHOW TABLES
12541
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12542
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12543
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12544
+ FROM counters
12545
+ 
12546
+ SQL (0.0ms)  UPDATE counters
12547
+ SET counter_last_monday = 2, counter_data = '---
12548
+ counter_last_monday_before_today: 4
12549
+ counter_last_tuesday_before_today: 4
12550
+ counter_last_day: 4
12551
+ counter_last_day_at: 2010-06-23 00:00:00 Z
12552
+ counter_last_wednesday_before_today: 3
12553
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
12554
+ counter_last_2_days: 4
12555
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
12556
+ WHERE id = 1
12557
+ 
12558
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12559
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
12560
+ SQL (35.5ms) SHOW TABLES
12561
+ SQL (0.4ms) SELECT version FROM schema_migrations
12562
+ SQL (0.4ms) SHOW TABLES
12563
+ SQL (0.3ms) SELECT version FROM schema_migrations
12564
+ Migrating to Counters (1)
12565
+ SQL (0.4ms) SHOW TABLES
12566
+ SQL (0.3ms) SELECT version FROM schema_migrations
12567
+ SQL (0.4ms) SHOW TABLES
12568
+ SQL (8.2ms) SELECT version FROM schema_migrations
12569
+ Migrating to Counters (1)
12570
+ SQL (29.9ms) DROP TABLE `counters`
12571
+ SQL (21.6ms) DELETE FROM schema_migrations WHERE version = '1'
12572
+ SQL (0.5ms) SHOW TABLES
12573
+ SQL (0.3ms) SELECT version FROM schema_migrations
12574
+ SQL (0.4ms) SHOW TABLES
12575
+ SQL (0.2ms) SELECT version FROM schema_migrations
12576
+ Migrating to Counters (1)
12577
+ SQL (2.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12578
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
12579
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12580
+ SQL (0.0ms) BEGIN
12581
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12582
+ SQL (0.0ms) COMMIT
12583
+ SQL (0.0ms) SHOW TABLES
12584
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12585
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12586
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12587
+ FROM counters
12588
+ 
12589
+ SQL (0.0ms)  UPDATE counters
12590
+ SET counter_last_monday = 1, counter_data = '---
12591
+ counter_last_monday_before_today: 0
12592
+ counter_last_tuesday_before_today: 1
12593
+ counter_last_day: 1
12594
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12595
+ counter_last_wednesday_before_today: 1
12596
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12597
+ counter_last_2_days: 1
12598
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12599
+ WHERE id = 1
12600
+ 
12601
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12602
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12603
+ SQL (0.0ms) BEGIN
12604
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12605
+ SQL (0.0ms) COMMIT
12606
+ SQL (0.0ms) SHOW TABLES
12607
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12608
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12609
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12610
+ FROM counters
12611
+ 
12612
+ SQL (0.0ms)  UPDATE counters
12613
+ SET counter_last_monday = 2, counter_data = '---
12614
+ counter_last_monday_before_today: 0
12615
+ counter_last_tuesday_before_today: 2
12616
+ counter_last_day: 1
12617
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12618
+ counter_last_wednesday_before_today: 2
12619
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12620
+ counter_last_2_days: 1
12621
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12622
+ WHERE id = 1
12623
+ 
12624
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12625
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12626
+ SQL (0.0ms) BEGIN
12627
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12628
+ SQL (0.0ms) COMMIT
12629
+ SQL (0.0ms) SHOW TABLES
12630
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12631
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12632
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12633
+ FROM counters
12634
+ 
12635
+ SQL (0.0ms)  UPDATE counters
12636
+ SET counter_last_monday = 2, counter_data = '---
12637
+ counter_last_monday_before_today: 3
12638
+ counter_last_tuesday_before_today: 2
12639
+ counter_last_day: 3
12640
+ counter_last_day_at: 2010-06-22 00:00:00 Z
12641
+ counter_last_wednesday_before_today: 3
12642
+ counter_last_2_days_at: 2010-06-22 00:00:00 Z
12643
+ counter_last_2_days: 3
12644
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12645
+ WHERE id = 1
12646
+ 
12647
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12648
+ Counter Load (1.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12649
+ SQL (0.1ms) BEGIN
12650
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-22 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12651
+ SQL (93.4ms) COMMIT
12652
+ SQL (0.0ms) SHOW TABLES
12653
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12654
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12655
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12656
+ FROM counters
12657
+ 
12658
+ SQL (0.0ms)  UPDATE counters
12659
+ SET counter_last_monday = 2, counter_data = '---
12660
+ counter_last_monday_before_today: 4
12661
+ counter_last_tuesday_before_today: 4
12662
+ counter_last_day: 4
12663
+ counter_last_day_at: 2010-06-23 00:00:00 Z
12664
+ counter_last_wednesday_before_today: 3
12665
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
12666
+ counter_last_2_days: 4
12667
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
12668
+ WHERE id = 1
12669
+ 
12670
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12671
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
12672
+ SQL (30.4ms) SHOW TABLES
12673
+ SQL (0.2ms) SELECT version FROM schema_migrations
12674
+ SQL (0.2ms) SHOW TABLES
12675
+ SQL (0.2ms) SELECT version FROM schema_migrations
12676
+ Migrating to Counters (1)
12677
+ SQL (0.2ms) SHOW TABLES
12678
+ SQL (0.1ms) SELECT version FROM schema_migrations
12679
+ SQL (0.2ms) SHOW TABLES
12680
+ SQL (0.1ms) SELECT version FROM schema_migrations
12681
+ Migrating to Counters (1)
12682
+ SQL (9.6ms) DROP TABLE `counters`
12683
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
12684
+ SQL (0.3ms) SHOW TABLES
12685
+ SQL (0.1ms) SELECT version FROM schema_migrations
12686
+ SQL (0.2ms) SHOW TABLES
12687
+ SQL (0.1ms) SELECT version FROM schema_migrations
12688
+ Migrating to Counters (1)
12689
+ SQL (26.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12690
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
12691
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12692
+ SQL (0.0ms) BEGIN
12693
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12694
+ SQL (0.0ms) COMMIT
12695
+ SQL (0.0ms) SHOW TABLES
12696
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12697
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12698
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12699
+ FROM counters
12700
+ 
12701
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12702
+ SQL (0.0ms) BEGIN
12703
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = NULL, `counter` = 2 WHERE `id` = 1
12704
+ SQL (0.0ms) COMMIT
12705
+ SQL (0.0ms) SHOW TABLES
12706
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12707
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12708
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12709
+ FROM counters
12710
+ 
12711
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12712
+ SQL (0.0ms) BEGIN
12713
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = NULL, `counter` = 3 WHERE `id` = 1
12714
+ SQL (0.0ms) COMMIT
12715
+ SQL (0.0ms) SHOW TABLES
12716
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12717
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12718
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12719
+ FROM counters
12720
+ 
12721
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12722
+ SQL (0.2ms) BEGIN
12723
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = NULL, `counter` = 4 WHERE `id` = 1
12724
+ SQL (1.0ms) COMMIT
12725
+ SQL (0.0ms) SHOW TABLES
12726
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12727
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12728
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12729
+ FROM counters
12730
+ 
12731
+ SQL (1.1ms) SET SQL_AUTO_IS_NULL=0
12732
+ SQL (0.4ms) SHOW TABLES
12733
+ SQL (0.8ms) SELECT version FROM schema_migrations
12734
+ SQL (0.3ms) SHOW TABLES
12735
+ SQL (1.7ms) SELECT version FROM schema_migrations
12736
+ Migrating to Counters (1)
12737
+ SQL (0.3ms) SHOW TABLES
12738
+ SQL (0.8ms) SELECT version FROM schema_migrations
12739
+ SQL (1.9ms) SHOW TABLES
12740
+ SQL (0.2ms) SELECT version FROM schema_migrations
12741
+ Migrating to Counters (1)
12742
+ SQL (2.2ms) DROP TABLE `counters`
12743
+ SQL (1.2ms) DELETE FROM schema_migrations WHERE version = '1'
12744
+ SQL (0.5ms) SHOW TABLES
12745
+ SQL (0.2ms) SELECT version FROM schema_migrations
12746
+ SQL (4.4ms) SHOW TABLES
12747
+ SQL (0.5ms) SELECT version FROM schema_migrations
12748
+ Migrating to Counters (1)
12749
+ SQL (32.5ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12750
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
12751
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12752
+ SQL (0.0ms) BEGIN
12753
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12754
+ SQL (0.0ms) COMMIT
12755
+ SQL (0.0ms) SHOW TABLES
12756
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12757
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12758
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12759
+ FROM counters
12760
+ 
12761
+ SQL (0.0ms)  UPDATE counters
12762
+ SET counter_last_monday = 1, counter_data = '---
12763
+ counter_last_monday_before_today: 0
12764
+ counter_last_tuesday_before_today: 1
12765
+ counter_last_day: 1
12766
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12767
+ counter_last_wednesday_before_today: 1
12768
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12769
+ counter_last_2_days: 1
12770
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12771
+ WHERE id = 1
12772
+ 
12773
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12774
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12775
+ SQL (0.0ms) BEGIN
12776
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12777
+ SQL (0.0ms) COMMIT
12778
+ SQL (0.0ms) SHOW TABLES
12779
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12780
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12781
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12782
+ FROM counters
12783
+ 
12784
+ SQL (0.0ms)  UPDATE counters
12785
+ SET counter_last_monday = 2, counter_data = '---
12786
+ counter_last_monday_before_today: 0
12787
+ counter_last_tuesday_before_today: 2
12788
+ counter_last_day: 1
12789
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12790
+ counter_last_wednesday_before_today: 2
12791
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12792
+ counter_last_2_days: 1
12793
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12794
+ WHERE id = 1
12795
+ 
12796
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12797
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12798
+ SQL (0.0ms) BEGIN
12799
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12800
+ SQL (0.0ms) COMMIT
12801
+ SQL (0.0ms) SHOW TABLES
12802
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12803
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12804
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12805
+ FROM counters
12806
+ 
12807
+ SQL (0.0ms)  UPDATE counters
12808
+ SET counter_last_monday = 2, counter_data = '---
12809
+ counter_last_monday_before_today: 3
12810
+ counter_last_tuesday_before_today: 2
12811
+ counter_last_day: 3
12812
+ counter_last_day_at: 2010-06-22 00:00:00 Z
12813
+ counter_last_wednesday_before_today: 3
12814
+ counter_last_2_days_at: 2010-06-22 00:00:00 Z
12815
+ counter_last_2_days: 3
12816
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12817
+ WHERE id = 1
12818
+ 
12819
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12820
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12821
+ SQL (0.1ms) BEGIN
12822
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-22 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12823
+ SQL (0.5ms) COMMIT
12824
+ SQL (0.0ms) SHOW TABLES
12825
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12826
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12827
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12828
+ FROM counters
12829
+ 
12830
+ SQL (0.0ms)  UPDATE counters
12831
+ SET counter_last_monday = 2, counter_data = '---
12832
+ counter_last_monday_before_today: 4
12833
+ counter_last_tuesday_before_today: 4
12834
+ counter_last_day: 4
12835
+ counter_last_day_at: 2010-06-23 00:00:00 Z
12836
+ counter_last_wednesday_before_today: 3
12837
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
12838
+ counter_last_2_days: 4
12839
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
12840
+ WHERE id = 1
12841
+ 
12842
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12843
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
12844
+ SQL (0.8ms) SHOW TABLES
12845
+ SQL (0.2ms) SELECT version FROM schema_migrations
12846
+ SQL (0.2ms) SHOW TABLES
12847
+ SQL (0.2ms) SELECT version FROM schema_migrations
12848
+ Migrating to Counters (1)
12849
+ SQL (0.2ms) SHOW TABLES
12850
+ SQL (0.1ms) SELECT version FROM schema_migrations
12851
+ SQL (0.2ms) SHOW TABLES
12852
+ SQL (0.1ms) SELECT version FROM schema_migrations
12853
+ Migrating to Counters (1)
12854
+ SQL (59.2ms) DROP TABLE `counters`
12855
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
12856
+ SQL (0.5ms) SHOW TABLES
12857
+ SQL (0.3ms) SELECT version FROM schema_migrations
12858
+ SQL (0.3ms) SHOW TABLES
12859
+ SQL (0.3ms) SELECT version FROM schema_migrations
12860
+ Migrating to Counters (1)
12861
+ SQL (2.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12862
+ SQL (1.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
12863
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12864
+ SQL (0.0ms) BEGIN
12865
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12866
+ SQL (0.0ms) COMMIT
12867
+ SQL (0.0ms) SHOW TABLES
12868
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12869
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12870
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12871
+ FROM counters
12872
+ 
12873
+ SQL (0.0ms)  UPDATE counters
12874
+ SET counter_last_monday = 1, counter_data = '---
12875
+ counter_last_monday_before_today: 0
12876
+ counter_last_tuesday_before_today: 1
12877
+ counter_last_day: 1
12878
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12879
+ counter_last_wednesday_before_today: 1
12880
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12881
+ counter_last_2_days: 1
12882
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12883
+ WHERE id = 1
12884
+ 
12885
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12886
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12887
+ SQL (0.0ms) BEGIN
12888
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12889
+ SQL (0.0ms) COMMIT
12890
+ SQL (0.0ms) SHOW TABLES
12891
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12892
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12893
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12894
+ FROM counters
12895
+ 
12896
+ SQL (0.0ms)  UPDATE counters
12897
+ SET counter_last_monday = 2, counter_data = '---
12898
+ counter_last_monday_before_today: 0
12899
+ counter_last_tuesday_before_today: 2
12900
+ counter_last_day: 1
12901
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12902
+ counter_last_wednesday_before_today: 2
12903
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12904
+ counter_last_2_days: 1
12905
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12906
+ WHERE id = 1
12907
+ 
12908
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12909
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12910
+ SQL (0.0ms) BEGIN
12911
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12912
+ SQL (0.0ms) COMMIT
12913
+ SQL (0.0ms) SHOW TABLES
12914
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12915
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12916
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12917
+ FROM counters
12918
+ 
12919
+ SQL (0.0ms)  UPDATE counters
12920
+ SET counter_last_monday = 2, counter_data = '---
12921
+ counter_last_monday_before_today: 3
12922
+ counter_last_tuesday_before_today: 2
12923
+ counter_last_day: 3
12924
+ counter_last_day_at: 2010-06-22 00:00:00 Z
12925
+ counter_last_wednesday_before_today: 3
12926
+ counter_last_2_days_at: 2010-06-22 00:00:00 Z
12927
+ counter_last_2_days: 3
12928
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12929
+ WHERE id = 1
12930
+ 
12931
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12932
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12933
+ SQL (0.1ms) BEGIN
12934
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-22 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12935
+ SQL (0.6ms) COMMIT
12936
+ SQL (0.0ms) SHOW TABLES
12937
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12938
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12939
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12940
+ FROM counters
12941
+ 
12942
+ SQL (0.0ms)  UPDATE counters
12943
+ SET counter_last_monday = 2, counter_data = '---
12944
+ counter_last_monday_before_today: 4
12945
+ counter_last_tuesday_before_today: 4
12946
+ counter_last_day: 4
12947
+ counter_last_day_at: 2010-06-23 00:00:00 Z
12948
+ counter_last_wednesday_before_today: 3
12949
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
12950
+ counter_last_2_days: 4
12951
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
12952
+ WHERE id = 1
12953
+ 
12954
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12955
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
12956
+ SQL (0.3ms) SHOW TABLES
12957
+ SQL (0.2ms) SELECT version FROM schema_migrations
12958
+ SQL (0.2ms) SHOW TABLES
12959
+ SQL (0.2ms) SELECT version FROM schema_migrations
12960
+ Migrating to Counters (1)
12961
+ SQL (0.2ms) SHOW TABLES
12962
+ SQL (0.1ms) SELECT version FROM schema_migrations
12963
+ SQL (0.2ms) SHOW TABLES
12964
+ SQL (0.1ms) SELECT version FROM schema_migrations
12965
+ Migrating to Counters (1)
12966
+ SQL (10.9ms) DROP TABLE `counters`
12967
+ SQL (1.4ms) DELETE FROM schema_migrations WHERE version = '1'
12968
+ SQL (0.4ms) SHOW TABLES
12969
+ SQL (0.2ms) SELECT version FROM schema_migrations
12970
+ SQL (0.2ms) SHOW TABLES
12971
+ SQL (0.2ms) SELECT version FROM schema_migrations
12972
+ Migrating to Counters (1)
12973
+ SQL (40.9ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
12974
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
12975
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12976
+ SQL (0.0ms) BEGIN
12977
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
12978
+ SQL (0.0ms) COMMIT
12979
+ SQL (0.0ms) SHOW TABLES
12980
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12981
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12982
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12983
+ FROM counters
12984
+ 
12985
+ SQL (0.0ms)  UPDATE counters
12986
+ SET counter_last_monday = 1, counter_data = '---
12987
+ counter_last_monday_before_today: 0
12988
+ counter_last_tuesday_before_today: 1
12989
+ counter_last_day: 1
12990
+ counter_last_day_at: 2010-06-21 00:00:00 Z
12991
+ counter_last_wednesday_before_today: 1
12992
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
12993
+ counter_last_2_days: 1
12994
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12995
+ WHERE id = 1
12996
+ 
12997
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12998
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12999
+ SQL (0.0ms) BEGIN
13000
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13001
+ SQL (0.0ms) COMMIT
13002
+ SQL (0.0ms) SHOW TABLES
13003
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13004
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13005
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13006
+ FROM counters
13007
+ 
13008
+ SQL (0.0ms)  UPDATE counters
13009
+ SET counter_last_monday = 2, counter_data = '---
13010
+ counter_last_monday_before_today: 0
13011
+ counter_last_tuesday_before_today: 2
13012
+ counter_last_day: 1
13013
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13014
+ counter_last_wednesday_before_today: 2
13015
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13016
+ counter_last_2_days: 1
13017
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13018
+ WHERE id = 1
13019
+ 
13020
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13021
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13022
+ SQL (0.0ms) BEGIN
13023
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13024
+ SQL (0.0ms) COMMIT
13025
+ SQL (0.0ms) SHOW TABLES
13026
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13027
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13028
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13029
+ FROM counters
13030
+ 
13031
+ SQL (0.0ms)  UPDATE counters
13032
+ SET counter_last_monday = 2, counter_data = '---
13033
+ counter_last_monday_before_today: 3
13034
+ counter_last_tuesday_before_today: 2
13035
+ counter_last_day: 3
13036
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13037
+ counter_last_wednesday_before_today: 3
13038
+ counter_last_2_days_at: 2010-06-22 00:00:00 Z
13039
+ counter_last_2_days: 3
13040
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
13041
+ WHERE id = 1
13042
+ 
13043
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13044
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13045
+ SQL (0.1ms) BEGIN
13046
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-22 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13047
+ SQL (10.6ms) COMMIT
13048
+ SQL (0.0ms) SHOW TABLES
13049
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13050
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13051
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13052
+ FROM counters
13053
+ 
13054
+ SQL (0.0ms)  UPDATE counters
13055
+ SET counter_last_monday = 2, counter_data = '---
13056
+ counter_last_monday_before_today: 4
13057
+ counter_last_tuesday_before_today: 4
13058
+ counter_last_day: 4
13059
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13060
+ counter_last_wednesday_before_today: 3
13061
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13062
+ counter_last_2_days: 4
13063
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13064
+ WHERE id = 1
13065
+ 
13066
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13067
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13068
+ SQL (0.3ms) SHOW TABLES
13069
+ SQL (0.2ms) SELECT version FROM schema_migrations
13070
+ SQL (0.2ms) SHOW TABLES
13071
+ SQL (0.1ms) SELECT version FROM schema_migrations
13072
+ Migrating to Counters (1)
13073
+ SQL (0.2ms) SHOW TABLES
13074
+ SQL (0.1ms) SELECT version FROM schema_migrations
13075
+ SQL (0.2ms) SHOW TABLES
13076
+ SQL (0.1ms) SELECT version FROM schema_migrations
13077
+ Migrating to Counters (1)
13078
+ SQL (46.4ms) DROP TABLE `counters`
13079
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
13080
+ SQL (0.5ms) SHOW TABLES
13081
+ SQL (0.3ms) SELECT version FROM schema_migrations
13082
+ SQL (0.3ms) SHOW TABLES
13083
+ SQL (0.2ms) SELECT version FROM schema_migrations
13084
+ Migrating to Counters (1)
13085
+ SQL (2.1ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13086
+ SQL (1.2ms) INSERT INTO schema_migrations (version) VALUES ('1')
13087
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
13088
+ SQL (0.0ms) BEGIN
13089
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13090
+ SQL (0.0ms) COMMIT
13091
+ SQL (0.0ms) SHOW TABLES
13092
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13093
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13094
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13095
+ FROM counters
13096
+ 
13097
+ SQL (0.0ms)  UPDATE counters
13098
+ SET counter_last_monday = 1, counter_data = '---
13099
+ counter_last_monday_before_today: 0
13100
+ counter_last_tuesday_before_today: 1
13101
+ counter_last_day: 1
13102
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13103
+ counter_last_wednesday_before_today: 1
13104
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13105
+ counter_last_2_days: 1
13106
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13107
+ WHERE id = 1
13108
+ 
13109
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13110
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13111
+ SQL (0.0ms) BEGIN
13112
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13113
+ SQL (0.0ms) COMMIT
13114
+ SQL (0.0ms) SHOW TABLES
13115
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13116
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13117
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13118
+ FROM counters
13119
+ 
13120
+ SQL (0.0ms)  UPDATE counters
13121
+ SET counter_last_monday = 2, counter_data = '---
13122
+ counter_last_monday_before_today: 0
13123
+ counter_last_tuesday_before_today: 2
13124
+ counter_last_day: 1
13125
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13126
+ counter_last_wednesday_before_today: 2
13127
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13128
+ counter_last_2_days: 1
13129
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13130
+ WHERE id = 1
13131
+ 
13132
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13133
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13134
+ SQL (0.0ms) BEGIN
13135
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13136
+ SQL (0.0ms) COMMIT
13137
+ SQL (0.0ms) SHOW TABLES
13138
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13139
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13140
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13141
+ FROM counters
13142
+ 
13143
+ SQL (0.0ms)  UPDATE counters
13144
+ SET counter_last_monday = 2, counter_data = '---
13145
+ counter_last_monday_before_today: 3
13146
+ counter_last_tuesday_before_today: 2
13147
+ counter_last_day: 3
13148
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13149
+ counter_last_wednesday_before_today: 3
13150
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13151
+ counter_last_2_days: 1
13152
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13153
+ WHERE id = 1
13154
+ 
13155
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13156
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13157
+ SQL (0.1ms) BEGIN
13158
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13159
+ SQL (0.7ms) COMMIT
13160
+ SQL (0.0ms) SHOW TABLES
13161
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13162
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13163
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13164
+ FROM counters
13165
+ 
13166
+ SQL (0.0ms)  UPDATE counters
13167
+ SET counter_last_monday = 2, counter_data = '---
13168
+ counter_last_monday_before_today: 4
13169
+ counter_last_tuesday_before_today: 4
13170
+ counter_last_day: 4
13171
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13172
+ counter_last_wednesday_before_today: 3
13173
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13174
+ counter_last_2_days: 4
13175
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13176
+ WHERE id = 1
13177
+ 
13178
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13179
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13180
+ SQL (0.3ms) SHOW TABLES
13181
+ SQL (0.2ms) SELECT version FROM schema_migrations
13182
+ SQL (0.2ms) SHOW TABLES
13183
+ SQL (0.1ms) SELECT version FROM schema_migrations
13184
+ Migrating to Counters (1)
13185
+ SQL (0.2ms) SHOW TABLES
13186
+ SQL (0.1ms) SELECT version FROM schema_migrations
13187
+ SQL (0.2ms) SHOW TABLES
13188
+ SQL (0.2ms) SELECT version FROM schema_migrations
13189
+ Migrating to Counters (1)
13190
+ SQL (10.7ms) DROP TABLE `counters`
13191
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
13192
+ SQL (0.2ms) SHOW TABLES
13193
+ SQL (0.1ms) SELECT version FROM schema_migrations
13194
+ SQL (0.2ms) SHOW TABLES
13195
+ SQL (0.1ms) SELECT version FROM schema_migrations
13196
+ Migrating to Counters (1)
13197
+ SQL (39.6ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13198
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
13199
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
13200
+ SQL (0.0ms) BEGIN
13201
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13202
+ SQL (0.0ms) COMMIT
13203
+ SQL (0.0ms) SHOW TABLES
13204
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13205
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13206
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13207
+ FROM counters
13208
+ 
13209
+ SQL (0.0ms)  UPDATE counters
13210
+ SET counter_last_monday = 1, counter_data = '---
13211
+ counter_last_monday_before_today: 0
13212
+ counter_last_tuesday_before_today: 1
13213
+ counter_last_day: 1
13214
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13215
+ counter_last_wednesday_before_today: 1
13216
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13217
+ counter_last_2_days: 1
13218
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13219
+ WHERE id = 1
13220
+ 
13221
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13222
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13223
+ SQL (0.0ms) BEGIN
13224
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13225
+ SQL (0.0ms) COMMIT
13226
+ SQL (0.0ms) SHOW TABLES
13227
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13228
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13229
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13230
+ FROM counters
13231
+ 
13232
+ SQL (0.0ms)  UPDATE counters
13233
+ SET counter_last_monday = 2, counter_data = '---
13234
+ counter_last_monday_before_today: 0
13235
+ counter_last_tuesday_before_today: 2
13236
+ counter_last_day: 1
13237
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13238
+ counter_last_wednesday_before_today: 2
13239
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13240
+ counter_last_2_days: 1
13241
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13242
+ WHERE id = 1
13243
+ 
13244
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13245
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13246
+ SQL (0.0ms) BEGIN
13247
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13248
+ SQL (0.0ms) COMMIT
13249
+ SQL (0.0ms) SHOW TABLES
13250
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13251
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13252
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13253
+ FROM counters
13254
+ 
13255
+ SQL (0.0ms)  UPDATE counters
13256
+ SET counter_last_monday = 2, counter_data = '---
13257
+ counter_last_monday_before_today: 3
13258
+ counter_last_tuesday_before_today: 2
13259
+ counter_last_day: 3
13260
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13261
+ counter_last_wednesday_before_today: 3
13262
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13263
+ counter_last_2_days: 1
13264
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13265
+ WHERE id = 1
13266
+ 
13267
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13268
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13269
+ SQL (0.1ms) BEGIN
13270
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13271
+ SQL (0.6ms) COMMIT
13272
+ SQL (0.0ms) SHOW TABLES
13273
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13274
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13275
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13276
+ FROM counters
13277
+ 
13278
+ SQL (0.0ms)  UPDATE counters
13279
+ SET counter_last_monday = 2, counter_data = '---
13280
+ counter_last_monday_before_today: 4
13281
+ counter_last_tuesday_before_today: 4
13282
+ counter_last_day: 4
13283
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13284
+ counter_last_wednesday_before_today: 3
13285
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13286
+ counter_last_2_days: 4
13287
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13288
+ WHERE id = 1
13289
+ 
13290
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13291
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13292
+ SQL (0.3ms) SHOW TABLES
13293
+ SQL (0.2ms) SELECT version FROM schema_migrations
13294
+ SQL (0.2ms) SHOW TABLES
13295
+ SQL (0.1ms) SELECT version FROM schema_migrations
13296
+ Migrating to Counters (1)
13297
+ SQL (0.2ms) SHOW TABLES
13298
+ SQL (0.1ms) SELECT version FROM schema_migrations
13299
+ SQL (0.2ms) SHOW TABLES
13300
+ SQL (0.1ms) SELECT version FROM schema_migrations
13301
+ Migrating to Counters (1)
13302
+ SQL (38.1ms) DROP TABLE `counters`
13303
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
13304
+ SQL (0.3ms) SHOW TABLES
13305
+ SQL (0.1ms) SELECT version FROM schema_migrations
13306
+ SQL (0.2ms) SHOW TABLES
13307
+ SQL (0.1ms) SELECT version FROM schema_migrations
13308
+ Migrating to Counters (1)
13309
+ SQL (1.9ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13310
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
13311
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
13312
+ SQL (0.0ms) BEGIN
13313
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13314
+ SQL (0.0ms) COMMIT
13315
+ SQL (0.0ms) SHOW TABLES
13316
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13317
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13318
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13319
+ FROM counters
13320
+ 
13321
+ SQL (0.0ms)  UPDATE counters
13322
+ SET counter_last_monday = 1, counter_data = '---
13323
+ counter_last_monday_before_today: 0
13324
+ counter_last_tuesday_before_today: 1
13325
+ counter_last_day: 1
13326
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13327
+ counter_last_wednesday_before_today: 1
13328
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13329
+ counter_last_2_days: 1
13330
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13331
+ WHERE id = 1
13332
+ 
13333
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13334
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13335
+ SQL (0.0ms) BEGIN
13336
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13337
+ SQL (0.0ms) COMMIT
13338
+ SQL (0.0ms) SHOW TABLES
13339
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13340
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13341
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13342
+ FROM counters
13343
+ 
13344
+ SQL (0.0ms)  UPDATE counters
13345
+ SET counter_last_monday = 2, counter_data = '---
13346
+ counter_last_monday_before_today: 0
13347
+ counter_last_tuesday_before_today: 2
13348
+ counter_last_day: 1
13349
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13350
+ counter_last_wednesday_before_today: 2
13351
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13352
+ counter_last_2_days: 1
13353
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13354
+ WHERE id = 1
13355
+ 
13356
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13357
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13358
+ SQL (0.0ms) BEGIN
13359
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13360
+ SQL (0.0ms) COMMIT
13361
+ SQL (0.0ms) SHOW TABLES
13362
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13363
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13364
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13365
+ FROM counters
13366
+ 
13367
+ SQL (0.0ms)  UPDATE counters
13368
+ SET counter_last_monday = 2, counter_data = '---
13369
+ counter_last_monday_before_today: 3
13370
+ counter_last_tuesday_before_today: 2
13371
+ counter_last_day: 3
13372
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13373
+ counter_last_wednesday_before_today: 3
13374
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13375
+ counter_last_2_days: 1
13376
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13377
+ WHERE id = 1
13378
+ 
13379
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13380
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13381
+ SQL (0.1ms) BEGIN
13382
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13383
+ SQL (24.8ms) COMMIT
13384
+ SQL (0.0ms) SHOW TABLES
13385
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13386
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13387
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13388
+ FROM counters
13389
+ 
13390
+ SQL (0.0ms)  UPDATE counters
13391
+ SET counter_last_monday = 2, counter_data = '---
13392
+ counter_last_monday_before_today: 4
13393
+ counter_last_tuesday_before_today: 4
13394
+ counter_last_day: 4
13395
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13396
+ counter_last_wednesday_before_today: 3
13397
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13398
+ counter_last_2_days: 4
13399
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13400
+ WHERE id = 1
13401
+ 
13402
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13403
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13404
+ SQL (0.3ms) SHOW TABLES
13405
+ SQL (0.2ms) SELECT version FROM schema_migrations
13406
+ SQL (0.2ms) SHOW TABLES
13407
+ SQL (0.1ms) SELECT version FROM schema_migrations
13408
+ Migrating to Counters (1)
13409
+ SQL (0.2ms) SHOW TABLES
13410
+ SQL (0.1ms) SELECT version FROM schema_migrations
13411
+ SQL (0.2ms) SHOW TABLES
13412
+ SQL (0.1ms) SELECT version FROM schema_migrations
13413
+ Migrating to Counters (1)
13414
+ SQL (10.8ms) DROP TABLE `counters`
13415
+ SQL (1.0ms) DELETE FROM schema_migrations WHERE version = '1'
13416
+ SQL (0.5ms) SHOW TABLES
13417
+ SQL (0.3ms) SELECT version FROM schema_migrations
13418
+ SQL (0.3ms) SHOW TABLES
13419
+ SQL (0.2ms) SELECT version FROM schema_migrations
13420
+ Migrating to Counters (1)
13421
+ SQL (34.3ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13422
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
13423
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
13424
+ SQL (0.0ms) BEGIN
13425
+ Counter Create (0.0ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13426
+ SQL (0.0ms) COMMIT
13427
+ SQL (0.0ms) SHOW TABLES
13428
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13429
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13430
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13431
+ FROM counters
13432
+ 
13433
+ SQL (0.0ms)  UPDATE counters
13434
+ SET counter_last_monday = 1, counter_data = '---
13435
+ counter_last_monday_before_today: 0
13436
+ counter_last_tuesday_before_today: 1
13437
+ counter_last_day: 1
13438
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13439
+ counter_last_wednesday_before_today: 1
13440
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13441
+ counter_last_2_days: 1
13442
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13443
+ WHERE id = 1
13444
+ 
13445
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13446
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13447
+ SQL (0.0ms) BEGIN
13448
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13449
+ SQL (0.0ms) COMMIT
13450
+ SQL (0.0ms) SHOW TABLES
13451
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13452
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13453
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13454
+ FROM counters
13455
+ 
13456
+ SQL (0.0ms)  UPDATE counters
13457
+ SET counter_last_monday = 2, counter_data = '---
13458
+ counter_last_monday_before_today: 0
13459
+ counter_last_tuesday_before_today: 2
13460
+ counter_last_day: 1
13461
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13462
+ counter_last_wednesday_before_today: 2
13463
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13464
+ counter_last_2_days: 1
13465
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13466
+ WHERE id = 1
13467
+ 
13468
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13469
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13470
+ SQL (0.0ms) BEGIN
13471
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13472
+ SQL (0.0ms) COMMIT
13473
+ SQL (0.0ms) SHOW TABLES
13474
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13475
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13476
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13477
+ FROM counters
13478
+ 
13479
+ SQL (0.0ms)  UPDATE counters
13480
+ SET counter_last_monday = 2, counter_data = '---
13481
+ counter_last_monday_before_today: 3
13482
+ counter_last_tuesday_before_today: 2
13483
+ counter_last_day: 3
13484
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13485
+ counter_last_wednesday_before_today: 3
13486
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13487
+ counter_last_2_days: 1
13488
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13489
+ WHERE id = 1
13490
+ 
13491
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13492
+ Counter Load (0.9ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13493
+ SQL (0.1ms) BEGIN
13494
+ Counter Update (1.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13495
+ SQL (0.9ms) COMMIT
13496
+ SQL (0.0ms) SHOW TABLES
13497
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13498
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13499
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13500
+ FROM counters
13501
+ 
13502
+ SQL (0.0ms)  UPDATE counters
13503
+ SET counter_last_monday = 2, counter_data = '---
13504
+ counter_last_monday_before_today: 4
13505
+ counter_last_tuesday_before_today: 4
13506
+ counter_last_day: 4
13507
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13508
+ counter_last_wednesday_before_today: 3
13509
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13510
+ counter_last_2_days: 4
13511
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13512
+ WHERE id = 1
13513
+ 
13514
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13515
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13516
+ SQL (0.3ms) SHOW TABLES
13517
+ SQL (0.2ms) SELECT version FROM schema_migrations
13518
+ SQL (0.2ms) SHOW TABLES
13519
+ SQL (0.1ms) SELECT version FROM schema_migrations
13520
+ Migrating to Counters (1)
13521
+ SQL (0.2ms) SHOW TABLES
13522
+ SQL (0.1ms) SELECT version FROM schema_migrations
13523
+ SQL (0.2ms) SHOW TABLES
13524
+ SQL (0.1ms) SELECT version FROM schema_migrations
13525
+ Migrating to Counters (1)
13526
+ SQL (40.6ms) DROP TABLE `counters`
13527
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
13528
+ SQL (0.4ms) SHOW TABLES
13529
+ SQL (0.2ms) SELECT version FROM schema_migrations
13530
+ SQL (0.2ms) SHOW TABLES
13531
+ SQL (0.2ms) SELECT version FROM schema_migrations
13532
+ Migrating to Counters (1)
13533
+ SQL (2.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13534
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
13535
+ Counter Columns (110.7ms) SHOW FIELDS FROM `counters`
13536
+ SQL (34.5ms) BEGIN
13537
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13538
+ SQL (0.7ms) COMMIT
13539
+ SQL (0.0ms) SHOW TABLES
13540
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13541
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13542
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13543
+ FROM counters
13544
+ 
13545
+ SQL (0.0ms)  UPDATE counters
13546
+ SET counter_last_monday = 1, counter_data = '---
13547
+ counter_last_monday_before_today: 0
13548
+ counter_last_tuesday_before_today: 1
13549
+ counter_last_day: 1
13550
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13551
+ counter_last_wednesday_before_today: 1
13552
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13553
+ counter_last_2_days: 1
13554
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13555
+ WHERE id = 1
13556
+ 
13557
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13558
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13559
+ SQL (0.0ms) BEGIN
13560
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13561
+ SQL (0.0ms) COMMIT
13562
+ SQL (0.0ms) SHOW TABLES
13563
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13564
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13565
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13566
+ FROM counters
13567
+ 
13568
+ SQL (0.0ms)  UPDATE counters
13569
+ SET counter_last_monday = 2, counter_data = '---
13570
+ counter_last_monday_before_today: 0
13571
+ counter_last_tuesday_before_today: 2
13572
+ counter_last_day: 1
13573
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13574
+ counter_last_wednesday_before_today: 2
13575
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13576
+ counter_last_2_days: 1
13577
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13578
+ WHERE id = 1
13579
+ 
13580
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13581
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13582
+ SQL (0.1ms) BEGIN
13583
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13584
+ SQL (0.6ms) COMMIT
13585
+ SQL (0.0ms) SHOW TABLES
13586
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13587
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13588
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13589
+ FROM counters
13590
+ 
13591
+ SQL (0.0ms)  UPDATE counters
13592
+ SET counter_last_monday = 2, counter_data = '---
13593
+ counter_last_monday_before_today: 3
13594
+ counter_last_tuesday_before_today: 2
13595
+ counter_last_day: 3
13596
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13597
+ counter_last_wednesday_before_today: 3
13598
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13599
+ counter_last_2_days: 1
13600
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13601
+ WHERE id = 1
13602
+ 
13603
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13604
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13605
+ SQL (0.1ms) BEGIN
13606
+ Counter Update (1.1ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13607
+ SQL (0.7ms) COMMIT
13608
+ SQL (0.0ms) SHOW TABLES
13609
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13610
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13611
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13612
+ FROM counters
13613
+ 
13614
+ SQL (0.0ms)  UPDATE counters
13615
+ SET counter_last_monday = 2, counter_data = '---
13616
+ counter_last_monday_before_today: 4
13617
+ counter_last_tuesday_before_today: 4
13618
+ counter_last_day: 4
13619
+ counter_last_day_at: 2010-06-23 00:00:00 Z
13620
+ counter_last_wednesday_before_today: 3
13621
+ counter_last_2_days_at: 2010-06-23 00:00:00 Z
13622
+ counter_last_2_days: 4
13623
+ ', counter_last_day = 0, counter_last_wednesday = 1, counter_last_tuesday = 1, counter_last_2_days = 0
13624
+ WHERE id = 1
13625
+ 
13626
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13627
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13628
+ SQL (0.3ms) SHOW TABLES
13629
+ SQL (0.2ms) SELECT version FROM schema_migrations
13630
+ SQL (0.2ms) SHOW TABLES
13631
+ SQL (0.2ms) SELECT version FROM schema_migrations
13632
+ Migrating to Counters (1)
13633
+ SQL (0.2ms) SHOW TABLES
13634
+ SQL (0.1ms) SELECT version FROM schema_migrations
13635
+ SQL (0.2ms) SHOW TABLES
13636
+ SQL (0.1ms) SELECT version FROM schema_migrations
13637
+ Migrating to Counters (1)
13638
+ SQL (10.6ms) DROP TABLE `counters`
13639
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
13640
+ SQL (0.2ms) SHOW TABLES
13641
+ SQL (0.1ms) SELECT version FROM schema_migrations
13642
+ SQL (0.2ms) SHOW TABLES
13643
+ SQL (0.1ms) SELECT version FROM schema_migrations
13644
+ Migrating to Counters (1)
13645
+ SQL (42.1ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13646
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
13647
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
13648
+ SQL (0.1ms) BEGIN
13649
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
13650
+ SQL (0.6ms) COMMIT
13651
+ SQL (0.0ms) SHOW TABLES
13652
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13653
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13654
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13655
+ FROM counters
13656
+ 
13657
+ SQL (0.0ms)  UPDATE counters
13658
+ SET counter_last_monday = 1, counter_data = '---
13659
+ counter_last_monday_before_today: 0
13660
+ counter_last_tuesday_before_today: 1
13661
+ counter_last_day: 1
13662
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13663
+ counter_last_wednesday_before_today: 1
13664
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13665
+ counter_last_2_days: 1
13666
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
13667
+ WHERE id = 1
13668
+ 
13669
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13670
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13671
+ SQL (0.0ms) BEGIN
13672
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13673
+ SQL (0.0ms) COMMIT
13674
+ SQL (0.0ms) SHOW TABLES
13675
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13676
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13677
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13678
+ FROM counters
13679
+ 
13680
+ SQL (0.0ms)  UPDATE counters
13681
+ SET counter_last_monday = 2, counter_data = '---
13682
+ counter_last_monday_before_today: 0
13683
+ counter_last_tuesday_before_today: 2
13684
+ counter_last_day: 1
13685
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13686
+ counter_last_wednesday_before_today: 2
13687
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13688
+ counter_last_2_days: 1
13689
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
13690
+ WHERE id = 1
13691
+ 
13692
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13693
+ Counter Load (0.5ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13694
+ SQL (0.1ms) BEGIN
13695
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13696
+ SQL (0.7ms) COMMIT
13697
+ SQL (0.0ms) SHOW TABLES
13698
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13699
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13700
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13701
+ FROM counters
13702
+ 
13703
+ SQL (0.0ms)  UPDATE counters
13704
+ SET counter_last_monday = 2, counter_data = '---
13705
+ counter_last_monday_before_today: 3
13706
+ counter_last_tuesday_before_today: 2
13707
+ counter_last_day: 3
13708
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13709
+ counter_last_wednesday_before_today: 3
13710
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13711
+ counter_last_2_days: 1
13712
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
13713
+ WHERE id = 1
13714
+ 
13715
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13716
+ Counter Load (0.9ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13717
+ SQL (0.1ms) BEGIN
13718
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13719
+ SQL (0.5ms) COMMIT
13720
+ SQL (0.0ms) SHOW TABLES
13721
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13722
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13723
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13724
+ FROM counters
13725
+ 
13726
+ SQL (0.0ms)  UPDATE counters
13727
+ SET counter_last_monday = 2, counter_data = '---
13728
+ counter_last_monday_before_today: 4
13729
+ counter_last_tuesday_before_today: 4
13730
+ counter_last_day: 4
13731
+ counter_last_day_at: 2010-06-24 00:00:00 Z
13732
+ counter_last_wednesday_before_today: 4
13733
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
13734
+ counter_last_2_days: 4
13735
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
13736
+ WHERE id = 1
13737
+ 
13738
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13739
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13740
+ SQL (0.9ms) SHOW TABLES
13741
+ SQL (0.2ms) SELECT version FROM schema_migrations
13742
+ SQL (0.2ms) SHOW TABLES
13743
+ SQL (0.1ms) SELECT version FROM schema_migrations
13744
+ Migrating to Counters (1)
13745
+ SQL (0.2ms) SHOW TABLES
13746
+ SQL (0.1ms) SELECT version FROM schema_migrations
13747
+ SQL (0.2ms) SHOW TABLES
13748
+ SQL (0.1ms) SELECT version FROM schema_migrations
13749
+ Migrating to Counters (1)
13750
+ SQL (10.6ms) DROP TABLE `counters`
13751
+ SQL (39.3ms) DELETE FROM schema_migrations WHERE version = '1'
13752
+ SQL (0.5ms) SHOW TABLES
13753
+ SQL (0.2ms) SELECT version FROM schema_migrations
13754
+ SQL (0.2ms) SHOW TABLES
13755
+ SQL (0.1ms) SELECT version FROM schema_migrations
13756
+ Migrating to Counters (1)
13757
+ SQL (2.3ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13758
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
13759
+ Counter Columns (1.4ms) SHOW FIELDS FROM `counters`
13760
+ SQL (0.9ms) BEGIN
13761
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
13762
+ SQL (0.4ms) COMMIT
13763
+ SQL (0.0ms) SHOW TABLES
13764
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13765
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13766
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13767
+ FROM counters
13768
+ 
13769
+ SQL (0.0ms)  UPDATE counters
13770
+ SET counter_last_monday = 1, counter_data = '---
13771
+ counter_last_monday_before_today: 0
13772
+ counter_last_tuesday_before_today: 1
13773
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13774
+ counter_last_day: 1
13775
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13776
+ counter_2_days_ago: 1
13777
+ counter_last_wednesday_before_today: 1
13778
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
13779
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13780
+ counter_last_2_days: 1
13781
+ counter_1_day_ago: 1
13782
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
13783
+ WHERE id = 1
13784
+ 
13785
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13786
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13787
+ SQL (0.0ms) BEGIN
13788
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13789
+ SQL (0.0ms) COMMIT
13790
+ SQL (0.0ms) SHOW TABLES
13791
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13792
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13793
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13794
+ FROM counters
13795
+ 
13796
+ SQL (0.0ms)  UPDATE counters
13797
+ SET counter_last_monday = 2, counter_data = '---
13798
+ counter_last_monday_before_today: 0
13799
+ counter_last_tuesday_before_today: 2
13800
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13801
+ counter_last_day: 1
13802
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13803
+ counter_2_days_ago: 1
13804
+ counter_last_wednesday_before_today: 2
13805
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
13806
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13807
+ counter_last_2_days: 1
13808
+ counter_1_day_ago: 1
13809
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
13810
+ WHERE id = 1
13811
+ 
13812
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13813
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13814
+ SQL (0.1ms) BEGIN
13815
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13816
+ SQL (0.5ms) COMMIT
13817
+ SQL (0.0ms) SHOW TABLES
13818
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13819
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13820
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13821
+ FROM counters
13822
+ 
13823
+ SQL (0.0ms)  UPDATE counters
13824
+ SET counter_last_monday = 2, counter_data = '---
13825
+ counter_last_monday_before_today: 3
13826
+ counter_last_tuesday_before_today: 2
13827
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13828
+ counter_last_day: 3
13829
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13830
+ counter_2_days_ago: 1
13831
+ counter_last_wednesday_before_today: 3
13832
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
13833
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13834
+ counter_last_2_days: 1
13835
+ counter_1_day_ago: 3
13836
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
13837
+ WHERE id = 1
13838
+ 
13839
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13840
+ Counter Load (10.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13841
+ SQL (0.1ms) BEGIN
13842
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13843
+ SQL (1.0ms) COMMIT
13844
+ SQL (0.0ms) SHOW TABLES
13845
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13846
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13847
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13848
+ FROM counters
13849
+ 
13850
+ SQL (0.0ms)  UPDATE counters
13851
+ SET counter_last_monday = 2, counter_data = '---
13852
+ counter_last_monday_before_today: 4
13853
+ counter_last_tuesday_before_today: 4
13854
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
13855
+ counter_last_day: 4
13856
+ counter_last_day_at: 2010-06-24 00:00:00 Z
13857
+ counter_2_days_ago: 4
13858
+ counter_last_wednesday_before_today: 4
13859
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
13860
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
13861
+ counter_last_2_days: 4
13862
+ counter_1_day_ago: 4
13863
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
13864
+ WHERE id = 1
13865
+ 
13866
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13867
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
13868
+ SQL (0.3ms) SHOW TABLES
13869
+ SQL (0.2ms) SELECT version FROM schema_migrations
13870
+ SQL (0.2ms) SHOW TABLES
13871
+ SQL (0.1ms) SELECT version FROM schema_migrations
13872
+ Migrating to Counters (1)
13873
+ SQL (0.2ms) SHOW TABLES
13874
+ SQL (0.1ms) SELECT version FROM schema_migrations
13875
+ SQL (0.2ms) SHOW TABLES
13876
+ SQL (0.1ms) SELECT version FROM schema_migrations
13877
+ Migrating to Counters (1)
13878
+ SQL (41.5ms) DROP TABLE `counters`
13879
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
13880
+ SQL (0.3ms) SHOW TABLES
13881
+ SQL (0.1ms) SELECT version FROM schema_migrations
13882
+ SQL (0.2ms) SHOW TABLES
13883
+ SQL (0.1ms) SELECT version FROM schema_migrations
13884
+ Migrating to Counters (1)
13885
+ SQL (2.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
13886
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
13887
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
13888
+ SQL (0.1ms) BEGIN
13889
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
13890
+ SQL (0.9ms) COMMIT
13891
+ SQL (0.0ms) SHOW TABLES
13892
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13893
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13894
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13895
+ FROM counters
13896
+ 
13897
+ SQL (0.0ms)  UPDATE counters
13898
+ SET counter_last_monday = 1, counter_data = '---
13899
+ counter_last_monday_before_today: 0
13900
+ counter_last_tuesday_before_today: 1
13901
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13902
+ counter_last_day: 1
13903
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13904
+ counter_2_days_ago: 1
13905
+ counter_last_wednesday_before_today: 1
13906
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
13907
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13908
+ counter_last_2_days: 1
13909
+ counter_1_day_ago: 1
13910
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
13911
+ WHERE id = 1
13912
+ 
13913
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13914
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13915
+ SQL (0.0ms) BEGIN
13916
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
13917
+ SQL (0.0ms) COMMIT
13918
+ SQL (0.0ms) SHOW TABLES
13919
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13920
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13921
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13922
+ FROM counters
13923
+ 
13924
+ SQL (0.0ms)  UPDATE counters
13925
+ SET counter_last_monday = 2, counter_data = '---
13926
+ counter_last_monday_before_today: 0
13927
+ counter_last_tuesday_before_today: 2
13928
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13929
+ counter_last_day: 1
13930
+ counter_last_day_at: 2010-06-21 00:00:00 Z
13931
+ counter_2_days_ago: 1
13932
+ counter_last_wednesday_before_today: 2
13933
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
13934
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13935
+ counter_last_2_days: 1
13936
+ counter_1_day_ago: 1
13937
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
13938
+ WHERE id = 1
13939
+ 
13940
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13941
+ Counter Load (1.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13942
+ SQL (0.1ms) BEGIN
13943
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
13944
+ SQL (0.6ms) COMMIT
13945
+ SQL (0.0ms) SHOW TABLES
13946
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13947
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13948
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13949
+ FROM counters
13950
+ 
13951
+ SQL (0.0ms)  UPDATE counters
13952
+ SET counter_last_monday = 2, counter_data = '---
13953
+ counter_last_monday_before_today: 3
13954
+ counter_last_tuesday_before_today: 2
13955
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
13956
+ counter_last_day: 3
13957
+ counter_last_day_at: 2010-06-22 00:00:00 Z
13958
+ counter_2_days_ago: 1
13959
+ counter_last_wednesday_before_today: 3
13960
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
13961
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
13962
+ counter_last_2_days: 1
13963
+ counter_1_day_ago: 3
13964
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
13965
+ WHERE id = 1
13966
+ 
13967
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13968
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13969
+ SQL (0.1ms) BEGIN
13970
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
13971
+ SQL (1.1ms) COMMIT
13972
+ SQL (0.0ms) SHOW TABLES
13973
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
13974
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
13975
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
13976
+ FROM counters
13977
+ 
13978
+ SQL (0.0ms)  UPDATE counters
13979
+ SET counter_last_monday = 2, counter_data = '---
13980
+ counter_last_monday_before_today: 4
13981
+ counter_last_tuesday_before_today: 4
13982
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
13983
+ counter_last_day: 4
13984
+ counter_last_day_at: 2010-06-24 00:00:00 Z
13985
+ counter_2_days_ago: 4
13986
+ counter_last_wednesday_before_today: 4
13987
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
13988
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
13989
+ counter_last_2_days: 4
13990
+ counter_1_day_ago: 4
13991
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
13992
+ WHERE id = 1
13993
+ 
13994
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
13995
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
13996
+ SQL (0.3ms) SHOW TABLES
13997
+ SQL (0.2ms) SELECT version FROM schema_migrations
13998
+ SQL (0.2ms) SHOW TABLES
13999
+ SQL (0.1ms) SELECT version FROM schema_migrations
14000
+ Migrating to Counters (1)
14001
+ SQL (0.2ms) SHOW TABLES
14002
+ SQL (0.1ms) SELECT version FROM schema_migrations
14003
+ SQL (0.2ms) SHOW TABLES
14004
+ SQL (0.1ms) SELECT version FROM schema_migrations
14005
+ Migrating to Counters (1)
14006
+ SQL (44.2ms) DROP TABLE `counters`
14007
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
14008
+ SQL (0.3ms) SHOW TABLES
14009
+ SQL (0.1ms) SELECT version FROM schema_migrations
14010
+ SQL (0.2ms) SHOW TABLES
14011
+ SQL (0.1ms) SELECT version FROM schema_migrations
14012
+ Migrating to Counters (1)
14013
+ SQL (2.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14014
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
14015
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
14016
+ SQL (0.1ms) BEGIN
14017
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14018
+ SQL (10.8ms) COMMIT
14019
+ SQL (0.0ms) SHOW TABLES
14020
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14021
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14022
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14023
+ FROM counters
14024
+ 
14025
+ SQL (0.0ms)  UPDATE counters
14026
+ SET counter_last_monday = 1, counter_data = '---
14027
+ counter_last_monday_before_today: 0
14028
+ counter_last_tuesday_before_today: 1
14029
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14030
+ counter_last_day: 1
14031
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14032
+ counter_2_days_ago: 1
14033
+ counter_last_wednesday_before_today: 1
14034
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14035
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14036
+ counter_last_2_days: 1
14037
+ counter_1_day_ago: 1
14038
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14039
+ WHERE id = 1
14040
+ 
14041
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14042
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14043
+ SQL (0.0ms) BEGIN
14044
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14045
+ SQL (0.0ms) COMMIT
14046
+ SQL (0.0ms) SHOW TABLES
14047
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14048
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14049
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14050
+ FROM counters
14051
+ 
14052
+ SQL (0.0ms)  UPDATE counters
14053
+ SET counter_last_monday = 2, counter_data = '---
14054
+ counter_last_monday_before_today: 0
14055
+ counter_last_tuesday_before_today: 2
14056
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14057
+ counter_last_day: 1
14058
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14059
+ counter_2_days_ago: 1
14060
+ counter_last_wednesday_before_today: 2
14061
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14062
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14063
+ counter_last_2_days: 1
14064
+ counter_1_day_ago: 1
14065
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14066
+ WHERE id = 1
14067
+ 
14068
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14069
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14070
+ SQL (0.1ms) BEGIN
14071
+ Counter Update (0.6ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14072
+ SQL (1.0ms) COMMIT
14073
+ SQL (0.0ms) SHOW TABLES
14074
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14075
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14076
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14077
+ FROM counters
14078
+ 
14079
+ SQL (0.0ms)  UPDATE counters
14080
+ SET counter_last_monday = 2, counter_data = '---
14081
+ counter_last_monday_before_today: 3
14082
+ counter_last_tuesday_before_today: 2
14083
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14084
+ counter_last_day: 3
14085
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14086
+ counter_2_days_ago: 1
14087
+ counter_last_wednesday_before_today: 3
14088
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14089
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14090
+ counter_last_2_days: 1
14091
+ counter_1_day_ago: 3
14092
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14093
+ WHERE id = 1
14094
+ 
14095
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14096
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14097
+ SQL (0.1ms) BEGIN
14098
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14099
+ SQL (0.5ms) COMMIT
14100
+ SQL (0.0ms) SHOW TABLES
14101
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14102
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14103
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14104
+ FROM counters
14105
+ 
14106
+ SQL (0.0ms)  UPDATE counters
14107
+ SET counter_last_monday = 2, counter_data = '---
14108
+ counter_last_monday_before_today: 4
14109
+ counter_last_tuesday_before_today: 4
14110
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14111
+ counter_last_day: 4
14112
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14113
+ counter_2_days_ago: 4
14114
+ counter_last_wednesday_before_today: 4
14115
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14116
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14117
+ counter_last_2_days: 4
14118
+ counter_1_day_ago: 4
14119
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14120
+ WHERE id = 1
14121
+ 
14122
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14123
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
14124
+ SQL (0.3ms) SHOW TABLES
14125
+ SQL (0.2ms) SELECT version FROM schema_migrations
14126
+ SQL (0.2ms) SHOW TABLES
14127
+ SQL (0.1ms) SELECT version FROM schema_migrations
14128
+ Migrating to Counters (1)
14129
+ SQL (0.2ms) SHOW TABLES
14130
+ SQL (0.1ms) SELECT version FROM schema_migrations
14131
+ SQL (0.2ms) SHOW TABLES
14132
+ SQL (0.1ms) SELECT version FROM schema_migrations
14133
+ Migrating to Counters (1)
14134
+ SQL (47.1ms) DROP TABLE `counters`
14135
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
14136
+ SQL (0.3ms) SHOW TABLES
14137
+ SQL (0.1ms) SELECT version FROM schema_migrations
14138
+ SQL (0.2ms) SHOW TABLES
14139
+ SQL (0.1ms) SELECT version FROM schema_migrations
14140
+ Migrating to Counters (1)
14141
+ SQL (2.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14142
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
14143
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
14144
+ SQL (0.1ms) BEGIN
14145
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14146
+ SQL (0.5ms) COMMIT
14147
+ SQL (0.0ms) SHOW TABLES
14148
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14149
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14150
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14151
+ FROM counters
14152
+ 
14153
+ SQL (0.0ms)  UPDATE counters
14154
+ SET counter_last_monday = 1, counter_data = '---
14155
+ counter_last_monday_before_today: 0
14156
+ counter_last_tuesday_before_today: 1
14157
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14158
+ counter_last_day: 1
14159
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14160
+ counter_2_days_ago: 1
14161
+ counter_last_wednesday_before_today: 1
14162
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14163
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14164
+ counter_last_2_days: 1
14165
+ counter_1_day_ago: 1
14166
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14167
+ WHERE id = 1
14168
+ 
14169
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14170
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14171
+ SQL (0.0ms) BEGIN
14172
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14173
+ SQL (0.0ms) COMMIT
14174
+ SQL (0.0ms) SHOW TABLES
14175
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14176
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14177
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14178
+ FROM counters
14179
+ 
14180
+ SQL (0.0ms)  UPDATE counters
14181
+ SET counter_last_monday = 2, counter_data = '---
14182
+ counter_last_monday_before_today: 0
14183
+ counter_last_tuesday_before_today: 2
14184
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14185
+ counter_last_day: 1
14186
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14187
+ counter_2_days_ago: 1
14188
+ counter_last_wednesday_before_today: 2
14189
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14190
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14191
+ counter_last_2_days: 1
14192
+ counter_1_day_ago: 1
14193
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14194
+ WHERE id = 1
14195
+ 
14196
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14197
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14198
+ SQL (0.1ms) BEGIN
14199
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14200
+ SQL (0.6ms) COMMIT
14201
+ SQL (0.0ms) SHOW TABLES
14202
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14203
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14204
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14205
+ FROM counters
14206
+ 
14207
+ SQL (0.0ms)  UPDATE counters
14208
+ SET counter_last_monday = 2, counter_data = '---
14209
+ counter_last_monday_before_today: 3
14210
+ counter_last_tuesday_before_today: 2
14211
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14212
+ counter_last_day: 3
14213
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14214
+ counter_2_days_ago: 1
14215
+ counter_last_wednesday_before_today: 3
14216
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14217
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14218
+ counter_last_2_days: 1
14219
+ counter_1_day_ago: 3
14220
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14221
+ WHERE id = 1
14222
+ 
14223
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14224
+ Counter Load (0.5ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14225
+ SQL (0.2ms) BEGIN
14226
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14227
+ SQL (0.5ms) COMMIT
14228
+ SQL (0.0ms) SHOW TABLES
14229
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14230
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14231
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14232
+ FROM counters
14233
+ 
14234
+ SQL (0.0ms)  UPDATE counters
14235
+ SET counter_last_monday = 2, counter_data = '---
14236
+ counter_last_monday_before_today: 4
14237
+ counter_last_tuesday_before_today: 4
14238
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14239
+ counter_last_day: 4
14240
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14241
+ counter_2_days_ago: 4
14242
+ counter_last_wednesday_before_today: 4
14243
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14244
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14245
+ counter_last_2_days: 4
14246
+ counter_1_day_ago: 4
14247
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14248
+ WHERE id = 1
14249
+ 
14250
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14251
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
14252
+ SQL (0.3ms) SHOW TABLES
14253
+ SQL (0.2ms) SELECT version FROM schema_migrations
14254
+ SQL (0.2ms) SHOW TABLES
14255
+ SQL (0.1ms) SELECT version FROM schema_migrations
14256
+ Migrating to Counters (1)
14257
+ SQL (0.2ms) SHOW TABLES
14258
+ SQL (0.2ms) SELECT version FROM schema_migrations
14259
+ SQL (0.2ms) SHOW TABLES
14260
+ SQL (0.1ms) SELECT version FROM schema_migrations
14261
+ Migrating to Counters (1)
14262
+ SQL (48.3ms) DROP TABLE `counters`
14263
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
14264
+ SQL (0.2ms) SHOW TABLES
14265
+ SQL (0.1ms) SELECT version FROM schema_migrations
14266
+ SQL (0.2ms) SHOW TABLES
14267
+ SQL (0.1ms) SELECT version FROM schema_migrations
14268
+ Migrating to Counters (1)
14269
+ SQL (2.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14270
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
14271
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
14272
+ SQL (0.1ms) BEGIN
14273
+ Counter Create (0.5ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14274
+ SQL (1.2ms) COMMIT
14275
+ SQL (0.0ms) SHOW TABLES
14276
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14277
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14278
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14279
+ FROM counters
14280
+ 
14281
+ SQL (0.0ms)  UPDATE counters
14282
+ SET counter_last_monday = 1, counter_data = '---
14283
+ counter_last_monday_before_today: 0
14284
+ counter_last_tuesday_before_today: 1
14285
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14286
+ counter_last_day: 1
14287
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14288
+ counter_2_days_ago: 1
14289
+ counter_last_wednesday_before_today: 1
14290
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14291
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14292
+ counter_last_2_days: 1
14293
+ counter_1_day_ago: 1
14294
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14295
+ WHERE id = 1
14296
+ 
14297
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14298
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14299
+ SQL (0.0ms) BEGIN
14300
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14301
+ SQL (0.0ms) COMMIT
14302
+ SQL (0.0ms) SHOW TABLES
14303
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14304
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14305
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14306
+ FROM counters
14307
+ 
14308
+ SQL (0.0ms)  UPDATE counters
14309
+ SET counter_last_monday = 2, counter_data = '---
14310
+ counter_last_monday_before_today: 0
14311
+ counter_last_tuesday_before_today: 2
14312
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14313
+ counter_last_day: 1
14314
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14315
+ counter_2_days_ago: 1
14316
+ counter_last_wednesday_before_today: 2
14317
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14318
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14319
+ counter_last_2_days: 1
14320
+ counter_1_day_ago: 1
14321
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14322
+ WHERE id = 1
14323
+ 
14324
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14325
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14326
+ SQL (0.1ms) BEGIN
14327
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14328
+ SQL (0.5ms) COMMIT
14329
+ SQL (0.0ms) SHOW TABLES
14330
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14331
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14332
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14333
+ FROM counters
14334
+ 
14335
+ SQL (0.0ms)  UPDATE counters
14336
+ SET counter_last_monday = 2, counter_data = '---
14337
+ counter_last_monday_before_today: 3
14338
+ counter_last_tuesday_before_today: 2
14339
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14340
+ counter_last_day: 3
14341
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14342
+ counter_2_days_ago: 1
14343
+ counter_last_wednesday_before_today: 3
14344
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14345
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14346
+ counter_last_2_days: 1
14347
+ counter_1_day_ago: 3
14348
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14349
+ WHERE id = 1
14350
+ 
14351
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14352
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14353
+ SQL (0.1ms) BEGIN
14354
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14355
+ SQL (0.5ms) COMMIT
14356
+ SQL (0.0ms) SHOW TABLES
14357
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14358
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14359
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14360
+ FROM counters
14361
+ 
14362
+ SQL (0.0ms)  UPDATE counters
14363
+ SET counter_last_monday = 2, counter_data = '---
14364
+ counter_last_monday_before_today: 4
14365
+ counter_last_tuesday_before_today: 4
14366
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14367
+ counter_last_day: 4
14368
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14369
+ counter_2_days_ago: 4
14370
+ counter_last_wednesday_before_today: 4
14371
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14372
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14373
+ counter_last_2_days: 4
14374
+ counter_1_day_ago: 4
14375
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14376
+ WHERE id = 1
14377
+ 
14378
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14379
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
14380
+ SQL (0.3ms) SHOW TABLES
14381
+ SQL (0.2ms) SELECT version FROM schema_migrations
14382
+ SQL (0.2ms) SHOW TABLES
14383
+ SQL (0.1ms) SELECT version FROM schema_migrations
14384
+ Migrating to Counters (1)
14385
+ SQL (0.2ms) SHOW TABLES
14386
+ SQL (0.1ms) SELECT version FROM schema_migrations
14387
+ SQL (0.2ms) SHOW TABLES
14388
+ SQL (0.1ms) SELECT version FROM schema_migrations
14389
+ Migrating to Counters (1)
14390
+ SQL (27.8ms) DROP TABLE `counters`
14391
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
14392
+ SQL (0.3ms) SHOW TABLES
14393
+ SQL (0.2ms) SELECT version FROM schema_migrations
14394
+ SQL (0.3ms) SHOW TABLES
14395
+ SQL (0.2ms) SELECT version FROM schema_migrations
14396
+ Migrating to Counters (1)
14397
+ SQL (2.5ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14398
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
14399
+ Counter Columns (1.8ms) SHOW FIELDS FROM `counters`
14400
+ SQL (0.1ms) BEGIN
14401
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14402
+ SQL (0.5ms) COMMIT
14403
+ SQL (0.0ms) SHOW TABLES
14404
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14405
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14406
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14407
+ FROM counters
14408
+ 
14409
+ SQL (0.0ms)  UPDATE counters
14410
+ SET counter_last_monday = 1, counter_data = '---
14411
+ counter_last_monday_before_today: 0
14412
+ counter_last_tuesday_before_today: 1
14413
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14414
+ counter_last_day: 1
14415
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14416
+ counter_2_days_ago: 1
14417
+ counter_last_wednesday_before_today: 1
14418
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14419
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14420
+ counter_last_2_days: 1
14421
+ counter_1_day_ago: 1
14422
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14423
+ WHERE id = 1
14424
+ 
14425
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14426
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
14427
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14428
+ SQL (0.0ms) BEGIN
14429
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14430
+ SQL (0.0ms) COMMIT
14431
+ SQL (0.0ms) SHOW TABLES
14432
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14433
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14434
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14435
+ FROM counters
14436
+ 
14437
+ SQL (0.0ms)  UPDATE counters
14438
+ SET counter_last_monday = 2, counter_data = '---
14439
+ counter_last_monday_before_today: 0
14440
+ counter_last_tuesday_before_today: 2
14441
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14442
+ counter_last_day: 1
14443
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14444
+ counter_2_days_ago: 1
14445
+ counter_last_wednesday_before_today: 2
14446
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14447
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14448
+ counter_last_2_days: 1
14449
+ counter_1_day_ago: 1
14450
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14451
+ WHERE id = 1
14452
+ 
14453
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14454
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14455
+ SQL (0.1ms) BEGIN
14456
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14457
+ SQL (25.5ms) COMMIT
14458
+ SQL (0.0ms) SHOW TABLES
14459
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14460
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14461
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14462
+ FROM counters
14463
+ 
14464
+ SQL (0.0ms)  UPDATE counters
14465
+ SET counter_last_monday = 2, counter_data = '---
14466
+ counter_last_monday_before_today: 3
14467
+ counter_last_tuesday_before_today: 2
14468
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14469
+ counter_last_day: 3
14470
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14471
+ counter_2_days_ago: 1
14472
+ counter_last_wednesday_before_today: 3
14473
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14474
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14475
+ counter_last_2_days: 1
14476
+ counter_1_day_ago: 3
14477
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14478
+ WHERE id = 1
14479
+ 
14480
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14481
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14482
+ SQL (0.1ms) BEGIN
14483
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14484
+ SQL (1.4ms) COMMIT
14485
+ SQL (0.0ms) SHOW TABLES
14486
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14487
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14488
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14489
+ FROM counters
14490
+ 
14491
+ SQL (0.0ms)  UPDATE counters
14492
+ SET counter_last_monday = 2, counter_data = '---
14493
+ counter_last_monday_before_today: 4
14494
+ counter_last_tuesday_before_today: 4
14495
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14496
+ counter_last_day: 4
14497
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14498
+ counter_2_days_ago: 4
14499
+ counter_last_wednesday_before_today: 4
14500
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14501
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14502
+ counter_last_2_days: 4
14503
+ counter_1_day_ago: 4
14504
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14505
+ WHERE id = 1
14506
+ 
14507
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14508
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
14509
+ SQL (0.3ms) SHOW TABLES
14510
+ SQL (0.2ms) SELECT version FROM schema_migrations
14511
+ SQL (0.5ms) SHOW TABLES
14512
+ SQL (0.2ms) SELECT version FROM schema_migrations
14513
+ Migrating to Counters (1)
14514
+ SQL (0.2ms) SHOW TABLES
14515
+ SQL (0.1ms) SELECT version FROM schema_migrations
14516
+ SQL (0.2ms) SHOW TABLES
14517
+ SQL (0.1ms) SELECT version FROM schema_migrations
14518
+ Migrating to Counters (1)
14519
+ SQL (11.5ms) DROP TABLE `counters`
14520
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
14521
+ SQL (0.3ms) SHOW TABLES
14522
+ SQL (0.1ms) SELECT version FROM schema_migrations
14523
+ SQL (0.2ms) SHOW TABLES
14524
+ SQL (0.2ms) SELECT version FROM schema_migrations
14525
+ Migrating to Counters (1)
14526
+ SQL (1.9ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14527
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
14528
+ Counter Columns (1.3ms) SHOW FIELDS FROM `counters`
14529
+ SQL (1.5ms) BEGIN
14530
+ Counter Create (0.5ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14531
+ SQL (0.4ms) COMMIT
14532
+ SQL (0.0ms) SHOW TABLES
14533
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14534
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14535
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14536
+ FROM counters
14537
+ 
14538
+ SQL (0.0ms)  UPDATE counters
14539
+ SET counter_last_monday = 1, counter_data = '---
14540
+ counter_last_monday_before_today: 0
14541
+ counter_last_tuesday_before_today: 1
14542
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14543
+ counter_last_day: 1
14544
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14545
+ counter_2_days_ago: 1
14546
+ counter_last_wednesday_before_today: 1
14547
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14548
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14549
+ counter_last_2_days: 1
14550
+ counter_1_day_ago: 1
14551
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14552
+ WHERE id = 1
14553
+ 
14554
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14555
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
14556
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14557
+ SQL (0.0ms) BEGIN
14558
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14559
+ SQL (0.0ms) COMMIT
14560
+ SQL (0.0ms) SHOW TABLES
14561
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14562
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14563
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14564
+ FROM counters
14565
+ 
14566
+ SQL (0.0ms)  UPDATE counters
14567
+ SET counter_last_monday = 2, counter_data = '---
14568
+ counter_last_monday_before_today: 0
14569
+ counter_last_tuesday_before_today: 2
14570
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14571
+ counter_last_day: 1
14572
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14573
+ counter_2_days_ago: 1
14574
+ counter_last_wednesday_before_today: 2
14575
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14576
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14577
+ counter_last_2_days: 1
14578
+ counter_1_day_ago: 1
14579
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14580
+ WHERE id = 1
14581
+ 
14582
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14583
+ Counter Load (0.5ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14584
+ SQL (0.1ms) BEGIN
14585
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14586
+ SQL (1.2ms) COMMIT
14587
+ SQL (0.0ms) SHOW TABLES
14588
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14589
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14590
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14591
+ FROM counters
14592
+ 
14593
+ SQL (0.0ms)  UPDATE counters
14594
+ SET counter_last_monday = 2, counter_data = '---
14595
+ counter_last_monday_before_today: 3
14596
+ counter_last_tuesday_before_today: 2
14597
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14598
+ counter_last_day: 3
14599
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14600
+ counter_2_days_ago: 1
14601
+ counter_last_wednesday_before_today: 3
14602
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14603
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14604
+ counter_last_2_days: 1
14605
+ counter_1_day_ago: 3
14606
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14607
+ WHERE id = 1
14608
+ 
14609
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14610
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14611
+ SQL (0.1ms) BEGIN
14612
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14613
+ SQL (11.1ms) COMMIT
14614
+ SQL (0.0ms) SHOW TABLES
14615
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14616
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14617
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14618
+ FROM counters
14619
+ 
14620
+ SQL (0.0ms)  UPDATE counters
14621
+ SET counter_last_monday = 2, counter_data = '---
14622
+ counter_last_monday_before_today: 4
14623
+ counter_last_tuesday_before_today: 4
14624
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14625
+ counter_last_day: 4
14626
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14627
+ counter_2_days_ago: 4
14628
+ counter_last_wednesday_before_today: 4
14629
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14630
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14631
+ counter_last_2_days: 4
14632
+ counter_1_day_ago: 4
14633
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14634
+ WHERE id = 1
14635
+ 
14636
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14637
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
14638
+ SQL (0.3ms) SHOW TABLES
14639
+ SQL (0.2ms) SELECT version FROM schema_migrations
14640
+ SQL (0.2ms) SHOW TABLES
14641
+ SQL (0.1ms) SELECT version FROM schema_migrations
14642
+ Migrating to Counters (1)
14643
+ SQL (0.2ms) SHOW TABLES
14644
+ SQL (0.1ms) SELECT version FROM schema_migrations
14645
+ SQL (0.2ms) SHOW TABLES
14646
+ SQL (0.1ms) SELECT version FROM schema_migrations
14647
+ Migrating to Counters (1)
14648
+ SQL (47.8ms) DROP TABLE `counters`
14649
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
14650
+ SQL (0.3ms) SHOW TABLES
14651
+ SQL (0.1ms) SELECT version FROM schema_migrations
14652
+ SQL (0.2ms) SHOW TABLES
14653
+ SQL (0.1ms) SELECT version FROM schema_migrations
14654
+ Migrating to Counters (1)
14655
+ SQL (2.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14656
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
14657
+ Counter Columns (1.9ms) SHOW FIELDS FROM `counters`
14658
+ SQL (0.1ms) BEGIN
14659
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14660
+ SQL (0.5ms) COMMIT
14661
+ SQL (0.0ms) SHOW TABLES
14662
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14663
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14664
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14665
+ FROM counters
14666
+ 
14667
+ SQL (0.0ms)  UPDATE counters
14668
+ SET counter_last_monday = 1, counter_data = '---
14669
+ counter_last_monday_before_today: 0
14670
+ counter_last_tuesday_before_today: 1
14671
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14672
+ counter_last_day: 1
14673
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14674
+ counter_2_days_ago: 1
14675
+ counter_last_wednesday_before_today: 1
14676
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14677
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14678
+ counter_last_2_days: 1
14679
+ counter_1_day_ago: 1
14680
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14681
+ WHERE id = 1
14682
+ 
14683
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14684
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
14685
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14686
+ SQL (0.0ms) BEGIN
14687
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14688
+ SQL (0.0ms) COMMIT
14689
+ SQL (0.0ms) SHOW TABLES
14690
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14691
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14692
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14693
+ FROM counters
14694
+ 
14695
+ SQL (0.0ms)  UPDATE counters
14696
+ SET counter_last_monday = 2, counter_data = '---
14697
+ counter_last_monday_before_today: 0
14698
+ counter_last_tuesday_before_today: 2
14699
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14700
+ counter_last_day: 1
14701
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14702
+ counter_2_days_ago: 1
14703
+ counter_last_wednesday_before_today: 2
14704
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14705
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14706
+ counter_last_2_days: 1
14707
+ counter_1_day_ago: 1
14708
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14709
+ WHERE id = 1
14710
+ 
14711
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14712
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14713
+ SQL (0.1ms) BEGIN
14714
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14715
+ SQL (0.7ms) COMMIT
14716
+ SQL (0.0ms) SHOW TABLES
14717
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14718
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14719
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14720
+ FROM counters
14721
+ 
14722
+ SQL (0.0ms)  UPDATE counters
14723
+ SET counter_last_monday = 2, counter_data = '---
14724
+ counter_last_monday_before_today: 3
14725
+ counter_last_tuesday_before_today: 2
14726
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14727
+ counter_last_day: 3
14728
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14729
+ counter_2_days_ago: 1
14730
+ counter_last_wednesday_before_today: 3
14731
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14732
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14733
+ counter_last_2_days: 1
14734
+ counter_1_day_ago: 3
14735
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14736
+ WHERE id = 1
14737
+ 
14738
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14739
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14740
+ SQL (0.2ms) BEGIN
14741
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14742
+ SQL (0.5ms) COMMIT
14743
+ SQL (0.0ms) SHOW TABLES
14744
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14745
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14746
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14747
+ FROM counters
14748
+ 
14749
+ SQL (0.0ms)  UPDATE counters
14750
+ SET counter_last_monday = 2, counter_data = '---
14751
+ counter_last_monday_before_today: 4
14752
+ counter_last_tuesday_before_today: 4
14753
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14754
+ counter_last_day: 4
14755
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14756
+ counter_2_days_ago: 4
14757
+ counter_last_wednesday_before_today: 4
14758
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14759
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14760
+ counter_last_2_days: 4
14761
+ counter_1_day_ago: 4
14762
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14763
+ WHERE id = 1
14764
+ 
14765
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14766
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
14767
+ SQL (0.3ms) SHOW TABLES
14768
+ SQL (0.2ms) SELECT version FROM schema_migrations
14769
+ SQL (0.2ms) SHOW TABLES
14770
+ SQL (0.2ms) SELECT version FROM schema_migrations
14771
+ Migrating to Counters (1)
14772
+ SQL (0.2ms) SHOW TABLES
14773
+ SQL (0.1ms) SELECT version FROM schema_migrations
14774
+ SQL (0.2ms) SHOW TABLES
14775
+ SQL (0.1ms) SELECT version FROM schema_migrations
14776
+ Migrating to Counters (1)
14777
+ SQL (1.5ms) DROP TABLE `counters`
14778
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
14779
+ SQL (0.3ms) SHOW TABLES
14780
+ SQL (0.1ms) SELECT version FROM schema_migrations
14781
+ SQL (0.2ms) SHOW TABLES
14782
+ SQL (0.1ms) SELECT version FROM schema_migrations
14783
+ Migrating to Counters (1)
14784
+ SQL (26.5ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14785
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
14786
+ Counter Columns (1.6ms) SHOW FIELDS FROM `counters`
14787
+ SQL (0.1ms) BEGIN
14788
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14789
+ SQL (0.5ms) COMMIT
14790
+ SQL (0.0ms) SHOW TABLES
14791
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14792
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14793
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14794
+ FROM counters
14795
+ 
14796
+ SQL (0.0ms)  UPDATE counters
14797
+ SET counter_last_monday = 1, counter_data = '---
14798
+ counter_last_monday_before_today: 0
14799
+ counter_last_tuesday_before_today: 1
14800
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14801
+ counter_last_day: 1
14802
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14803
+ counter_2_days_ago: 1
14804
+ counter_last_wednesday_before_today: 1
14805
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14806
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14807
+ counter_last_2_days: 1
14808
+ counter_1_day_ago: 1
14809
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14810
+ WHERE id = 1
14811
+ 
14812
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14813
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
14814
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14815
+ SQL (0.0ms) BEGIN
14816
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14817
+ SQL (0.0ms) COMMIT
14818
+ SQL (0.0ms) SHOW TABLES
14819
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14820
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14821
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14822
+ FROM counters
14823
+ 
14824
+ SQL (0.0ms)  UPDATE counters
14825
+ SET counter_last_monday = 2, counter_data = '---
14826
+ counter_last_monday_before_today: 0
14827
+ counter_last_tuesday_before_today: 2
14828
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14829
+ counter_last_day: 1
14830
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14831
+ counter_2_days_ago: 1
14832
+ counter_last_wednesday_before_today: 2
14833
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14834
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14835
+ counter_last_2_days: 1
14836
+ counter_1_day_ago: 1
14837
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14838
+ WHERE id = 1
14839
+ 
14840
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14841
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14842
+ SQL (0.1ms) BEGIN
14843
+ Counter Update (0.6ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14844
+ SQL (0.8ms) COMMIT
14845
+ SQL (0.0ms) SHOW TABLES
14846
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14847
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14848
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14849
+ FROM counters
14850
+ 
14851
+ SQL (0.0ms)  UPDATE counters
14852
+ SET counter_last_monday = 2, counter_data = '---
14853
+ counter_last_monday_before_today: 3
14854
+ counter_last_tuesday_before_today: 2
14855
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14856
+ counter_last_day: 3
14857
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14858
+ counter_2_days_ago: 1
14859
+ counter_last_wednesday_before_today: 3
14860
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14861
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14862
+ counter_last_2_days: 1
14863
+ counter_1_day_ago: 3
14864
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14865
+ WHERE id = 1
14866
+ 
14867
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14868
+ Counter Load (4.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14869
+ SQL (0.6ms) BEGIN
14870
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
14871
+ SQL (0.8ms) COMMIT
14872
+ SQL (0.0ms) SHOW TABLES
14873
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14874
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14875
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14876
+ FROM counters
14877
+ 
14878
+ SQL (0.0ms)  UPDATE counters
14879
+ SET counter_last_monday = 2, counter_data = '---
14880
+ counter_last_monday_before_today: 4
14881
+ counter_last_tuesday_before_today: 4
14882
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
14883
+ counter_last_day: 4
14884
+ counter_last_day_at: 2010-06-24 00:00:00 Z
14885
+ counter_2_days_ago: 4
14886
+ counter_last_wednesday_before_today: 4
14887
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
14888
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
14889
+ counter_last_2_days: 4
14890
+ counter_1_day_ago: 4
14891
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
14892
+ WHERE id = 1
14893
+ 
14894
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14895
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
14896
+ SQL (0.3ms) SHOW TABLES
14897
+ SQL (0.2ms) SELECT version FROM schema_migrations
14898
+ SQL (0.2ms) SHOW TABLES
14899
+ SQL (0.2ms) SELECT version FROM schema_migrations
14900
+ Migrating to Counters (1)
14901
+ SQL (0.4ms) SHOW TABLES
14902
+ SQL (0.6ms) SELECT version FROM schema_migrations
14903
+ SQL (0.2ms) SHOW TABLES
14904
+ SQL (0.2ms) SELECT version FROM schema_migrations
14905
+ Migrating to Counters (1)
14906
+ SQL (57.9ms) DROP TABLE `counters`
14907
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
14908
+ SQL (0.2ms) SHOW TABLES
14909
+ SQL (0.1ms) SELECT version FROM schema_migrations
14910
+ SQL (0.2ms) SHOW TABLES
14911
+ SQL (0.1ms) SELECT version FROM schema_migrations
14912
+ Migrating to Counters (1)
14913
+ SQL (2.5ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
14914
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
14915
+ Counter Columns (1.9ms) SHOW FIELDS FROM `counters`
14916
+ SQL (1.1ms) BEGIN
14917
+ Counter Create (0.8ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
14918
+ SQL (0.4ms) COMMIT
14919
+ SQL (0.0ms) SHOW TABLES
14920
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14921
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14922
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14923
+ FROM counters
14924
+ 
14925
+ SQL (0.0ms)  UPDATE counters
14926
+ SET counter_last_monday = 1, counter_data = '---
14927
+ counter_last_monday_before_today: 0
14928
+ counter_last_tuesday_before_today: 1
14929
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14930
+ counter_last_day: 1
14931
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14932
+ counter_2_days_ago: 1
14933
+ counter_last_wednesday_before_today: 1
14934
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14935
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14936
+ counter_last_2_days: 1
14937
+ counter_1_day_ago: 1
14938
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
14939
+ WHERE id = 1
14940
+ 
14941
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14942
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
14943
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14944
+ SQL (0.0ms) BEGIN
14945
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
14946
+ SQL (0.0ms) COMMIT
14947
+ SQL (0.0ms) SHOW TABLES
14948
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14949
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14950
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14951
+ FROM counters
14952
+ 
14953
+ SQL (0.0ms)  UPDATE counters
14954
+ SET counter_last_monday = 2, counter_data = '---
14955
+ counter_last_monday_before_today: 0
14956
+ counter_last_tuesday_before_today: 2
14957
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14958
+ counter_last_day: 1
14959
+ counter_last_day_at: 2010-06-21 00:00:00 Z
14960
+ counter_2_days_ago: 1
14961
+ counter_last_wednesday_before_today: 2
14962
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
14963
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14964
+ counter_last_2_days: 1
14965
+ counter_1_day_ago: 1
14966
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
14967
+ WHERE id = 1
14968
+ 
14969
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14970
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14971
+ SQL (0.1ms) BEGIN
14972
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
14973
+ SQL (0.8ms) COMMIT
14974
+ SQL (0.0ms) SHOW TABLES
14975
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
14976
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
14977
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
14978
+ FROM counters
14979
+ 
14980
+ SQL (0.0ms)  UPDATE counters
14981
+ SET counter_last_monday = 2, counter_data = '---
14982
+ counter_last_monday_before_today: 3
14983
+ counter_last_tuesday_before_today: 2
14984
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
14985
+ counter_last_day: 3
14986
+ counter_last_day_at: 2010-06-22 00:00:00 Z
14987
+ counter_2_days_ago: 1
14988
+ counter_last_wednesday_before_today: 3
14989
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
14990
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
14991
+ counter_last_2_days: 1
14992
+ counter_1_day_ago: 3
14993
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
14994
+ WHERE id = 1
14995
+ 
14996
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14997
+ Counter Load (3.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
14998
+ SQL (0.2ms) BEGIN
14999
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15000
+ SQL (0.5ms) COMMIT
15001
+ SQL (0.0ms) SHOW TABLES
15002
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15003
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15004
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15005
+ FROM counters
15006
+ 
15007
+ SQL (0.0ms)  UPDATE counters
15008
+ SET counter_last_monday = 2, counter_data = '---
15009
+ counter_last_monday_before_today: 4
15010
+ counter_last_tuesday_before_today: 4
15011
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
15012
+ counter_last_day: 4
15013
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15014
+ counter_2_days_ago: 4
15015
+ counter_last_wednesday_before_today: 4
15016
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
15017
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15018
+ counter_last_2_days: 4
15019
+ counter_1_day_ago: 4
15020
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15021
+ WHERE id = 1
15022
+ 
15023
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15024
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
15025
+ SQL (0.3ms) SHOW TABLES
15026
+ SQL (0.2ms) SELECT version FROM schema_migrations
15027
+ SQL (0.2ms) SHOW TABLES
15028
+ SQL (0.1ms) SELECT version FROM schema_migrations
15029
+ Migrating to Counters (1)
15030
+ SQL (0.2ms) SHOW TABLES
15031
+ SQL (0.1ms) SELECT version FROM schema_migrations
15032
+ SQL (0.2ms) SHOW TABLES
15033
+ SQL (0.1ms) SELECT version FROM schema_migrations
15034
+ Migrating to Counters (1)
15035
+ SQL (1.6ms) DROP TABLE `counters`
15036
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
15037
+ SQL (0.2ms) SHOW TABLES
15038
+ SQL (0.1ms) SELECT version FROM schema_migrations
15039
+ SQL (0.2ms) SHOW TABLES
15040
+ SQL (0.1ms) SELECT version FROM schema_migrations
15041
+ Migrating to Counters (1)
15042
+ SQL (30.6ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15043
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
15044
+ Counter Columns (1.6ms) SHOW FIELDS FROM `counters`
15045
+ SQL (0.1ms) BEGIN
15046
+ Counter Create (0.4ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15047
+ SQL (0.6ms) COMMIT
15048
+ SQL (0.0ms) SHOW TABLES
15049
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15050
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15051
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15052
+ FROM counters
15053
+ 
15054
+ SQL (0.0ms)  UPDATE counters
15055
+ SET counter_last_monday = 1, counter_data = '---
15056
+ counter_last_monday_before_today: 0
15057
+ counter_last_tuesday_before_today: 1
15058
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15059
+ counter_last_day: 1
15060
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15061
+ counter_2_days_ago: 1
15062
+ counter_last_wednesday_before_today: 1
15063
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15064
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15065
+ counter_last_2_days: 1
15066
+ counter_1_day_ago: 1
15067
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15068
+ WHERE id = 1
15069
+ 
15070
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15071
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15072
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15073
+ SQL (0.0ms) BEGIN
15074
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15075
+ SQL (0.0ms) COMMIT
15076
+ SQL (0.0ms) SHOW TABLES
15077
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15078
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15079
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15080
+ FROM counters
15081
+ 
15082
+ SQL (0.0ms)  UPDATE counters
15083
+ SET counter_last_monday = 2, counter_data = '---
15084
+ counter_last_monday_before_today: 0
15085
+ counter_last_tuesday_before_today: 2
15086
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15087
+ counter_last_day: 1
15088
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15089
+ counter_2_days_ago: 2
15090
+ counter_last_wednesday_before_today: 2
15091
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15092
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15093
+ counter_last_2_days: 1
15094
+ counter_1_day_ago: 2
15095
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15096
+ WHERE id = 1
15097
+ 
15098
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15099
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15100
+ SQL (0.1ms) BEGIN
15101
+ Counter Update (0.8ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15102
+ SQL (1.1ms) COMMIT
15103
+ SQL (0.0ms) SHOW TABLES
15104
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15105
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15106
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15107
+ FROM counters
15108
+ 
15109
+ SQL (0.0ms)  UPDATE counters
15110
+ SET counter_last_monday = 2, counter_data = '---
15111
+ counter_last_monday_before_today: 3
15112
+ counter_last_tuesday_before_today: 2
15113
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15114
+ counter_last_day: 3
15115
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15116
+ counter_2_days_ago: 2
15117
+ counter_last_wednesday_before_today: 3
15118
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15119
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15120
+ counter_last_2_days: 1
15121
+ counter_1_day_ago: 2
15122
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
15123
+ WHERE id = 1
15124
+ 
15125
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15126
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15127
+ SQL (0.1ms) BEGIN
15128
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15129
+ SQL (53.6ms) COMMIT
15130
+ SQL (0.0ms) SHOW TABLES
15131
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15132
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15133
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15134
+ FROM counters
15135
+ 
15136
+ SQL (0.0ms)  UPDATE counters
15137
+ SET counter_last_monday = 2, counter_data = '---
15138
+ counter_last_monday_before_today: 4
15139
+ counter_last_tuesday_before_today: 4
15140
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15141
+ counter_last_day: 4
15142
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15143
+ counter_2_days_ago: 2
15144
+ counter_last_wednesday_before_today: 4
15145
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15146
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15147
+ counter_last_2_days: 4
15148
+ counter_1_day_ago: 2
15149
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15150
+ WHERE id = 1
15151
+ 
15152
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15153
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15154
+ SQL (0.3ms) SHOW TABLES
15155
+ SQL (0.2ms) SELECT version FROM schema_migrations
15156
+ SQL (0.2ms) SHOW TABLES
15157
+ SQL (0.1ms) SELECT version FROM schema_migrations
15158
+ Migrating to Counters (1)
15159
+ SQL (0.2ms) SHOW TABLES
15160
+ SQL (0.1ms) SELECT version FROM schema_migrations
15161
+ SQL (0.2ms) SHOW TABLES
15162
+ SQL (0.1ms) SELECT version FROM schema_migrations
15163
+ Migrating to Counters (1)
15164
+ SQL (10.7ms) DROP TABLE `counters`
15165
+ SQL (1.1ms) DELETE FROM schema_migrations WHERE version = '1'
15166
+ SQL (0.2ms) SHOW TABLES
15167
+ SQL (0.1ms) SELECT version FROM schema_migrations
15168
+ SQL (0.2ms) SHOW TABLES
15169
+ SQL (0.1ms) SELECT version FROM schema_migrations
15170
+ Migrating to Counters (1)
15171
+ SQL (56.9ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15172
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
15173
+ Counter Columns (1.9ms) SHOW FIELDS FROM `counters`
15174
+ SQL (0.1ms) BEGIN
15175
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15176
+ SQL (0.5ms) COMMIT
15177
+ SQL (0.0ms) SHOW TABLES
15178
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15179
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15180
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15181
+ FROM counters
15182
+ 
15183
+ SQL (0.0ms)  UPDATE counters
15184
+ SET counter_last_monday = 1, counter_data = '---
15185
+ counter_last_monday_before_today: 0
15186
+ counter_last_tuesday_before_today: 1
15187
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15188
+ counter_last_day: 1
15189
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15190
+ counter_2_days_ago: 1
15191
+ counter_last_wednesday_before_today: 1
15192
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15193
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15194
+ counter_last_2_days: 1
15195
+ counter_1_day_ago: 1
15196
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15197
+ WHERE id = 1
15198
+ 
15199
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15200
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15201
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15202
+ SQL (0.0ms) BEGIN
15203
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15204
+ SQL (0.0ms) COMMIT
15205
+ SQL (0.0ms) SHOW TABLES
15206
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15207
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15208
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15209
+ FROM counters
15210
+ 
15211
+ SQL (0.0ms)  UPDATE counters
15212
+ SET counter_last_monday = 2, counter_data = '---
15213
+ counter_last_monday_before_today: 0
15214
+ counter_last_tuesday_before_today: 2
15215
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15216
+ counter_last_day: 1
15217
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15218
+ counter_2_days_ago: 2
15219
+ counter_last_wednesday_before_today: 2
15220
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15221
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15222
+ counter_last_2_days: 1
15223
+ counter_1_day_ago: 2
15224
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15225
+ WHERE id = 1
15226
+ 
15227
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15228
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15229
+ SQL (0.1ms) BEGIN
15230
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15231
+ SQL (0.8ms) COMMIT
15232
+ SQL (0.0ms) SHOW TABLES
15233
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15234
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15235
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15236
+ FROM counters
15237
+ 
15238
+ SQL (0.0ms)  UPDATE counters
15239
+ SET counter_last_monday = 2, counter_data = '---
15240
+ counter_last_monday_before_today: 3
15241
+ counter_last_tuesday_before_today: 2
15242
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15243
+ counter_last_day: 3
15244
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15245
+ counter_2_days_ago: 2
15246
+ counter_last_wednesday_before_today: 3
15247
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15248
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15249
+ counter_last_2_days: 1
15250
+ counter_1_day_ago: 2
15251
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
15252
+ WHERE id = 1
15253
+ 
15254
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15255
+ Counter Load (0.6ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15256
+ SQL (0.1ms) BEGIN
15257
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15258
+ SQL (0.5ms) COMMIT
15259
+ SQL (0.0ms) SHOW TABLES
15260
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15261
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15262
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15263
+ FROM counters
15264
+ 
15265
+ SQL (0.0ms)  UPDATE counters
15266
+ SET counter_last_monday = 2, counter_data = '---
15267
+ counter_last_monday_before_today: 4
15268
+ counter_last_tuesday_before_today: 4
15269
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15270
+ counter_last_day: 4
15271
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15272
+ counter_2_days_ago: 2
15273
+ counter_last_wednesday_before_today: 4
15274
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15275
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15276
+ counter_last_2_days: 4
15277
+ counter_1_day_ago: 2
15278
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15279
+ WHERE id = 1
15280
+ 
15281
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15282
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15283
+ SQL (0.3ms) SHOW TABLES
15284
+ SQL (0.2ms) SELECT version FROM schema_migrations
15285
+ SQL (0.2ms) SHOW TABLES
15286
+ SQL (0.4ms) SELECT version FROM schema_migrations
15287
+ Migrating to Counters (1)
15288
+ SQL (0.2ms) SHOW TABLES
15289
+ SQL (0.1ms) SELECT version FROM schema_migrations
15290
+ SQL (0.2ms) SHOW TABLES
15291
+ SQL (0.1ms) SELECT version FROM schema_migrations
15292
+ Migrating to Counters (1)
15293
+ SQL (10.9ms) DROP TABLE `counters`
15294
+ SQL (1.0ms) DELETE FROM schema_migrations WHERE version = '1'
15295
+ SQL (0.4ms) SHOW TABLES
15296
+ SQL (0.2ms) SELECT version FROM schema_migrations
15297
+ SQL (0.3ms) SHOW TABLES
15298
+ SQL (0.2ms) SELECT version FROM schema_migrations
15299
+ Migrating to Counters (1)
15300
+ SQL (33.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15301
+ SQL (0.9ms) INSERT INTO schema_migrations (version) VALUES ('1')
15302
+ Counter Columns (1.9ms) SHOW FIELDS FROM `counters`
15303
+ SQL (0.1ms) BEGIN
15304
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15305
+ SQL (0.5ms) COMMIT
15306
+ SQL (0.0ms) SHOW TABLES
15307
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15308
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15309
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15310
+ FROM counters
15311
+ 
15312
+ SQL (0.0ms)  UPDATE counters
15313
+ SET counter_last_monday = 1, counter_data = '---
15314
+ counter_last_monday_before_today: 0
15315
+ counter_last_tuesday_before_today: 1
15316
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15317
+ counter_last_day: 1
15318
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15319
+ counter_2_days_ago: 1
15320
+ counter_last_wednesday_before_today: 1
15321
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15322
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15323
+ counter_last_2_days: 1
15324
+ counter_1_day_ago: 1
15325
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15326
+ WHERE id = 1
15327
+ 
15328
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15329
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15330
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15331
+ SQL (0.0ms) BEGIN
15332
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15333
+ SQL (0.0ms) COMMIT
15334
+ SQL (0.0ms) SHOW TABLES
15335
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15336
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15337
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15338
+ FROM counters
15339
+ 
15340
+ SQL (0.0ms)  UPDATE counters
15341
+ SET counter_last_monday = 2, counter_data = '---
15342
+ counter_last_monday_before_today: 0
15343
+ counter_last_tuesday_before_today: 2
15344
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15345
+ counter_last_day: 1
15346
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15347
+ counter_2_days_ago: 2
15348
+ counter_last_wednesday_before_today: 2
15349
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15350
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15351
+ counter_last_2_days: 1
15352
+ counter_1_day_ago: 2
15353
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15354
+ WHERE id = 1
15355
+ 
15356
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15357
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15358
+ SQL (0.1ms) BEGIN
15359
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15360
+ SQL (11.8ms) COMMIT
15361
+ SQL (0.0ms) SHOW TABLES
15362
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15363
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15364
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15365
+ FROM counters
15366
+ 
15367
+ SQL (0.0ms)  UPDATE counters
15368
+ SET counter_last_monday = 2, counter_data = '---
15369
+ counter_last_monday_before_today: 3
15370
+ counter_last_tuesday_before_today: 2
15371
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15372
+ counter_last_day: 3
15373
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15374
+ counter_2_days_ago: 2
15375
+ counter_last_wednesday_before_today: 3
15376
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15377
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15378
+ counter_last_2_days: 1
15379
+ counter_1_day_ago: 2
15380
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
15381
+ WHERE id = 1
15382
+ 
15383
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15384
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15385
+ SQL (0.2ms) BEGIN
15386
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15387
+ SQL (0.5ms) COMMIT
15388
+ SQL (0.0ms) SHOW TABLES
15389
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15390
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15391
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15392
+ FROM counters
15393
+ 
15394
+ SQL (0.0ms)  UPDATE counters
15395
+ SET counter_last_monday = 2, counter_data = '---
15396
+ counter_last_monday_before_today: 4
15397
+ counter_last_tuesday_before_today: 4
15398
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15399
+ counter_last_day: 4
15400
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15401
+ counter_2_days_ago: 2
15402
+ counter_last_wednesday_before_today: 4
15403
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15404
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15405
+ counter_last_2_days: 4
15406
+ counter_1_day_ago: 2
15407
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15408
+ WHERE id = 1
15409
+ 
15410
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15411
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
15412
+ SQL (0.3ms) SHOW TABLES
15413
+ SQL (0.2ms) SELECT version FROM schema_migrations
15414
+ SQL (0.2ms) SHOW TABLES
15415
+ SQL (0.1ms) SELECT version FROM schema_migrations
15416
+ Migrating to Counters (1)
15417
+ SQL (0.2ms) SHOW TABLES
15418
+ SQL (0.1ms) SELECT version FROM schema_migrations
15419
+ SQL (0.2ms) SHOW TABLES
15420
+ SQL (0.1ms) SELECT version FROM schema_migrations
15421
+ Migrating to Counters (1)
15422
+ SQL (11.1ms) DROP TABLE `counters`
15423
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
15424
+ SQL (0.3ms) SHOW TABLES
15425
+ SQL (0.1ms) SELECT version FROM schema_migrations
15426
+ SQL (0.2ms) SHOW TABLES
15427
+ SQL (0.1ms) SELECT version FROM schema_migrations
15428
+ Migrating to Counters (1)
15429
+ SQL (42.8ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15430
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
15431
+ Counter Columns (2.4ms) SHOW FIELDS FROM `counters`
15432
+ SQL (0.1ms) BEGIN
15433
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15434
+ SQL (0.5ms) COMMIT
15435
+ SQL (0.0ms) SHOW TABLES
15436
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15437
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15438
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15439
+ FROM counters
15440
+ 
15441
+ SQL (0.0ms)  UPDATE counters
15442
+ SET counter_last_monday = 1, counter_data = '---
15443
+ counter_last_monday_before_today: 0
15444
+ counter_last_tuesday_before_today: 1
15445
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15446
+ counter_last_day: 1
15447
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15448
+ counter_2_days_ago: 1
15449
+ counter_last_wednesday_before_today: 1
15450
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15451
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15452
+ counter_last_2_days: 1
15453
+ counter_1_day_ago: 1
15454
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15455
+ WHERE id = 1
15456
+ 
15457
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15458
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15459
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15460
+ SQL (0.0ms) BEGIN
15461
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15462
+ SQL (0.0ms) COMMIT
15463
+ SQL (0.0ms) SHOW TABLES
15464
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15465
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15466
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15467
+ FROM counters
15468
+ 
15469
+ SQL (0.0ms)  UPDATE counters
15470
+ SET counter_last_monday = 2, counter_data = '---
15471
+ counter_last_monday_before_today: 0
15472
+ counter_last_tuesday_before_today: 2
15473
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15474
+ counter_last_day: 1
15475
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15476
+ counter_2_days_ago: 2
15477
+ counter_last_wednesday_before_today: 2
15478
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15479
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15480
+ counter_last_2_days: 1
15481
+ counter_1_day_ago: 2
15482
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15483
+ WHERE id = 1
15484
+ 
15485
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15486
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15487
+ SQL (0.1ms) BEGIN
15488
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15489
+ SQL (1.1ms) COMMIT
15490
+ SQL (0.0ms) SHOW TABLES
15491
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15492
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15493
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15494
+ FROM counters
15495
+ 
15496
+ SQL (0.0ms)  UPDATE counters
15497
+ SET counter_last_monday = 2, counter_data = '---
15498
+ counter_last_monday_before_today: 3
15499
+ counter_last_tuesday_before_today: 2
15500
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15501
+ counter_last_day: 3
15502
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15503
+ counter_2_days_ago: 2
15504
+ counter_last_wednesday_before_today: 3
15505
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
15506
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15507
+ counter_last_2_days: 1
15508
+ counter_1_day_ago: 3
15509
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
15510
+ WHERE id = 1
15511
+ 
15512
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15513
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15514
+ SQL (0.1ms) BEGIN
15515
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15516
+ SQL (0.5ms) COMMIT
15517
+ SQL (0.0ms) SHOW TABLES
15518
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15519
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15520
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15521
+ FROM counters
15522
+ 
15523
+ SQL (0.0ms)  UPDATE counters
15524
+ SET counter_last_monday = 2, counter_data = '---
15525
+ counter_last_monday_before_today: 4
15526
+ counter_last_tuesday_before_today: 4
15527
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
15528
+ counter_last_day: 4
15529
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15530
+ counter_2_days_ago: 4
15531
+ counter_last_wednesday_before_today: 4
15532
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
15533
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15534
+ counter_last_2_days: 4
15535
+ counter_1_day_ago: 4
15536
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15537
+ WHERE id = 1
15538
+ 
15539
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15540
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15541
+ SQL (0.3ms) SHOW TABLES
15542
+ SQL (0.2ms) SELECT version FROM schema_migrations
15543
+ SQL (0.2ms) SHOW TABLES
15544
+ SQL (0.1ms) SELECT version FROM schema_migrations
15545
+ Migrating to Counters (1)
15546
+ SQL (0.2ms) SHOW TABLES
15547
+ SQL (0.1ms) SELECT version FROM schema_migrations
15548
+ SQL (0.2ms) SHOW TABLES
15549
+ SQL (0.1ms) SELECT version FROM schema_migrations
15550
+ Migrating to Counters (1)
15551
+ SQL (10.7ms) DROP TABLE `counters`
15552
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
15553
+ SQL (0.2ms) SHOW TABLES
15554
+ SQL (0.1ms) SELECT version FROM schema_migrations
15555
+ SQL (0.2ms) SHOW TABLES
15556
+ SQL (0.1ms) SELECT version FROM schema_migrations
15557
+ Migrating to Counters (1)
15558
+ SQL (55.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15559
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
15560
+ Counter Columns (1.4ms) SHOW FIELDS FROM `counters`
15561
+ SQL (0.1ms) BEGIN
15562
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15563
+ SQL (0.5ms) COMMIT
15564
+ SQL (0.0ms) SHOW TABLES
15565
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15566
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15567
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15568
+ FROM counters
15569
+ 
15570
+ SQL (0.0ms)  UPDATE counters
15571
+ SET counter_last_monday = 1, counter_data = '---
15572
+ counter_last_monday_before_today: 0
15573
+ counter_last_tuesday_before_today: 1
15574
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15575
+ counter_last_day: 1
15576
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15577
+ counter_2_days_ago: 1
15578
+ counter_last_wednesday_before_today: 1
15579
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15580
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15581
+ counter_last_2_days: 1
15582
+ counter_1_day_ago: 1
15583
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15584
+ WHERE id = 1
15585
+ 
15586
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15587
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15588
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15589
+ SQL (0.0ms) BEGIN
15590
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15591
+ SQL (0.0ms) COMMIT
15592
+ SQL (0.0ms) SHOW TABLES
15593
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15594
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15595
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15596
+ FROM counters
15597
+ 
15598
+ SQL (0.0ms)  UPDATE counters
15599
+ SET counter_last_monday = 2, counter_data = '---
15600
+ counter_last_monday_before_today: 0
15601
+ counter_last_tuesday_before_today: 2
15602
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15603
+ counter_last_day: 1
15604
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15605
+ counter_2_days_ago: 2
15606
+ counter_last_wednesday_before_today: 2
15607
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15608
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15609
+ counter_last_2_days: 1
15610
+ counter_1_day_ago: 2
15611
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15612
+ WHERE id = 1
15613
+ 
15614
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15615
+ Counter Load (0.6ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15616
+ SQL (0.1ms) BEGIN
15617
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15618
+ SQL (0.5ms) COMMIT
15619
+ SQL (0.0ms) SHOW TABLES
15620
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15621
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15622
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15623
+ FROM counters
15624
+ 
15625
+ SQL (0.0ms)  UPDATE counters
15626
+ SET counter_last_monday = 2, counter_data = '---
15627
+ counter_last_monday_before_today: 3
15628
+ counter_last_tuesday_before_today: 2
15629
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15630
+ counter_last_day: 3
15631
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15632
+ counter_2_days_ago: 2
15633
+ counter_last_wednesday_before_today: 3
15634
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
15635
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15636
+ counter_last_2_days: 1
15637
+ counter_1_day_ago: 3
15638
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 3
15639
+ WHERE id = 1
15640
+ 
15641
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15642
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15643
+ SQL (0.1ms) BEGIN
15644
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15645
+ SQL (0.6ms) COMMIT
15646
+ SQL (0.0ms) SHOW TABLES
15647
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15648
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15649
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15650
+ FROM counters
15651
+ 
15652
+ SQL (0.0ms)  UPDATE counters
15653
+ SET counter_last_monday = 2, counter_data = '---
15654
+ counter_last_monday_before_today: 4
15655
+ counter_last_tuesday_before_today: 4
15656
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
15657
+ counter_last_day: 4
15658
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15659
+ counter_2_days_ago: 4
15660
+ counter_last_wednesday_before_today: 4
15661
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
15662
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15663
+ counter_last_2_days: 4
15664
+ counter_1_day_ago: 4
15665
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 4, counter_last_2_days = 0, counter_1_day_ago = 4
15666
+ WHERE id = 1
15667
+ 
15668
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15669
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15670
+ SQL (0.3ms) SHOW TABLES
15671
+ SQL (0.2ms) SELECT version FROM schema_migrations
15672
+ SQL (0.2ms) SHOW TABLES
15673
+ SQL (0.1ms) SELECT version FROM schema_migrations
15674
+ Migrating to Counters (1)
15675
+ SQL (0.2ms) SHOW TABLES
15676
+ SQL (0.1ms) SELECT version FROM schema_migrations
15677
+ SQL (0.2ms) SHOW TABLES
15678
+ SQL (0.1ms) SELECT version FROM schema_migrations
15679
+ Migrating to Counters (1)
15680
+ SQL (10.6ms) DROP TABLE `counters`
15681
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
15682
+ SQL (0.2ms) SHOW TABLES
15683
+ SQL (0.1ms) SELECT version FROM schema_migrations
15684
+ SQL (0.2ms) SHOW TABLES
15685
+ SQL (0.1ms) SELECT version FROM schema_migrations
15686
+ Migrating to Counters (1)
15687
+ SQL (55.8ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15688
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
15689
+ Counter Columns (2.4ms) SHOW FIELDS FROM `counters`
15690
+ SQL (0.1ms) BEGIN
15691
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15692
+ SQL (0.5ms) COMMIT
15693
+ SQL (0.0ms) SHOW TABLES
15694
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15695
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15696
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15697
+ FROM counters
15698
+ 
15699
+ SQL (0.0ms)  UPDATE counters
15700
+ SET counter_last_monday = 1, counter_data = '---
15701
+ counter_last_monday_before_today: 0
15702
+ counter_last_tuesday_before_today: 1
15703
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15704
+ counter_last_day: 1
15705
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15706
+ counter_2_days_ago: 1
15707
+ counter_last_wednesday_before_today: 1
15708
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15709
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15710
+ counter_last_2_days: 1
15711
+ counter_1_day_ago: 1
15712
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15713
+ WHERE id = 1
15714
+ 
15715
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15716
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15717
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15718
+ SQL (0.0ms) BEGIN
15719
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15720
+ SQL (0.0ms) COMMIT
15721
+ SQL (0.0ms) SHOW TABLES
15722
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15723
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15724
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15725
+ FROM counters
15726
+ 
15727
+ SQL (0.0ms)  UPDATE counters
15728
+ SET counter_last_monday = 2, counter_data = '---
15729
+ counter_last_monday_before_today: 0
15730
+ counter_last_tuesday_before_today: 2
15731
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15732
+ counter_last_day: 1
15733
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15734
+ counter_2_days_ago: 2
15735
+ counter_last_wednesday_before_today: 2
15736
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15737
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15738
+ counter_last_2_days: 1
15739
+ counter_1_day_ago: 2
15740
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15741
+ WHERE id = 1
15742
+ 
15743
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15744
+ Counter Load (0.9ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15745
+ SQL (0.1ms) BEGIN
15746
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15747
+ SQL (0.5ms) COMMIT
15748
+ SQL (0.0ms) SHOW TABLES
15749
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15750
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15751
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15752
+ FROM counters
15753
+ 
15754
+ SQL (0.0ms)  UPDATE counters
15755
+ SET counter_last_monday = 2, counter_data = '---
15756
+ counter_last_monday_before_today: 3
15757
+ counter_last_tuesday_before_today: 2
15758
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15759
+ counter_last_day: 3
15760
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15761
+ counter_2_days_ago: 2
15762
+ counter_last_wednesday_before_today: 3
15763
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
15764
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15765
+ counter_last_2_days: 1
15766
+ counter_1_day_ago: 3
15767
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
15768
+ WHERE id = 1
15769
+ 
15770
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15771
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15772
+ SQL (0.1ms) BEGIN
15773
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15774
+ SQL (0.6ms) COMMIT
15775
+ SQL (0.0ms) SHOW TABLES
15776
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15777
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15778
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15779
+ FROM counters
15780
+ 
15781
+ SQL (0.0ms)  UPDATE counters
15782
+ SET counter_last_monday = 2, counter_data = '---
15783
+ counter_last_monday_before_today: 4
15784
+ counter_last_tuesday_before_today: 4
15785
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
15786
+ counter_last_day: 4
15787
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15788
+ counter_2_days_ago: 4
15789
+ counter_last_wednesday_before_today: 4
15790
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
15791
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15792
+ counter_last_2_days: 4
15793
+ counter_1_day_ago: 4
15794
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
15795
+ WHERE id = 1
15796
+ 
15797
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15798
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15799
+ SQL (0.3ms) SHOW TABLES
15800
+ SQL (0.2ms) SELECT version FROM schema_migrations
15801
+ SQL (0.2ms) SHOW TABLES
15802
+ SQL (0.1ms) SELECT version FROM schema_migrations
15803
+ Migrating to Counters (1)
15804
+ SQL (0.2ms) SHOW TABLES
15805
+ SQL (0.1ms) SELECT version FROM schema_migrations
15806
+ SQL (0.2ms) SHOW TABLES
15807
+ SQL (0.1ms) SELECT version FROM schema_migrations
15808
+ Migrating to Counters (1)
15809
+ SQL (10.6ms) DROP TABLE `counters`
15810
+ SQL (1.3ms) DELETE FROM schema_migrations WHERE version = '1'
15811
+ SQL (0.3ms) SHOW TABLES
15812
+ SQL (0.2ms) SELECT version FROM schema_migrations
15813
+ SQL (0.3ms) SHOW TABLES
15814
+ SQL (0.2ms) SELECT version FROM schema_migrations
15815
+ Migrating to Counters (1)
15816
+ SQL (36.3ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15817
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
15818
+ Counter Columns (1.6ms) SHOW FIELDS FROM `counters`
15819
+ SQL (0.1ms) BEGIN
15820
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15821
+ SQL (0.5ms) COMMIT
15822
+ SQL (0.0ms) SHOW TABLES
15823
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15824
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15825
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15826
+ FROM counters
15827
+ 
15828
+ SQL (0.0ms)  UPDATE counters
15829
+ SET counter_last_monday = 1, counter_data = '---
15830
+ counter_last_monday_before_today: 0
15831
+ counter_last_tuesday_before_today: 1
15832
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15833
+ counter_last_day: 1
15834
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15835
+ counter_2_days_ago: 1
15836
+ counter_last_wednesday_before_today: 1
15837
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15838
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15839
+ counter_last_2_days: 1
15840
+ counter_1_day_ago: 1
15841
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15842
+ WHERE id = 1
15843
+ 
15844
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15845
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15846
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15847
+ SQL (0.0ms) BEGIN
15848
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15849
+ SQL (0.0ms) COMMIT
15850
+ SQL (0.0ms) SHOW TABLES
15851
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15852
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15853
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15854
+ FROM counters
15855
+ 
15856
+ SQL (0.0ms)  UPDATE counters
15857
+ SET counter_last_monday = 2, counter_data = '---
15858
+ counter_last_monday_before_today: 0
15859
+ counter_last_tuesday_before_today: 2
15860
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15861
+ counter_last_day: 1
15862
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15863
+ counter_2_days_ago: 2
15864
+ counter_last_wednesday_before_today: 2
15865
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15866
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15867
+ counter_last_2_days: 1
15868
+ counter_1_day_ago: 2
15869
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15870
+ WHERE id = 1
15871
+ 
15872
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15873
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15874
+ SQL (0.1ms) BEGIN
15875
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
15876
+ SQL (0.4ms) COMMIT
15877
+ SQL (0.0ms) SHOW TABLES
15878
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15879
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15880
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15881
+ FROM counters
15882
+ 
15883
+ SQL (0.0ms)  UPDATE counters
15884
+ SET counter_last_monday = 2, counter_data = '---
15885
+ counter_last_monday_before_today: 3
15886
+ counter_last_tuesday_before_today: 2
15887
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15888
+ counter_last_day: 3
15889
+ counter_last_day_at: 2010-06-22 00:00:00 Z
15890
+ counter_2_days_ago: 2
15891
+ counter_last_wednesday_before_today: 3
15892
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
15893
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15894
+ counter_last_2_days: 1
15895
+ counter_1_day_ago: 3
15896
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
15897
+ WHERE id = 1
15898
+ 
15899
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15900
+ Counter Load (0.7ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15901
+ SQL (0.1ms) BEGIN
15902
+ Counter Update (0.9ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
15903
+ SQL (0.9ms) COMMIT
15904
+ SQL (0.0ms) SHOW TABLES
15905
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15906
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15907
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15908
+ FROM counters
15909
+ 
15910
+ SQL (0.0ms)  UPDATE counters
15911
+ SET counter_last_monday = 2, counter_data = '---
15912
+ counter_last_monday_before_today: 4
15913
+ counter_last_tuesday_before_today: 4
15914
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
15915
+ counter_last_day: 4
15916
+ counter_last_day_at: 2010-06-24 00:00:00 Z
15917
+ counter_2_days_ago: 4
15918
+ counter_last_wednesday_before_today: 4
15919
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
15920
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
15921
+ counter_last_2_days: 4
15922
+ counter_1_day_ago: 4
15923
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
15924
+ WHERE id = 1
15925
+ 
15926
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15927
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15928
+ SQL (0.3ms) SHOW TABLES
15929
+ SQL (0.2ms) SELECT version FROM schema_migrations
15930
+ SQL (0.2ms) SHOW TABLES
15931
+ SQL (0.1ms) SELECT version FROM schema_migrations
15932
+ Migrating to Counters (1)
15933
+ SQL (0.2ms) SHOW TABLES
15934
+ SQL (0.1ms) SELECT version FROM schema_migrations
15935
+ SQL (0.2ms) SHOW TABLES
15936
+ SQL (0.1ms) SELECT version FROM schema_migrations
15937
+ Migrating to Counters (1)
15938
+ SQL (10.6ms) DROP TABLE `counters`
15939
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
15940
+ SQL (0.2ms) SHOW TABLES
15941
+ SQL (0.1ms) SELECT version FROM schema_migrations
15942
+ SQL (0.2ms) SHOW TABLES
15943
+ SQL (0.2ms) SELECT version FROM schema_migrations
15944
+ Migrating to Counters (1)
15945
+ SQL (2.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
15946
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
15947
+ Counter Columns (1.5ms) SHOW FIELDS FROM `counters`
15948
+ SQL (0.1ms) BEGIN
15949
+ Counter Create (0.6ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
15950
+ SQL (0.5ms) COMMIT
15951
+ SQL (0.0ms) SHOW TABLES
15952
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15953
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15954
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15955
+ FROM counters
15956
+ 
15957
+ SQL (0.0ms)  UPDATE counters
15958
+ SET counter_last_monday = 1, counter_data = '---
15959
+ counter_last_monday_before_today: 0
15960
+ counter_last_tuesday_before_today: 1
15961
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15962
+ counter_last_day: 1
15963
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15964
+ counter_2_days_ago: 1
15965
+ counter_last_wednesday_before_today: 1
15966
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15967
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15968
+ counter_last_2_days: 1
15969
+ counter_1_day_ago: 1
15970
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
15971
+ WHERE id = 1
15972
+ 
15973
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15974
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
15975
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
15976
+ SQL (0.0ms) BEGIN
15977
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
15978
+ SQL (0.0ms) COMMIT
15979
+ SQL (0.0ms) SHOW TABLES
15980
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
15981
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
15982
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
15983
+ FROM counters
15984
+ 
15985
+ SQL (0.0ms)  UPDATE counters
15986
+ SET counter_last_monday = 2, counter_data = '---
15987
+ counter_last_monday_before_today: 0
15988
+ counter_last_tuesday_before_today: 2
15989
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
15990
+ counter_last_day: 1
15991
+ counter_last_day_at: 2010-06-21 00:00:00 Z
15992
+ counter_2_days_ago: 2
15993
+ counter_last_wednesday_before_today: 2
15994
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
15995
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
15996
+ counter_last_2_days: 1
15997
+ counter_1_day_ago: 2
15998
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
15999
+ WHERE id = 1
16000
+ 
16001
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16002
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16003
+ SQL (0.1ms) BEGIN
16004
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
16005
+ SQL (0.6ms) COMMIT
16006
+ SQL (0.0ms) SHOW TABLES
16007
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16008
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16009
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16010
+ FROM counters
16011
+ 
16012
+ SQL (0.0ms)  UPDATE counters
16013
+ SET counter_last_monday = 2, counter_data = '---
16014
+ counter_last_monday_before_today: 3
16015
+ counter_last_tuesday_before_today: 2
16016
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16017
+ counter_last_day: 3
16018
+ counter_last_day_at: 2010-06-22 00:00:00 Z
16019
+ counter_2_days_ago: 2
16020
+ counter_last_wednesday_before_today: 3
16021
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
16022
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16023
+ counter_last_2_days: 1
16024
+ counter_1_day_ago: 3
16025
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
16026
+ WHERE id = 1
16027
+ 
16028
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16029
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16030
+ SQL (0.1ms) BEGIN
16031
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
16032
+ SQL (0.8ms) COMMIT
16033
+ SQL (0.0ms) SHOW TABLES
16034
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16035
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16036
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16037
+ FROM counters
16038
+ 
16039
+ SQL (0.0ms)  UPDATE counters
16040
+ SET counter_last_monday = 2, counter_data = '---
16041
+ counter_last_monday_before_today: 4
16042
+ counter_last_tuesday_before_today: 4
16043
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
16044
+ counter_last_day: 4
16045
+ counter_last_day_at: 2010-06-24 00:00:00 Z
16046
+ counter_2_days_ago: 4
16047
+ counter_last_wednesday_before_today: 4
16048
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
16049
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
16050
+ counter_last_2_days: 4
16051
+ counter_1_day_ago: 4
16052
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
16053
+ WHERE id = 1
16054
+ 
16055
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16056
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
16057
+ SQL (0.3ms) SHOW TABLES
16058
+ SQL (0.2ms) SELECT version FROM schema_migrations
16059
+ SQL (0.2ms) SHOW TABLES
16060
+ SQL (0.1ms) SELECT version FROM schema_migrations
16061
+ Migrating to Counters (1)
16062
+ SQL (0.2ms) SHOW TABLES
16063
+ SQL (0.1ms) SELECT version FROM schema_migrations
16064
+ SQL (0.2ms) SHOW TABLES
16065
+ SQL (0.2ms) SELECT version FROM schema_migrations
16066
+ Migrating to Counters (1)
16067
+ SQL (10.7ms) DROP TABLE `counters`
16068
+ SQL (1.3ms) DELETE FROM schema_migrations WHERE version = '1'
16069
+ SQL (0.2ms) SHOW TABLES
16070
+ SQL (0.2ms) SELECT version FROM schema_migrations
16071
+ SQL (0.2ms) SHOW TABLES
16072
+ SQL (0.1ms) SELECT version FROM schema_migrations
16073
+ Migrating to Counters (1)
16074
+ SQL (39.2ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
16075
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
16076
+ Counter Columns (2.4ms) SHOW FIELDS FROM `counters`
16077
+ SQL (0.2ms) BEGIN
16078
+ Counter Create (0.4ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
16079
+ SQL (0.5ms) COMMIT
16080
+ SQL (0.0ms) SHOW TABLES
16081
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16082
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16083
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16084
+ FROM counters
16085
+ 
16086
+ SQL (0.0ms)  UPDATE counters
16087
+ SET counter_last_monday = 1, counter_data = '---
16088
+ counter_last_monday_before_today: 0
16089
+ counter_last_tuesday_before_today: 1
16090
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16091
+ counter_last_day: 1
16092
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16093
+ counter_2_days_ago: 1
16094
+ counter_last_wednesday_before_today: 1
16095
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16096
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16097
+ counter_last_2_days: 1
16098
+ counter_1_day_ago: 1
16099
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
16100
+ WHERE id = 1
16101
+ 
16102
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16103
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
16104
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16105
+ SQL (0.0ms) BEGIN
16106
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
16107
+ SQL (0.0ms) COMMIT
16108
+ SQL (0.0ms) SHOW TABLES
16109
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16110
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16111
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16112
+ FROM counters
16113
+ 
16114
+ SQL (0.0ms)  UPDATE counters
16115
+ SET counter_last_monday = 2, counter_data = '---
16116
+ counter_last_monday_before_today: 0
16117
+ counter_last_tuesday_before_today: 2
16118
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16119
+ counter_last_day: 1
16120
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16121
+ counter_2_days_ago: 2
16122
+ counter_last_wednesday_before_today: 2
16123
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16124
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16125
+ counter_last_2_days: 1
16126
+ counter_1_day_ago: 2
16127
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
16128
+ WHERE id = 1
16129
+ 
16130
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16131
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16132
+ SQL (0.4ms) BEGIN
16133
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
16134
+ SQL (0.8ms) COMMIT
16135
+ SQL (0.0ms) SHOW TABLES
16136
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16137
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16138
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16139
+ FROM counters
16140
+ 
16141
+ SQL (0.0ms)  UPDATE counters
16142
+ SET counter_last_monday = 2, counter_data = '---
16143
+ counter_last_monday_before_today: 3
16144
+ counter_last_tuesday_before_today: 2
16145
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16146
+ counter_last_day: 3
16147
+ counter_last_day_at: 2010-06-22 00:00:00 Z
16148
+ counter_2_days_ago: 2
16149
+ counter_last_wednesday_before_today: 3
16150
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
16151
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16152
+ counter_last_2_days: 1
16153
+ counter_1_day_ago: 3
16154
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
16155
+ WHERE id = 1
16156
+ 
16157
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16158
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16159
+ SQL (0.1ms) BEGIN
16160
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
16161
+ SQL (12.1ms) COMMIT
16162
+ SQL (0.0ms) SHOW TABLES
16163
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16164
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16165
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16166
+ FROM counters
16167
+ 
16168
+ SQL (0.0ms)  UPDATE counters
16169
+ SET counter_last_monday = 2, counter_data = '---
16170
+ counter_last_monday_before_today: 4
16171
+ counter_last_tuesday_before_today: 4
16172
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
16173
+ counter_last_day: 4
16174
+ counter_last_day_at: 2010-06-24 00:00:00 Z
16175
+ counter_2_days_ago: 4
16176
+ counter_last_wednesday_before_today: 4
16177
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
16178
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
16179
+ counter_last_2_days: 4
16180
+ counter_1_day_ago: 4
16181
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
16182
+ WHERE id = 1
16183
+ 
16184
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16185
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
16186
+ SQL (0.3ms) SHOW TABLES
16187
+ SQL (0.2ms) SELECT version FROM schema_migrations
16188
+ SQL (0.2ms) SHOW TABLES
16189
+ SQL (0.1ms) SELECT version FROM schema_migrations
16190
+ Migrating to Counters (1)
16191
+ SQL (0.2ms) SHOW TABLES
16192
+ SQL (0.1ms) SELECT version FROM schema_migrations
16193
+ SQL (0.2ms) SHOW TABLES
16194
+ SQL (0.1ms) SELECT version FROM schema_migrations
16195
+ Migrating to Counters (1)
16196
+ SQL (10.8ms) DROP TABLE `counters`
16197
+ SQL (1.3ms) DELETE FROM schema_migrations WHERE version = '1'
16198
+ SQL (0.2ms) SHOW TABLES
16199
+ SQL (0.1ms) SELECT version FROM schema_migrations
16200
+ SQL (0.2ms) SHOW TABLES
16201
+ SQL (0.1ms) SELECT version FROM schema_migrations
16202
+ Migrating to Counters (1)
16203
+ SQL (37.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
16204
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
16205
+ Counter Columns (1.8ms) SHOW FIELDS FROM `counters`
16206
+ SQL (0.1ms) BEGIN
16207
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
16208
+ SQL (0.6ms) COMMIT
16209
+ SQL (0.0ms) SHOW TABLES
16210
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16211
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16212
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16213
+ FROM counters
16214
+ 
16215
+ SQL (0.0ms)  UPDATE counters
16216
+ SET counter_last_monday = 1, counter_data = '---
16217
+ counter_last_monday_before_today: 0
16218
+ counter_last_tuesday_before_today: 1
16219
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16220
+ counter_last_day: 1
16221
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16222
+ counter_2_days_ago: 1
16223
+ counter_last_wednesday_before_today: 1
16224
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16225
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16226
+ counter_last_2_days: 1
16227
+ counter_1_day_ago: 1
16228
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
16229
+ WHERE id = 1
16230
+ 
16231
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16232
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
16233
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16234
+ SQL (0.0ms) BEGIN
16235
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
16236
+ SQL (0.0ms) COMMIT
16237
+ SQL (0.0ms) SHOW TABLES
16238
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16239
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16240
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16241
+ FROM counters
16242
+ 
16243
+ SQL (0.0ms)  UPDATE counters
16244
+ SET counter_last_monday = 2, counter_data = '---
16245
+ counter_last_monday_before_today: 0
16246
+ counter_last_tuesday_before_today: 2
16247
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16248
+ counter_last_day: 1
16249
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16250
+ counter_2_days_ago: 2
16251
+ counter_last_wednesday_before_today: 2
16252
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16253
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16254
+ counter_last_2_days: 1
16255
+ counter_1_day_ago: 2
16256
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
16257
+ WHERE id = 1
16258
+ 
16259
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16260
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16261
+ SQL (0.1ms) BEGIN
16262
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
16263
+ SQL (11.4ms) COMMIT
16264
+ SQL (0.0ms) SHOW TABLES
16265
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16266
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16267
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16268
+ FROM counters
16269
+ 
16270
+ SQL (0.0ms)  UPDATE counters
16271
+ SET counter_last_monday = 2, counter_data = '---
16272
+ counter_last_monday_before_today: 3
16273
+ counter_last_tuesday_before_today: 2
16274
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16275
+ counter_last_day: 3
16276
+ counter_last_day_at: 2010-06-22 00:00:00 Z
16277
+ counter_2_days_ago: 2
16278
+ counter_last_wednesday_before_today: 3
16279
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
16280
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16281
+ counter_last_2_days: 1
16282
+ counter_1_day_ago: 3
16283
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
16284
+ WHERE id = 1
16285
+ 
16286
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16287
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16288
+ SQL (0.1ms) BEGIN
16289
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
16290
+ SQL (0.8ms) COMMIT
16291
+ SQL (0.0ms) SHOW TABLES
16292
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16293
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16294
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16295
+ FROM counters
16296
+ 
16297
+ SQL (0.0ms)  UPDATE counters
16298
+ SET counter_last_monday = 2, counter_data = '---
16299
+ counter_last_monday_before_today: 4
16300
+ counter_last_tuesday_before_today: 4
16301
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
16302
+ counter_last_day: 4
16303
+ counter_last_day_at: 2010-06-24 00:00:00 Z
16304
+ counter_2_days_ago: 4
16305
+ counter_last_wednesday_before_today: 4
16306
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
16307
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
16308
+ counter_last_2_days: 4
16309
+ counter_1_day_ago: 4
16310
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
16311
+ WHERE id = 1
16312
+ 
16313
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16314
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
16315
+ SQL (0.3ms) SHOW TABLES
16316
+ SQL (0.2ms) SELECT version FROM schema_migrations
16317
+ SQL (0.2ms) SHOW TABLES
16318
+ SQL (0.1ms) SELECT version FROM schema_migrations
16319
+ Migrating to Counters (1)
16320
+ SQL (0.2ms) SHOW TABLES
16321
+ SQL (0.1ms) SELECT version FROM schema_migrations
16322
+ SQL (0.2ms) SHOW TABLES
16323
+ SQL (0.1ms) SELECT version FROM schema_migrations
16324
+ Migrating to Counters (1)
16325
+ SQL (10.6ms) DROP TABLE `counters`
16326
+ SQL (1.3ms) DELETE FROM schema_migrations WHERE version = '1'
16327
+ SQL (0.2ms) SHOW TABLES
16328
+ SQL (0.1ms) SELECT version FROM schema_migrations
16329
+ SQL (0.2ms) SHOW TABLES
16330
+ SQL (0.1ms) SELECT version FROM schema_migrations
16331
+ Migrating to Counters (1)
16332
+ SQL (34.0ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
16333
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
16334
+ Counter Columns (2.5ms) SHOW FIELDS FROM `counters`
16335
+ SQL (0.2ms) BEGIN
16336
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
16337
+ SQL (0.5ms) COMMIT
16338
+ SQL (0.0ms) SHOW TABLES
16339
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16340
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16341
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16342
+ FROM counters
16343
+ 
16344
+ SQL (0.0ms)  UPDATE counters
16345
+ SET counter_last_monday = 1, counter_data = '---
16346
+ counter_last_monday_before_today: 0
16347
+ counter_last_tuesday_before_today: 1
16348
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16349
+ counter_last_day: 1
16350
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16351
+ counter_2_days_ago: 1
16352
+ counter_last_wednesday_before_today: 1
16353
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16354
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16355
+ counter_last_2_days: 1
16356
+ counter_1_day_ago: 1
16357
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
16358
+ WHERE id = 1
16359
+ 
16360
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16361
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
16362
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16363
+ SQL (0.0ms) BEGIN
16364
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
16365
+ SQL (0.0ms) COMMIT
16366
+ SQL (0.0ms) SHOW TABLES
16367
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16368
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16369
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16370
+ FROM counters
16371
+ 
16372
+ SQL (0.0ms)  UPDATE counters
16373
+ SET counter_last_monday = 2, counter_data = '---
16374
+ counter_last_monday_before_today: 0
16375
+ counter_last_tuesday_before_today: 2
16376
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16377
+ counter_last_day: 1
16378
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16379
+ counter_2_days_ago: 2
16380
+ counter_last_wednesday_before_today: 2
16381
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16382
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16383
+ counter_last_2_days: 1
16384
+ counter_1_day_ago: 2
16385
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
16386
+ WHERE id = 1
16387
+ 
16388
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16389
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16390
+ SQL (0.1ms) BEGIN
16391
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
16392
+ SQL (0.5ms) COMMIT
16393
+ SQL (0.0ms) SHOW TABLES
16394
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16395
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16396
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16397
+ FROM counters
16398
+ 
16399
+ SQL (0.0ms)  UPDATE counters
16400
+ SET counter_last_monday = 2, counter_data = '---
16401
+ counter_last_monday_before_today: 3
16402
+ counter_last_tuesday_before_today: 2
16403
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16404
+ counter_last_day: 3
16405
+ counter_last_day_at: 2010-06-22 00:00:00 Z
16406
+ counter_2_days_ago: 2
16407
+ counter_last_wednesday_before_today: 3
16408
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
16409
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16410
+ counter_last_2_days: 1
16411
+ counter_1_day_ago: 3
16412
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
16413
+ WHERE id = 1
16414
+ 
16415
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16416
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16417
+ SQL (0.1ms) BEGIN
16418
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
16419
+ SQL (1.2ms) COMMIT
16420
+ SQL (0.0ms) SHOW TABLES
16421
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16422
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16423
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16424
+ FROM counters
16425
+ 
16426
+ SQL (0.0ms)  UPDATE counters
16427
+ SET counter_last_monday = 2, counter_data = '---
16428
+ counter_last_monday_before_today: 4
16429
+ counter_last_tuesday_before_today: 4
16430
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
16431
+ counter_last_day: 4
16432
+ counter_last_day_at: 2010-06-24 00:00:00 Z
16433
+ counter_2_days_ago: 4
16434
+ counter_last_wednesday_before_today: 4
16435
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
16436
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
16437
+ counter_last_2_days: 4
16438
+ counter_1_day_ago: 4
16439
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
16440
+ WHERE id = 1
16441
+ 
16442
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16443
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
16444
+ SQL (0.3ms) SHOW TABLES
16445
+ SQL (0.2ms) SELECT version FROM schema_migrations
16446
+ SQL (0.2ms) SHOW TABLES
16447
+ SQL (0.1ms) SELECT version FROM schema_migrations
16448
+ Migrating to Counters (1)
16449
+ SQL (0.2ms) SHOW TABLES
16450
+ SQL (0.1ms) SELECT version FROM schema_migrations
16451
+ SQL (0.2ms) SHOW TABLES
16452
+ SQL (0.1ms) SELECT version FROM schema_migrations
16453
+ Migrating to Counters (1)
16454
+ SQL (11.9ms) DROP TABLE `counters`
16455
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
16456
+ SQL (0.2ms) SHOW TABLES
16457
+ SQL (0.1ms) SELECT version FROM schema_migrations
16458
+ SQL (0.5ms) SHOW TABLES
16459
+ SQL (0.1ms) SELECT version FROM schema_migrations
16460
+ Migrating to Counters (1)
16461
+ SQL (70.7ms) CREATE TABLE `counters` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `counter` int(11), `counter_1_day_ago` int(11), `counter_2_days_ago` int(11), `counter_last_day` int(11), `counter_last_2_days` int(11), `counter_last_monday` int(11), `counter_last_tuesday` int(11), `counter_last_wednesday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
16462
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
16463
+ Counter Columns (27.8ms) SHOW FIELDS FROM `counters`
16464
+ SQL (0.3ms) BEGIN
16465
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_monday`, `counter_data`, `counter_last_day`, `counter_last_tuesday`, `counter_last_wednesday`, `counter`, `counter_2_days_ago`, `counter_1_day_ago`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL)
16466
+ SQL (0.5ms) COMMIT
16467
+ SQL (0.0ms) SHOW TABLES
16468
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16469
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16470
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16471
+ FROM counters
16472
+ 
16473
+ SQL (0.0ms)  UPDATE counters
16474
+ SET counter_last_monday = 1, counter_data = '---
16475
+ counter_last_monday_before_today: 0
16476
+ counter_last_tuesday_before_today: 1
16477
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16478
+ counter_last_day: 1
16479
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16480
+ counter_2_days_ago: 1
16481
+ counter_last_wednesday_before_today: 1
16482
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16483
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16484
+ counter_last_2_days: 1
16485
+ counter_1_day_ago: 1
16486
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 0, counter_1_day_ago = 0
16487
+ WHERE id = 1
16488
+ 
16489
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16490
+ Counter Load (0.0ms) SELECT * FROM `counters` WHERE (`counters`.`id` = 1) 
16491
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16492
+ SQL (0.0ms) BEGIN
16493
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_2_days_ago: 1\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_1_day_ago: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
16494
+ SQL (0.0ms) COMMIT
16495
+ SQL (0.0ms) SHOW TABLES
16496
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16497
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16498
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16499
+ FROM counters
16500
+ 
16501
+ SQL (0.0ms)  UPDATE counters
16502
+ SET counter_last_monday = 2, counter_data = '---
16503
+ counter_last_monday_before_today: 0
16504
+ counter_last_tuesday_before_today: 2
16505
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16506
+ counter_last_day: 1
16507
+ counter_last_day_at: 2010-06-21 00:00:00 Z
16508
+ counter_2_days_ago: 2
16509
+ counter_last_wednesday_before_today: 2
16510
+ counter_1_day_ago_at: 2010-06-21 00:00:00 Z
16511
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16512
+ counter_last_2_days: 1
16513
+ counter_1_day_ago: 2
16514
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_2_days_ago = 0, counter_last_2_days = 1, counter_1_day_ago = 0
16515
+ WHERE id = 1
16516
+ 
16517
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16518
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16519
+ SQL (0.1ms) BEGIN
16520
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 0\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-21 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_1_day_ago: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
16521
+ SQL (0.7ms) COMMIT
16522
+ SQL (0.0ms) SHOW TABLES
16523
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16524
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16525
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16526
+ FROM counters
16527
+ 
16528
+ SQL (0.0ms)  UPDATE counters
16529
+ SET counter_last_monday = 2, counter_data = '---
16530
+ counter_last_monday_before_today: 3
16531
+ counter_last_tuesday_before_today: 2
16532
+ counter_2_days_ago_at: 2010-06-21 00:00:00 Z
16533
+ counter_last_day: 3
16534
+ counter_last_day_at: 2010-06-22 00:00:00 Z
16535
+ counter_2_days_ago: 2
16536
+ counter_last_wednesday_before_today: 3
16537
+ counter_1_day_ago_at: 2010-06-22 00:00:00 Z
16538
+ counter_last_2_days_at: 2010-06-21 00:00:00 Z
16539
+ counter_last_2_days: 1
16540
+ counter_1_day_ago: 3
16541
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 0, counter_last_2_days = 2, counter_1_day_ago = 2
16542
+ WHERE id = 1
16543
+ 
16544
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16545
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
16546
+ SQL (0.2ms) BEGIN
16547
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_2_days_ago_at: 2010-06-21 00:00:00 Z\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_2_days_ago: 2\ncounter_last_day_at: 2010-06-22 00:00:00 Z\ncounter_1_day_ago_at: 2010-06-22 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_1_day_ago: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-21 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
16548
+ SQL (0.7ms) COMMIT
16549
+ SQL (0.0ms) SHOW TABLES
16550
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
16551
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
16552
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_1_day_ago, counter_2_days_ago, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
16553
+ FROM counters
16554
+ 
16555
+ SQL (0.0ms)  UPDATE counters
16556
+ SET counter_last_monday = 2, counter_data = '---
16557
+ counter_last_monday_before_today: 4
16558
+ counter_last_tuesday_before_today: 4
16559
+ counter_2_days_ago_at: 2010-06-24 00:00:00 Z
16560
+ counter_last_day: 4
16561
+ counter_last_day_at: 2010-06-24 00:00:00 Z
16562
+ counter_2_days_ago: 4
16563
+ counter_last_wednesday_before_today: 4
16564
+ counter_1_day_ago_at: 2010-06-24 00:00:00 Z
16565
+ counter_last_2_days_at: 2010-06-24 00:00:00 Z
16566
+ counter_last_2_days: 4
16567
+ counter_1_day_ago: 4
16568
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_2_days_ago = 2, counter_last_2_days = 0, counter_1_day_ago = 3
16569
+ WHERE id = 1
16570
+ 
16571
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1