periodic_counter 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -13,13 +13,17 @@ sudo gem install periodic_counter
13
13
  Create columns
14
14
  --------------
15
15
 
16
- You should already have a counter column defined that is being incremented by something (let's call the column X).
16
+ You should already have a counter column (let's call it X) that is being incremented by some external process.
17
17
 
18
- Define period columns using this format: <code>X\_last\_week</code> or <code>X\_last\_6\_hours</code>.
18
+ Add an <code>X_data</code> varchar column with a length of 2048.
19
19
 
20
- The period name should follow the format of [ActiveSupport's time extensions](http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Time.html).
20
+ Add your periodic counters (all integers):
21
21
 
22
- Also add an <code>X_data</code> varchar column with a length of 2048.
22
+ * <code>X\_last\_week</code>
23
+ * <code>X\_last\_6\_hours</code>
24
+ * <code>X\_last_sunday</code>
25
+
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.
23
27
 
24
28
  Create configuration
25
29
  --------------------
@@ -3,6 +3,8 @@ Require.lib!
3
3
 
4
4
  class PeriodicCounter
5
5
 
6
+ WEEKDAYS = %w(sunday monday tuesday wednesday thursday friday saturday)
7
+
6
8
  def initialize(environment, root)
7
9
  @db, @log, @mail = ActiveWrapper.setup(
8
10
  :base => root,
@@ -29,8 +31,7 @@ class PeriodicCounter
29
31
  # Find period columns
30
32
  period = columns.select do |col|
31
33
  col =~ /^#{column}/ &&
32
- col != column &&
33
- !col.include?('_data')
34
+ col =~ /_last_/
34
35
  end
35
36
  # Grab all records
36
37
  select_columns = [ 'id', column, "#{column}_data" ]
@@ -45,25 +46,34 @@ class PeriodicCounter
45
46
  count = record.delete(column).to_i
46
47
  # Set period counters
47
48
  period.each do |col|
48
- computed_at = data["#{col}_at"] || Time.now.utc
49
- duration = column_to_period_integer(col)
50
- time_since_compute = Time.now.utc - computed_at
51
- last_day =
52
- if col.include?('day')
53
- self.class.today
54
- elsif col.include?('week')
55
- self.class.last_monday
56
- elsif col.include?('month')
57
- self.class.first_of_the_month
49
+ if WEEKDAYS.include?(weekday = col.split('_last_')[1])
50
+ data["#{col}_before_today"] ||= 0
51
+ if self.class.weekday(weekday)
52
+ record[col] = count - data["#{col}_before_today"]
53
+ else
54
+ data["#{col}_before_today"] = count
58
55
  end
59
- if (time_since_compute - duration) >= 0
60
- data[col] = count
61
- data["#{col}_at"] = last_day
62
56
  else
63
- data[col] ||= count
64
- data["#{col}_at"] ||= last_day
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')
62
+ self.class.today
63
+ elsif col.include?('week')
64
+ self.class.last_monday
65
+ elsif col.include?('month')
66
+ self.class.first_of_the_month
67
+ end
68
+ if (time_since_compute - duration) >= 0
69
+ data[col] = count
70
+ data["#{col}_at"] = last_day
71
+ else
72
+ data[col] ||= count
73
+ data["#{col}_at"] ||= last_day
74
+ end
75
+ record[col] = count - data[col].to_i
65
76
  end
66
- record[col] = count - data[col].to_i
67
77
  end
68
78
  # Update record
69
79
  record["#{column}_data"] = "'#{YAML::dump(data)}'"
@@ -108,5 +118,9 @@ class PeriodicCounter
108
118
  def today(now=Time.now.utc.to_date)
109
119
  Date.new(now.year, now.month, now.day).to_time(:utc)
110
120
  end
121
+
122
+ def weekday(day)
123
+ Time.now.utc.to_date.wday == WEEKDAYS.index(day)
124
+ end
111
125
  end
112
126
  end
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.2'
21
+ version '0.1.3'
22
22
  end
23
23
 
24
24
  bin { require 'lib/periodic_counter' }
@@ -4,6 +4,9 @@ class Counters < ActiveRecord::Migration
4
4
  t.integer :counter
5
5
  t.integer :counter_last_day
6
6
  t.integer :counter_last_2_days
7
+ t.integer :counter_last_monday
8
+ t.integer :counter_last_tuesday
9
+ t.integer :counter_last_wednesday
7
10
  t.string :counter_data, :limit => 2048
8
11
  end
9
12
  end
data/spec/log/test.log CHANGED
@@ -10559,5 +10559,1888 @@ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10559
10559
  counter_last_2_days: 4
10560
10560
  ', counter_last_day = 0, counter_last_2_days = 0
10561
10561
  WHERE id = 1
10562
+ 
10563
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10564
+ SQL (2.0ms) SET SQL_AUTO_IS_NULL=0
10565
+ SQL (2.3ms) SHOW TABLES
10566
+ SQL (607.6ms) SELECT version FROM schema_migrations
10567
+ SQL (0.4ms) SHOW TABLES
10568
+ SQL (0.2ms) SELECT version FROM schema_migrations
10569
+ Migrating to Counters (1)
10570
+ SQL (0.3ms) SHOW TABLES
10571
+ SQL (0.2ms) SELECT version FROM schema_migrations
10572
+ SQL (0.2ms) SHOW TABLES
10573
+ SQL (0.2ms) SELECT version FROM schema_migrations
10574
+ Migrating to Counters (1)
10575
+ SQL (260.1ms) DROP TABLE `counters`
10576
+ SQL (2.8ms) DELETE FROM schema_migrations WHERE version = '1'
10577
+ SQL (0.4ms) SHOW TABLES
10578
+ SQL (0.2ms) SELECT version FROM schema_migrations
10579
+ SQL (0.3ms) SHOW TABLES
10580
+ SQL (0.2ms) SELECT version FROM schema_migrations
10581
+ Migrating to Counters (1)
10582
+ SQL (29.0ms) 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_data` varchar(2048)) ENGINE=InnoDB
10583
+ SQL (0.9ms) INSERT INTO schema_migrations (version) VALUES ('1')
10584
+ Counter Columns (2.0ms) SHOW FIELDS FROM `counters`
10585
+ SQL (0.2ms) BEGIN
10586
+ Counter Create (0.4ms) INSERT INTO `counters` (`counter_data`, `counter_last_day`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, 1, NULL)
10587
+ SQL (0.6ms) COMMIT
10588
+ SQL (0.4ms) SHOW TABLES
10589
+ SQL (1.1ms) SHOW FIELDS FROM `counters`
10590
+ SQL (17.2ms) SHOW FIELDS FROM `schema_migrations`
10591
+ SQL (0.5ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10592
+ FROM counters
10593
+ 
10594
+ SQL (1.2ms)  UPDATE counters
10595
+ SET counter_data = '---
10596
+ counter_last_day: 1
10597
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10598
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10599
+ counter_last_2_days: 1
10600
+ ', counter_last_day = 0, counter_last_2_days = 0
10601
+ WHERE id = 1
10602
+ 
10603
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10604
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10605
+ SQL (0.1ms) BEGIN
10606
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
10607
+ SQL (10.1ms) COMMIT
10608
+ SQL (0.4ms) SHOW TABLES
10609
+ SQL (1.9ms) SHOW FIELDS FROM `counters`
10610
+ SQL (1.2ms) SHOW FIELDS FROM `schema_migrations`
10611
+ SQL (0.3ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10612
+ FROM counters
10613
+ 
10614
+ SQL (0.8ms)  UPDATE counters
10615
+ SET counter_data = '---
10616
+ counter_last_day: 1
10617
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10618
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10619
+ counter_last_2_days: 1
10620
+ ', counter_last_day = 1, counter_last_2_days = 1
10621
+ WHERE id = 1
10622
+ 
10623
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10624
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10625
+ SQL (0.1ms) BEGIN
10626
+ Counter Update (0.4ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
10627
+ SQL (0.6ms) COMMIT
10628
+ SQL (0.0ms) SHOW TABLES
10629
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10630
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10631
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10632
+ FROM counters
10633
+ 
10634
+ SQL (0.0ms)  UPDATE counters
10635
+ SET counter_data = '---
10636
+ counter_last_day: 3
10637
+ counter_last_day_at: 2010-06-18 00:00:00 Z
10638
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10639
+ counter_last_2_days: 1
10640
+ ', counter_last_day = 0, counter_last_2_days = 2
10641
+ WHERE id = 1
10642
+ 
10643
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10644
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10645
+ SQL (0.1ms) BEGIN
10646
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 3\ncounter_last_day_at: 2010-06-18 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
10647
+ SQL (0.5ms) COMMIT
10648
+ SQL (0.0ms) SHOW TABLES
10649
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10650
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10651
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10652
+ FROM counters
10653
+ 
10654
+ SQL (0.0ms)  UPDATE counters
10655
+ SET counter_data = '---
10656
+ counter_last_day: 4
10657
+ counter_last_day_at: 2010-06-19 00:00:00 Z
10658
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
10659
+ counter_last_2_days: 4
10660
+ ', counter_last_day = 0, counter_last_2_days = 0
10661
+ WHERE id = 1
10662
+ 
10663
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10664
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
10665
+ SQL (0.3ms) SHOW TABLES
10666
+ SQL (0.2ms) SELECT version FROM schema_migrations
10667
+ SQL (0.2ms) SHOW TABLES
10668
+ SQL (0.1ms) SELECT version FROM schema_migrations
10669
+ Migrating to Counters (1)
10670
+ SQL (0.6ms) SHOW TABLES
10671
+ SQL (0.1ms) SELECT version FROM schema_migrations
10672
+ SQL (0.2ms) SHOW TABLES
10673
+ SQL (0.1ms) SELECT version FROM schema_migrations
10674
+ Migrating to Counters (1)
10675
+ SQL (17.2ms) DROP TABLE `counters`
10676
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
10677
+ SQL (0.2ms) SHOW TABLES
10678
+ SQL (0.1ms) SELECT version FROM schema_migrations
10679
+ SQL (0.2ms) SHOW TABLES
10680
+ SQL (0.1ms) SELECT version FROM schema_migrations
10681
+ Migrating to Counters (1)
10682
+ 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_data` varchar(2048)) ENGINE=InnoDB
10683
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
10684
+ Counter Columns (1.4ms) SHOW FIELDS FROM `counters`
10685
+ SQL (0.1ms) BEGIN
10686
+ Counter Create (0.4ms) INSERT INTO `counters` (`counter_data`, `counter_last_day`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, 1, NULL)
10687
+ SQL (0.5ms) COMMIT
10688
+ SQL (0.4ms) SHOW TABLES
10689
+ SQL (1.4ms) SHOW FIELDS FROM `counters`
10690
+ SQL (1.4ms) SHOW FIELDS FROM `schema_migrations`
10691
+ SQL (0.3ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10692
+ FROM counters
10693
+ 
10694
+ SQL (0.9ms)  UPDATE counters
10695
+ SET counter_data = '---
10696
+ counter_last_day: 1
10697
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10698
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10699
+ counter_last_2_days: 1
10700
+ ', counter_last_day = 0, counter_last_2_days = 0
10701
+ WHERE id = 1
10702
+ 
10703
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10704
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10705
+ SQL (0.1ms) BEGIN
10706
+ Counter Update (0.5ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
10707
+ SQL (0.6ms) COMMIT
10708
+ SQL (0.3ms) SHOW TABLES
10709
+ SQL (1.3ms) SHOW FIELDS FROM `counters`
10710
+ SQL (1.3ms) SHOW FIELDS FROM `schema_migrations`
10711
+ SQL (0.5ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10712
+ FROM counters
10713
+ 
10714
+ SQL (0.6ms)  UPDATE counters
10715
+ SET counter_data = '---
10716
+ counter_last_day: 1
10717
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10718
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10719
+ counter_last_2_days: 1
10720
+ ', counter_last_day = 1, counter_last_2_days = 1
10721
+ WHERE id = 1
10722
+ 
10723
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10724
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10725
+ SQL (0.1ms) BEGIN
10726
+ Counter Update (0.2ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
10727
+ SQL (0.7ms) COMMIT
10728
+ SQL (0.0ms) SHOW TABLES
10729
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10730
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10731
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10732
+ FROM counters
10733
+ 
10734
+ SQL (0.0ms)  UPDATE counters
10735
+ SET counter_data = '---
10736
+ counter_last_day: 3
10737
+ counter_last_day_at: 2010-06-18 00:00:00 Z
10738
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10739
+ counter_last_2_days: 1
10740
+ ', counter_last_day = 0, counter_last_2_days = 2
10741
+ WHERE id = 1
10742
+ 
10743
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10744
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10745
+ SQL (0.1ms) BEGIN
10746
+ Counter Update (0.2ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_day: 3\ncounter_last_day_at: 2010-06-18 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
10747
+ SQL (0.5ms) COMMIT
10748
+ SQL (0.0ms) SHOW TABLES
10749
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10750
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10751
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days
10752
+ FROM counters
10753
+ 
10754
+ SQL (0.0ms)  UPDATE counters
10755
+ SET counter_data = '---
10756
+ counter_last_day: 4
10757
+ counter_last_day_at: 2010-06-19 00:00:00 Z
10758
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
10759
+ counter_last_2_days: 4
10760
+ ', counter_last_day = 0, counter_last_2_days = 0
10761
+ WHERE id = 1
10762
+ 
10763
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10764
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
10765
+ SQL (0.3ms) SHOW TABLES
10766
+ SQL (0.2ms) SELECT version FROM schema_migrations
10767
+ SQL (0.2ms) SHOW TABLES
10768
+ SQL (0.1ms) SELECT version FROM schema_migrations
10769
+ Migrating to Counters (1)
10770
+ SQL (0.2ms) SHOW TABLES
10771
+ SQL (0.1ms) SELECT version FROM schema_migrations
10772
+ SQL (0.2ms) SHOW TABLES
10773
+ SQL (0.1ms) SELECT version FROM schema_migrations
10774
+ Migrating to Counters (1)
10775
+ SQL (10.8ms) DROP TABLE `counters`
10776
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
10777
+ SQL (0.4ms) SHOW TABLES
10778
+ SQL (0.2ms) SELECT version FROM schema_migrations
10779
+ SQL (0.2ms) SHOW TABLES
10780
+ SQL (0.2ms) SELECT version FROM schema_migrations
10781
+ Migrating to Counters (1)
10782
+ SQL (2.0ms) 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_thursday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
10783
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
10784
+ Counter Columns (1.6ms) SHOW FIELDS FROM `counters`
10785
+ SQL (0.2ms) BEGIN
10786
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_thursday`, `counter_data`, `counter_last_day`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, 1, NULL)
10787
+ SQL (1.7ms) COMMIT
10788
+ SQL (0.3ms) SHOW TABLES
10789
+ SQL (1.3ms) SHOW FIELDS FROM `counters`
10790
+ SQL (1.4ms) SHOW FIELDS FROM `schema_migrations`
10791
+ SQL (0.2ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday
10792
+ FROM counters
10793
+ 
10794
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10795
+ SQL (0.1ms) BEGIN
10796
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = NULL, `counter` = 2 WHERE `id` = 1
10797
+ SQL (0.4ms) COMMIT
10798
+ SQL (0.3ms) SHOW TABLES
10799
+ SQL (1.1ms) SHOW FIELDS FROM `counters`
10800
+ SQL (1.4ms) SHOW FIELDS FROM `schema_migrations`
10801
+ SQL (0.9ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday
10802
+ FROM counters
10803
+ 
10804
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10805
+ SQL (0.1ms) BEGIN
10806
+ Counter Update (0.2ms) UPDATE `counters` SET `counter_data` = NULL, `counter` = 3 WHERE `id` = 1
10807
+ SQL (1.0ms) COMMIT
10808
+ SQL (0.0ms) SHOW TABLES
10809
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10810
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10811
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday
10812
+ FROM counters
10813
+ 
10814
+ SQL (0.0ms)  UPDATE counters
10815
+ SET counter_last_thursday = 0, counter_data = '---
10816
+ counter_last_thursday_before_today: 3
10817
+ counter_last_day: 3
10818
+ counter_last_day_at: 2010-06-18 00:00:00 Z
10819
+ counter_last_2_days_at: 2010-06-18 00:00:00 Z
10820
+ counter_last_2_days: 3
10821
+ ', counter_last_day = 0, counter_last_2_days = 0
10822
+ WHERE id = 1
10823
+ 
10824
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10825
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10826
+ SQL (0.1ms) BEGIN
10827
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_thursday_before_today: 3\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-18 00:00:00 Z\ncounter_last_2_days: 3\ncounter_last_2_days_at: 2010-06-18 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
10828
+ SQL (0.8ms) COMMIT
10829
+ SQL (0.0ms) SHOW TABLES
10830
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10831
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10832
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday
10833
+ FROM counters
10834
+ 
10835
+ SQL (0.0ms)  UPDATE counters
10836
+ SET counter_last_thursday = 0, counter_data = '---
10837
+ counter_last_thursday_before_today: 4
10838
+ counter_last_day: 4
10839
+ counter_last_day_at: 2010-06-19 00:00:00 Z
10840
+ counter_last_2_days_at: 2010-06-18 00:00:00 Z
10841
+ counter_last_2_days: 3
10842
+ ', counter_last_day = 0, counter_last_2_days = 1
10843
+ WHERE id = 1
10844
+ 
10845
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10846
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
10847
+ SQL (0.3ms) SHOW TABLES
10848
+ SQL (0.2ms) SELECT version FROM schema_migrations
10849
+ SQL (0.2ms) SHOW TABLES
10850
+ SQL (0.1ms) SELECT version FROM schema_migrations
10851
+ Migrating to Counters (1)
10852
+ SQL (0.2ms) SHOW TABLES
10853
+ SQL (0.1ms) SELECT version FROM schema_migrations
10854
+ SQL (0.2ms) SHOW TABLES
10855
+ SQL (0.1ms) SELECT version FROM schema_migrations
10856
+ Migrating to Counters (1)
10857
+ SQL (10.7ms) DROP TABLE `counters`
10858
+ SQL (1.0ms) DELETE FROM schema_migrations WHERE version = '1'
10859
+ SQL (0.4ms) SHOW TABLES
10860
+ SQL (0.2ms) SELECT version FROM schema_migrations
10861
+ SQL (0.3ms) SHOW TABLES
10862
+ SQL (0.2ms) SELECT version FROM schema_migrations
10863
+ Migrating to Counters (1)
10864
+ SQL (2.0ms) 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_thursday` int(11), `counter_last_friday` int(11), `counter_last_saturday` int(11), `counter_data` varchar(2048)) ENGINE=InnoDB
10865
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
10866
+ Counter Columns (2.8ms) SHOW FIELDS FROM `counters`
10867
+ SQL (0.1ms) BEGIN
10868
+ Counter Create (0.3ms) INSERT INTO `counters` (`counter_last_friday`, `counter_last_saturday`, `counter_last_thursday`, `counter_data`, `counter_last_day`, `counter`, `counter_last_2_days`) VALUES(NULL, NULL, NULL, NULL, NULL, 1, NULL)
10869
+ SQL (0.5ms) COMMIT
10870
+ SQL (0.3ms) SHOW TABLES
10871
+ SQL (1.3ms) SHOW FIELDS FROM `counters`
10872
+ SQL (1.7ms) SHOW FIELDS FROM `schema_migrations`
10873
+ SQL (0.9ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday, counter_last_friday, counter_last_saturday
10874
+ FROM counters
10875
+ 
10876
+ SQL (0.7ms)  UPDATE counters
10877
+ SET counter_last_saturday = 0, counter_last_friday = 0, counter_last_thursday = 0, counter_data = '---
10878
+ counter_last_thursday: 1
10879
+ counter_last_thursday_before_today: 0
10880
+ counter_last_saturday_before_today: 1
10881
+ counter_last_day: 1
10882
+ counter_last_friday_before_today: 1
10883
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10884
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10885
+ counter_last_2_days: 1
10886
+ ', counter_last_day = 0, counter_last_2_days = 0
10887
+ WHERE id = 1
10888
+ 
10889
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10890
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10891
+ SQL (0.1ms) BEGIN
10892
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_thursday_before_today: 0\ncounter_last_thursday: 1\ncounter_last_saturday_before_today: 1\ncounter_last_day: 1\ncounter_last_friday_before_today: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
10893
+ SQL (0.6ms) COMMIT
10894
+ SQL (0.4ms) SHOW TABLES
10895
+ SQL (1.2ms) SHOW FIELDS FROM `counters`
10896
+ SQL (1.7ms) SHOW FIELDS FROM `schema_migrations`
10897
+ SQL (0.5ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday, counter_last_friday, counter_last_saturday
10898
+ FROM counters
10899
+ 
10900
+ SQL (0.7ms)  UPDATE counters
10901
+ SET counter_last_saturday = 0, counter_last_friday = 0, counter_last_thursday = 0, counter_data = '---
10902
+ counter_last_thursday: 2
10903
+ counter_last_thursday_before_today: 0
10904
+ counter_last_saturday_before_today: 2
10905
+ counter_last_day: 1
10906
+ counter_last_friday_before_today: 2
10907
+ counter_last_day_at: 2010-06-17 00:00:00 Z
10908
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10909
+ counter_last_2_days: 1
10910
+ ', counter_last_day = 1, counter_last_2_days = 1
10911
+ WHERE id = 1
10912
+ 
10913
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10914
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10915
+ SQL (0.1ms) BEGIN
10916
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_thursday_before_today: 0\ncounter_last_thursday: 2\ncounter_last_saturday_before_today: 2\ncounter_last_day: 1\ncounter_last_friday_before_today: 2\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
10917
+ SQL (0.5ms) COMMIT
10918
+ SQL (0.0ms) SHOW TABLES
10919
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10920
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10921
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday, counter_last_friday, counter_last_saturday
10922
+ FROM counters
10923
+ 
10924
+ SQL (0.0ms)  UPDATE counters
10925
+ SET counter_last_saturday = 0, counter_last_friday = 0, counter_last_thursday = 0, counter_data = '---
10926
+ counter_last_friday: 1
10927
+ counter_last_thursday: 2
10928
+ counter_last_thursday_before_today: 3
10929
+ counter_last_saturday_before_today: 3
10930
+ counter_last_day: 3
10931
+ counter_last_friday_before_today: 2
10932
+ counter_last_day_at: 2010-06-18 00:00:00 Z
10933
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
10934
+ counter_last_2_days: 1
10935
+ ', counter_last_day = 0, counter_last_2_days = 2
10936
+ WHERE id = 1
10937
+ 
10938
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10939
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10940
+ SQL (0.1ms) BEGIN
10941
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_friday: 1\ncounter_last_thursday_before_today: 3\ncounter_last_thursday: 2\ncounter_last_saturday_before_today: 3\ncounter_last_day: 3\ncounter_last_friday_before_today: 2\ncounter_last_day_at: 2010-06-18 00:00:00 Z\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
10942
+ SQL (1.9ms) COMMIT
10943
+ SQL (0.0ms) SHOW TABLES
10944
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
10945
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
10946
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_thursday, counter_last_friday, counter_last_saturday
10947
+ FROM counters
10948
+ 
10949
+ SQL (0.0ms)  UPDATE counters
10950
+ SET counter_last_saturday = 0, counter_last_friday = 0, counter_last_thursday = 0, counter_data = '---
10951
+ counter_last_saturday: 1
10952
+ counter_last_friday: 1
10953
+ counter_last_thursday: 2
10954
+ counter_last_thursday_before_today: 4
10955
+ counter_last_saturday_before_today: 3
10956
+ counter_last_day: 4
10957
+ counter_last_friday_before_today: 4
10958
+ counter_last_day_at: 2010-06-19 00:00:00 Z
10959
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
10960
+ counter_last_2_days: 4
10961
+ ', counter_last_day = 0, counter_last_2_days = 0
10962
+ WHERE id = 1
10963
+ 
10964
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
10965
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
10966
+ SQL (0.3ms) SHOW TABLES
10967
+ SQL (0.2ms) SELECT version FROM schema_migrations
10968
+ SQL (0.2ms) SHOW TABLES
10969
+ SQL (0.2ms) SELECT version FROM schema_migrations
10970
+ Migrating to Counters (1)
10971
+ SQL (0.2ms) SHOW TABLES
10972
+ SQL (0.1ms) SELECT version FROM schema_migrations
10973
+ SQL (0.2ms) SHOW TABLES
10974
+ SQL (0.1ms) SELECT version FROM schema_migrations
10975
+ Migrating to Counters (1)
10976
+ SQL (10.8ms) DROP TABLE `counters`
10977
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
10978
+ SQL (0.5ms) SHOW TABLES
10979
+ SQL (0.3ms) SELECT version FROM schema_migrations
10980
+ SQL (0.3ms) SHOW TABLES
10981
+ SQL (0.2ms) SELECT version FROM schema_migrations
10982
+ Migrating to Counters (1)
10983
+ SQL (2.0ms) 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
10984
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
10985
+ Counter Columns (1.6ms) SHOW FIELDS FROM `counters`
10986
+ SQL (0.1ms) BEGIN
10987
+ 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)
10988
+ SQL (0.5ms) COMMIT
10989
+ SQL (0.3ms) SHOW TABLES
10990
+ SQL (1.3ms) SHOW FIELDS FROM `counters`
10991
+ SQL (1.3ms) SHOW FIELDS FROM `schema_migrations`
10992
+ SQL (0.3ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
10993
+ FROM counters
10994
+ 
10995
+ SQL (0.7ms)  UPDATE counters
10996
+ SET counter_last_monday = 0, counter_data = '---
10997
+ counter_last_monday_before_today: 1
10998
+ counter_last_tuesday_before_today: 1
10999
+ counter_last_day: 1
11000
+ counter_last_day_at: 2010-06-17 00:00:00 Z
11001
+ counter_last_wednesday_before_today: 1
11002
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
11003
+ counter_last_2_days: 1
11004
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11005
+ WHERE id = 1
11006
+ 
11007
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11008
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11009
+ SQL (0.1ms) BEGIN
11010
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 1\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11011
+ SQL (0.6ms) COMMIT
11012
+ SQL (0.4ms) SHOW TABLES
11013
+ SQL (1.2ms) SHOW FIELDS FROM `counters`
11014
+ SQL (2.4ms) SHOW FIELDS FROM `schema_migrations`
11015
+ SQL (0.2ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11016
+ FROM counters
11017
+ 
11018
+ SQL (0.7ms)  UPDATE counters
11019
+ SET counter_last_monday = 0, counter_data = '---
11020
+ counter_last_monday_before_today: 2
11021
+ counter_last_tuesday_before_today: 2
11022
+ counter_last_day: 1
11023
+ counter_last_day_at: 2010-06-17 00:00:00 Z
11024
+ counter_last_wednesday_before_today: 2
11025
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
11026
+ counter_last_2_days: 1
11027
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11028
+ WHERE id = 1
11029
+ 
11030
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11031
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11032
+ SQL (0.1ms) BEGIN
11033
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 2\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-17 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11034
+ SQL (0.5ms) COMMIT
11035
+ SQL (0.0ms) SHOW TABLES
11036
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11037
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11038
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11039
+ FROM counters
11040
+ 
11041
+ SQL (0.0ms)  UPDATE counters
11042
+ SET counter_last_monday = 0, counter_data = '---
11043
+ counter_last_monday_before_today: 3
11044
+ counter_last_tuesday_before_today: 3
11045
+ counter_last_day: 3
11046
+ counter_last_day_at: 2010-06-18 00:00:00 Z
11047
+ counter_last_wednesday_before_today: 3
11048
+ counter_last_2_days_at: 2010-06-17 00:00:00 Z
11049
+ counter_last_2_days: 1
11050
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 2
11051
+ WHERE id = 1
11052
+ 
11053
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11054
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11055
+ SQL (0.1ms) BEGIN
11056
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 3\ncounter_last_day: 3\ncounter_last_day_at: 2010-06-18 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-17 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11057
+ SQL (0.5ms) COMMIT
11058
+ SQL (0.0ms) SHOW TABLES
11059
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11060
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11061
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11062
+ FROM counters
11063
+ 
11064
+ SQL (0.0ms)  UPDATE counters
11065
+ SET counter_last_monday = 0, counter_data = '---
11066
+ counter_last_monday_before_today: 4
11067
+ counter_last_tuesday_before_today: 4
11068
+ counter_last_day: 4
11069
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11070
+ counter_last_wednesday_before_today: 4
11071
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11072
+ counter_last_2_days: 4
11073
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11074
+ WHERE id = 1
11075
+ 
11076
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11077
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11078
+ SQL (0.3ms) SHOW TABLES
11079
+ SQL (0.2ms) SELECT version FROM schema_migrations
11080
+ SQL (0.2ms) SHOW TABLES
11081
+ SQL (0.1ms) SELECT version FROM schema_migrations
11082
+ Migrating to Counters (1)
11083
+ SQL (0.2ms) SHOW TABLES
11084
+ SQL (0.1ms) SELECT version FROM schema_migrations
11085
+ SQL (0.2ms) SHOW TABLES
11086
+ SQL (0.1ms) SELECT version FROM schema_migrations
11087
+ Migrating to Counters (1)
11088
+ SQL (10.5ms) DROP TABLE `counters`
11089
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
11090
+ SQL (0.2ms) SHOW TABLES
11091
+ SQL (0.1ms) SELECT version FROM schema_migrations
11092
+ SQL (0.2ms) SHOW TABLES
11093
+ SQL (0.2ms) SELECT version FROM schema_migrations
11094
+ Migrating to Counters (1)
11095
+ SQL (1.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
11096
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
11097
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
11098
+ SQL (0.3ms) SHOW TABLES
11099
+ SQL (0.2ms) SELECT version FROM schema_migrations
11100
+ SQL (0.2ms) SHOW TABLES
11101
+ SQL (0.1ms) SELECT version FROM schema_migrations
11102
+ Migrating to Counters (1)
11103
+ SQL (0.2ms) SHOW TABLES
11104
+ SQL (0.1ms) SELECT version FROM schema_migrations
11105
+ SQL (0.2ms) SHOW TABLES
11106
+ SQL (0.1ms) SELECT version FROM schema_migrations
11107
+ Migrating to Counters (1)
11108
+ SQL (1.4ms) DROP TABLE `counters`
11109
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
11110
+ SQL (0.2ms) SHOW TABLES
11111
+ SQL (0.1ms) SELECT version FROM schema_migrations
11112
+ SQL (0.2ms) SHOW TABLES
11113
+ SQL (0.1ms) SELECT version FROM schema_migrations
11114
+ Migrating to Counters (1)
11115
+ SQL (1.7ms) 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
11116
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
11117
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11118
+ SQL (0.0ms) BEGIN
11119
+ 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)
11120
+ SQL (0.0ms) COMMIT
11121
+ SQL (0.0ms) SHOW TABLES
11122
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11123
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11124
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11125
+ FROM counters
11126
+ 
11127
+ SQL (0.0ms)  UPDATE counters
11128
+ SET counter_last_monday = 0, counter_data = '---
11129
+ counter_last_monday: 1
11130
+ counter_last_monday_before_today: 0
11131
+ counter_last_tuesday_before_today: 1
11132
+ counter_last_day: 1
11133
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11134
+ counter_last_wednesday_before_today: 1
11135
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11136
+ counter_last_2_days: 1
11137
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11138
+ WHERE id = 1
11139
+ 
11140
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11141
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11142
+ SQL (0.0ms) BEGIN
11143
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday: 1\ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 1\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11144
+ SQL (0.0ms) COMMIT
11145
+ SQL (0.0ms) SHOW TABLES
11146
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11147
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11148
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11149
+ FROM counters
11150
+ 
11151
+ SQL (0.0ms)  UPDATE counters
11152
+ SET counter_last_monday = 0, counter_data = '---
11153
+ counter_last_monday: 2
11154
+ counter_last_monday_before_today: 0
11155
+ counter_last_tuesday_before_today: 2
11156
+ counter_last_day: 1
11157
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11158
+ counter_last_wednesday_before_today: 2
11159
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11160
+ counter_last_2_days: 1
11161
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11162
+ WHERE id = 1
11163
+ 
11164
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11165
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11166
+ SQL (0.0ms) BEGIN
11167
+ Counter Update (0.0ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday: 2\ncounter_last_monday_before_today: 0\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 1\ncounter_last_day_at: 2010-06-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11168
+ SQL (0.0ms) COMMIT
11169
+ SQL (0.0ms) SHOW TABLES
11170
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11171
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11172
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11173
+ FROM counters
11174
+ 
11175
+ SQL (0.0ms)  UPDATE counters
11176
+ SET counter_last_monday = 0, counter_data = '---
11177
+ counter_last_monday: 2
11178
+ counter_last_monday_before_today: 3
11179
+ counter_last_tuesday_before_today: 2
11180
+ counter_last_day: 3
11181
+ counter_last_tuesday: 1
11182
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11183
+ counter_last_wednesday_before_today: 3
11184
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11185
+ counter_last_2_days: 1
11186
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 2
11187
+ WHERE id = 1
11188
+ 
11189
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11190
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11191
+ SQL (0.1ms) BEGIN
11192
+ Counter Update (0.3ms) UPDATE `counters` SET `counter_data` = '--- \ncounter_last_monday: 2\ncounter_last_monday_before_today: 3\ncounter_last_tuesday_before_today: 2\ncounter_last_day: 3\ncounter_last_tuesday: 1\ncounter_last_day_at: 2010-06-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11193
+ SQL (0.7ms) COMMIT
11194
+ SQL (0.0ms) SHOW TABLES
11195
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11196
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11197
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11198
+ FROM counters
11199
+ 
11200
+ SQL (0.0ms)  UPDATE counters
11201
+ SET counter_last_monday = 0, counter_data = '---
11202
+ counter_last_monday: 2
11203
+ counter_last_monday_before_today: 4
11204
+ counter_last_tuesday_before_today: 4
11205
+ counter_last_day: 4
11206
+ counter_last_tuesday: 1
11207
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11208
+ counter_last_wednesday_before_today: 4
11209
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11210
+ counter_last_2_days: 4
11211
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11212
+ WHERE id = 1
11213
+ 
11214
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11215
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11216
+ SQL (0.3ms) SHOW TABLES
11217
+ SQL (0.2ms) SELECT version FROM schema_migrations
11218
+ SQL (0.2ms) SHOW TABLES
11219
+ SQL (0.1ms) SELECT version FROM schema_migrations
11220
+ Migrating to Counters (1)
11221
+ SQL (0.2ms) SHOW TABLES
11222
+ SQL (0.1ms) SELECT version FROM schema_migrations
11223
+ SQL (0.2ms) SHOW TABLES
11224
+ SQL (0.1ms) SELECT version FROM schema_migrations
11225
+ Migrating to Counters (1)
11226
+ SQL (10.5ms) DROP TABLE `counters`
11227
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
11228
+ SQL (0.2ms) SHOW TABLES
11229
+ SQL (0.1ms) SELECT version FROM schema_migrations
11230
+ SQL (0.2ms) SHOW TABLES
11231
+ SQL (0.6ms) SELECT version FROM schema_migrations
11232
+ Migrating to Counters (1)
11233
+ 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
11234
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
11235
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11236
+ SQL (0.0ms) BEGIN
11237
+ 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)
11238
+ SQL (0.0ms) COMMIT
11239
+ SQL (0.0ms) SHOW TABLES
11240
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11241
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11242
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11243
+ FROM counters
11244
+ 
11245
+ SQL (0.0ms)  UPDATE counters
11246
+ SET counter_last_monday = 1, counter_data = '---
11247
+ counter_last_monday_before_today: 0
11248
+ counter_last_tuesday_before_today: 1
11249
+ counter_last_day: 1
11250
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11251
+ counter_last_wednesday_before_today: 1
11252
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11253
+ counter_last_2_days: 1
11254
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11255
+ WHERE id = 1
11256
+ 
11257
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11258
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11259
+ SQL (0.0ms) BEGIN
11260
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11261
+ SQL (0.0ms) COMMIT
11262
+ SQL (0.0ms) SHOW TABLES
11263
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11264
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11265
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11266
+ FROM counters
11267
+ 
11268
+ SQL (0.0ms)  UPDATE counters
11269
+ SET counter_last_monday = 2, counter_data = '---
11270
+ counter_last_monday_before_today: 0
11271
+ counter_last_tuesday_before_today: 2
11272
+ counter_last_day: 1
11273
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11274
+ counter_last_wednesday_before_today: 2
11275
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11276
+ counter_last_2_days: 1
11277
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11278
+ WHERE id = 1
11279
+ 
11280
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11281
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11282
+ SQL (0.0ms) BEGIN
11283
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11284
+ SQL (0.0ms) COMMIT
11285
+ SQL (0.0ms) SHOW TABLES
11286
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11287
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11288
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11289
+ FROM counters
11290
+ 
11291
+ SQL (0.0ms)  UPDATE counters
11292
+ SET counter_last_monday = 2, counter_data = '---
11293
+ counter_last_monday_before_today: 3
11294
+ counter_last_tuesday_before_today: 2
11295
+ counter_last_day: 3
11296
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11297
+ counter_last_wednesday_before_today: 3
11298
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11299
+ counter_last_2_days: 1
11300
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11301
+ WHERE id = 1
11302
+ 
11303
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11304
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11305
+ SQL (0.1ms) BEGIN
11306
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11307
+ SQL (0.6ms) COMMIT
11308
+ SQL (0.0ms) SHOW TABLES
11309
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11310
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11311
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11312
+ FROM counters
11313
+ 
11314
+ SQL (0.0ms)  UPDATE counters
11315
+ SET counter_last_monday = 2, counter_data = '---
11316
+ counter_last_monday_before_today: 4
11317
+ counter_last_tuesday_before_today: 4
11318
+ counter_last_day: 4
11319
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11320
+ counter_last_wednesday_before_today: 4
11321
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11322
+ counter_last_2_days: 4
11323
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11324
+ WHERE id = 1
11325
+ 
11326
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11327
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11328
+ SQL (0.3ms) SHOW TABLES
11329
+ SQL (0.2ms) SELECT version FROM schema_migrations
11330
+ SQL (0.2ms) SHOW TABLES
11331
+ SQL (0.1ms) SELECT version FROM schema_migrations
11332
+ Migrating to Counters (1)
11333
+ SQL (0.2ms) SHOW TABLES
11334
+ SQL (0.1ms) SELECT version FROM schema_migrations
11335
+ SQL (0.2ms) SHOW TABLES
11336
+ SQL (0.1ms) SELECT version FROM schema_migrations
11337
+ Migrating to Counters (1)
11338
+ SQL (40.3ms) DROP TABLE `counters`
11339
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
11340
+ SQL (0.5ms) SHOW TABLES
11341
+ SQL (0.2ms) SELECT version FROM schema_migrations
11342
+ SQL (0.5ms) SHOW TABLES
11343
+ SQL (0.2ms) SELECT version FROM schema_migrations
11344
+ Migrating to Counters (1)
11345
+ 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
11346
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
11347
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11348
+ SQL (0.0ms) BEGIN
11349
+ 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)
11350
+ SQL (0.0ms) COMMIT
11351
+ SQL (0.0ms) SHOW TABLES
11352
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11353
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11354
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11355
+ FROM counters
11356
+ 
11357
+ SQL (0.0ms)  UPDATE counters
11358
+ SET counter_last_monday = 1, counter_data = '---
11359
+ counter_last_monday_before_today: 0
11360
+ counter_last_tuesday_before_today: 1
11361
+ counter_last_day: 1
11362
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11363
+ counter_last_wednesday_before_today: 1
11364
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11365
+ counter_last_2_days: 1
11366
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11367
+ WHERE id = 1
11368
+ 
11369
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11370
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11371
+ SQL (0.0ms) BEGIN
11372
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11373
+ SQL (0.0ms) COMMIT
11374
+ SQL (0.0ms) SHOW TABLES
11375
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11376
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11377
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11378
+ FROM counters
11379
+ 
11380
+ SQL (0.0ms)  UPDATE counters
11381
+ SET counter_last_monday = 2, counter_data = '---
11382
+ counter_last_monday_before_today: 0
11383
+ counter_last_tuesday_before_today: 2
11384
+ counter_last_day: 1
11385
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11386
+ counter_last_wednesday_before_today: 2
11387
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11388
+ counter_last_2_days: 1
11389
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11390
+ WHERE id = 1
11391
+ 
11392
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11393
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11394
+ SQL (0.0ms) BEGIN
11395
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11396
+ SQL (0.0ms) COMMIT
11397
+ SQL (0.0ms) SHOW TABLES
11398
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11399
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11400
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11401
+ FROM counters
11402
+ 
11403
+ SQL (0.0ms)  UPDATE counters
11404
+ SET counter_last_monday = 2, counter_data = '---
11405
+ counter_last_monday_before_today: 3
11406
+ counter_last_tuesday_before_today: 2
11407
+ counter_last_day: 3
11408
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11409
+ counter_last_wednesday_before_today: 3
11410
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11411
+ counter_last_2_days: 1
11412
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11413
+ WHERE id = 1
11414
+ 
11415
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11416
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11417
+ SQL (0.1ms) BEGIN
11418
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11419
+ SQL (0.4ms) COMMIT
11420
+ SQL (0.0ms) SHOW TABLES
11421
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11422
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11423
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11424
+ FROM counters
11425
+ 
11426
+ SQL (0.0ms)  UPDATE counters
11427
+ SET counter_last_monday = 2, counter_data = '---
11428
+ counter_last_monday_before_today: 4
11429
+ counter_last_tuesday_before_today: 4
11430
+ counter_last_day: 4
11431
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11432
+ counter_last_wednesday_before_today: 4
11433
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11434
+ counter_last_2_days: 4
11435
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11436
+ WHERE id = 1
11437
+ 
11438
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11439
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11440
+ SQL (0.3ms) SHOW TABLES
11441
+ SQL (0.2ms) SELECT version FROM schema_migrations
11442
+ SQL (0.2ms) SHOW TABLES
11443
+ SQL (0.1ms) SELECT version FROM schema_migrations
11444
+ Migrating to Counters (1)
11445
+ SQL (0.2ms) SHOW TABLES
11446
+ SQL (0.1ms) SELECT version FROM schema_migrations
11447
+ SQL (0.2ms) SHOW TABLES
11448
+ SQL (0.2ms) SELECT version FROM schema_migrations
11449
+ Migrating to Counters (1)
11450
+ SQL (10.5ms) DROP TABLE `counters`
11451
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
11452
+ SQL (0.2ms) SHOW TABLES
11453
+ SQL (0.1ms) SELECT version FROM schema_migrations
11454
+ SQL (0.2ms) SHOW TABLES
11455
+ SQL (0.1ms) SELECT version FROM schema_migrations
11456
+ Migrating to Counters (1)
11457
+ SQL (40.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
11458
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
11459
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11460
+ SQL (0.0ms) BEGIN
11461
+ 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)
11462
+ SQL (0.0ms) COMMIT
11463
+ SQL (0.0ms) SHOW TABLES
11464
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11465
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11466
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11467
+ FROM counters
11468
+ 
11469
+ SQL (0.0ms)  UPDATE counters
11470
+ SET counter_last_monday = 1, counter_data = '---
11471
+ counter_last_monday_before_today: 0
11472
+ counter_last_tuesday_before_today: 1
11473
+ counter_last_day: 1
11474
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11475
+ counter_last_wednesday_before_today: 1
11476
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11477
+ counter_last_2_days: 1
11478
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11479
+ WHERE id = 1
11480
+ 
11481
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11482
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11483
+ SQL (0.0ms) BEGIN
11484
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11485
+ SQL (0.0ms) COMMIT
11486
+ SQL (0.0ms) SHOW TABLES
11487
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11488
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11489
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11490
+ FROM counters
11491
+ 
11492
+ SQL (0.0ms)  UPDATE counters
11493
+ SET counter_last_monday = 2, counter_data = '---
11494
+ counter_last_monday_before_today: 0
11495
+ counter_last_tuesday_before_today: 2
11496
+ counter_last_day: 1
11497
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11498
+ counter_last_wednesday_before_today: 2
11499
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11500
+ counter_last_2_days: 1
11501
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11502
+ WHERE id = 1
11503
+ 
11504
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11505
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11506
+ SQL (0.0ms) BEGIN
11507
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11508
+ SQL (0.0ms) COMMIT
11509
+ SQL (0.0ms) SHOW TABLES
11510
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11511
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11512
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11513
+ FROM counters
11514
+ 
11515
+ SQL (0.0ms)  UPDATE counters
11516
+ SET counter_last_monday = 2, counter_data = '---
11517
+ counter_last_monday_before_today: 3
11518
+ counter_last_tuesday_before_today: 2
11519
+ counter_last_day: 3
11520
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11521
+ counter_last_wednesday_before_today: 3
11522
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11523
+ counter_last_2_days: 1
11524
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11525
+ WHERE id = 1
11526
+ 
11527
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11528
+ Counter Load (0.4ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11529
+ SQL (0.1ms) BEGIN
11530
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11531
+ SQL (0.5ms) COMMIT
11532
+ SQL (0.0ms) SHOW TABLES
11533
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11534
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11535
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11536
+ FROM counters
11537
+ 
11538
+ SQL (0.0ms)  UPDATE counters
11539
+ SET counter_last_monday = 2, counter_data = '---
11540
+ counter_last_monday_before_today: 4
11541
+ counter_last_tuesday_before_today: 4
11542
+ counter_last_day: 4
11543
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11544
+ counter_last_wednesday_before_today: 4
11545
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11546
+ counter_last_2_days: 4
11547
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11548
+ WHERE id = 1
11549
+ 
11550
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11551
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11552
+ SQL (0.3ms) SHOW TABLES
11553
+ SQL (0.2ms) SELECT version FROM schema_migrations
11554
+ SQL (0.2ms) SHOW TABLES
11555
+ SQL (0.1ms) SELECT version FROM schema_migrations
11556
+ Migrating to Counters (1)
11557
+ SQL (0.2ms) SHOW TABLES
11558
+ SQL (0.1ms) SELECT version FROM schema_migrations
11559
+ SQL (0.2ms) SHOW TABLES
11560
+ SQL (0.1ms) SELECT version FROM schema_migrations
11561
+ Migrating to Counters (1)
11562
+ SQL (10.5ms) DROP TABLE `counters`
11563
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
11564
+ SQL (0.2ms) SHOW TABLES
11565
+ SQL (0.1ms) SELECT version FROM schema_migrations
11566
+ SQL (0.2ms) SHOW TABLES
11567
+ SQL (0.1ms) SELECT version FROM schema_migrations
11568
+ Migrating to Counters (1)
11569
+ SQL (59.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
11570
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
11571
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11572
+ SQL (0.0ms) BEGIN
11573
+ 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)
11574
+ SQL (0.0ms) COMMIT
11575
+ SQL (0.0ms) SHOW TABLES
11576
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11577
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11578
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11579
+ FROM counters
11580
+ 
11581
+ SQL (0.0ms)  UPDATE counters
11582
+ SET counter_last_monday = 1, counter_data = '---
11583
+ counter_last_monday_before_today: 0
11584
+ counter_last_tuesday_before_today: 1
11585
+ counter_last_day: 1
11586
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11587
+ counter_last_wednesday_before_today: 1
11588
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11589
+ counter_last_2_days: 1
11590
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11591
+ WHERE id = 1
11592
+ 
11593
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11594
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11595
+ SQL (0.0ms) BEGIN
11596
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11597
+ SQL (0.0ms) COMMIT
11598
+ SQL (0.0ms) SHOW TABLES
11599
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11600
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11601
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11602
+ FROM counters
11603
+ 
11604
+ SQL (0.0ms)  UPDATE counters
11605
+ SET counter_last_monday = 2, counter_data = '---
11606
+ counter_last_monday_before_today: 0
11607
+ counter_last_tuesday_before_today: 2
11608
+ counter_last_day: 1
11609
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11610
+ counter_last_wednesday_before_today: 2
11611
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11612
+ counter_last_2_days: 1
11613
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11614
+ WHERE id = 1
11615
+ 
11616
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11617
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11618
+ SQL (0.0ms) BEGIN
11619
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11620
+ SQL (0.0ms) COMMIT
11621
+ SQL (0.0ms) SHOW TABLES
11622
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11623
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11624
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11625
+ FROM counters
11626
+ 
11627
+ SQL (0.0ms)  UPDATE counters
11628
+ SET counter_last_monday = 2, counter_data = '---
11629
+ counter_last_monday_before_today: 3
11630
+ counter_last_tuesday_before_today: 2
11631
+ counter_last_day: 3
11632
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11633
+ counter_last_wednesday_before_today: 3
11634
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11635
+ counter_last_2_days: 1
11636
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11637
+ WHERE id = 1
11638
+ 
11639
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11640
+ Counter Load (3.1ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11641
+ SQL (0.2ms) BEGIN
11642
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11643
+ SQL (0.6ms) COMMIT
11644
+ SQL (0.0ms) SHOW TABLES
11645
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11646
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11647
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11648
+ FROM counters
11649
+ 
11650
+ SQL (0.0ms)  UPDATE counters
11651
+ SET counter_last_monday = 2, counter_data = '---
11652
+ counter_last_monday_before_today: 4
11653
+ counter_last_tuesday_before_today: 4
11654
+ counter_last_day: 4
11655
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11656
+ counter_last_wednesday_before_today: 4
11657
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11658
+ counter_last_2_days: 4
11659
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11660
+ WHERE id = 1
11661
+ 
11662
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11663
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11664
+ SQL (0.3ms) SHOW TABLES
11665
+ SQL (0.2ms) SELECT version FROM schema_migrations
11666
+ SQL (0.2ms) SHOW TABLES
11667
+ SQL (0.1ms) SELECT version FROM schema_migrations
11668
+ Migrating to Counters (1)
11669
+ SQL (0.2ms) SHOW TABLES
11670
+ SQL (0.1ms) SELECT version FROM schema_migrations
11671
+ SQL (0.2ms) SHOW TABLES
11672
+ SQL (0.1ms) SELECT version FROM schema_migrations
11673
+ Migrating to Counters (1)
11674
+ SQL (10.5ms) DROP TABLE `counters`
11675
+ SQL (1.3ms) DELETE FROM schema_migrations WHERE version = '1'
11676
+ SQL (0.3ms) SHOW TABLES
11677
+ SQL (0.2ms) SELECT version FROM schema_migrations
11678
+ SQL (0.2ms) SHOW TABLES
11679
+ SQL (0.1ms) SELECT version FROM schema_migrations
11680
+ Migrating to Counters (1)
11681
+ SQL (58.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
11682
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
11683
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11684
+ SQL (0.0ms) BEGIN
11685
+ 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)
11686
+ SQL (0.0ms) COMMIT
11687
+ SQL (0.0ms) SHOW TABLES
11688
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11689
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11690
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11691
+ FROM counters
11692
+ 
11693
+ SQL (0.0ms)  UPDATE counters
11694
+ SET counter_last_monday = 1, counter_data = '---
11695
+ counter_last_monday_before_today: 0
11696
+ counter_last_tuesday_before_today: 1
11697
+ counter_last_day: 1
11698
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11699
+ counter_last_wednesday_before_today: 1
11700
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11701
+ counter_last_2_days: 1
11702
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11703
+ WHERE id = 1
11704
+ 
11705
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11706
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11707
+ SQL (0.0ms) BEGIN
11708
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11709
+ SQL (0.0ms) COMMIT
11710
+ SQL (0.0ms) SHOW TABLES
11711
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11712
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11713
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11714
+ FROM counters
11715
+ 
11716
+ SQL (0.0ms)  UPDATE counters
11717
+ SET counter_last_monday = 2, counter_data = '---
11718
+ counter_last_monday_before_today: 0
11719
+ counter_last_tuesday_before_today: 2
11720
+ counter_last_day: 1
11721
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11722
+ counter_last_wednesday_before_today: 2
11723
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11724
+ counter_last_2_days: 1
11725
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11726
+ WHERE id = 1
11727
+ 
11728
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11729
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11730
+ SQL (0.0ms) BEGIN
11731
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11732
+ SQL (0.0ms) COMMIT
11733
+ SQL (0.0ms) SHOW TABLES
11734
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11735
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11736
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11737
+ FROM counters
11738
+ 
11739
+ SQL (0.0ms)  UPDATE counters
11740
+ SET counter_last_monday = 2, counter_data = '---
11741
+ counter_last_monday_before_today: 3
11742
+ counter_last_tuesday_before_today: 2
11743
+ counter_last_day: 3
11744
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11745
+ counter_last_wednesday_before_today: 3
11746
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11747
+ counter_last_2_days: 1
11748
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11749
+ WHERE id = 1
11750
+ 
11751
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11752
+ Counter Load (7.5ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11753
+ SQL (0.1ms) BEGIN
11754
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11755
+ SQL (0.5ms) COMMIT
11756
+ SQL (0.0ms) SHOW TABLES
11757
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11758
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11759
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11760
+ FROM counters
11761
+ 
11762
+ SQL (0.0ms)  UPDATE counters
11763
+ SET counter_last_monday = 2, counter_data = '---
11764
+ counter_last_monday_before_today: 4
11765
+ counter_last_tuesday_before_today: 4
11766
+ counter_last_day: 4
11767
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11768
+ counter_last_wednesday_before_today: 4
11769
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11770
+ counter_last_2_days: 4
11771
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11772
+ WHERE id = 1
11773
+ 
11774
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11775
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
11776
+ SQL (0.3ms) SHOW TABLES
11777
+ SQL (0.2ms) SELECT version FROM schema_migrations
11778
+ SQL (0.2ms) SHOW TABLES
11779
+ SQL (0.1ms) SELECT version FROM schema_migrations
11780
+ Migrating to Counters (1)
11781
+ SQL (0.2ms) SHOW TABLES
11782
+ SQL (0.1ms) SELECT version FROM schema_migrations
11783
+ SQL (0.2ms) SHOW TABLES
11784
+ SQL (0.1ms) SELECT version FROM schema_migrations
11785
+ Migrating to Counters (1)
11786
+ SQL (10.5ms) DROP TABLE `counters`
11787
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
11788
+ SQL (0.2ms) SHOW TABLES
11789
+ SQL (0.1ms) SELECT version FROM schema_migrations
11790
+ SQL (0.2ms) SHOW TABLES
11791
+ SQL (0.1ms) SELECT version FROM schema_migrations
11792
+ Migrating to Counters (1)
11793
+ SQL (55.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
11794
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
11795
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11796
+ SQL (0.0ms) BEGIN
11797
+ 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)
11798
+ SQL (0.0ms) COMMIT
11799
+ SQL (0.0ms) SHOW TABLES
11800
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11801
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11802
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11803
+ FROM counters
11804
+ 
11805
+ SQL (0.0ms)  UPDATE counters
11806
+ SET counter_last_monday = 1, counter_data = '---
11807
+ counter_last_monday_before_today: 0
11808
+ counter_last_tuesday_before_today: 1
11809
+ counter_last_day: 1
11810
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11811
+ counter_last_wednesday_before_today: 1
11812
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11813
+ counter_last_2_days: 1
11814
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11815
+ WHERE id = 1
11816
+ 
11817
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11818
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11819
+ SQL (0.0ms) BEGIN
11820
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11821
+ SQL (0.0ms) COMMIT
11822
+ SQL (0.0ms) SHOW TABLES
11823
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11824
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11825
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11826
+ FROM counters
11827
+ 
11828
+ SQL (0.0ms)  UPDATE counters
11829
+ SET counter_last_monday = 2, counter_data = '---
11830
+ counter_last_monday_before_today: 0
11831
+ counter_last_tuesday_before_today: 2
11832
+ counter_last_day: 1
11833
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11834
+ counter_last_wednesday_before_today: 2
11835
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11836
+ counter_last_2_days: 1
11837
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11838
+ WHERE id = 1
11839
+ 
11840
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11841
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11842
+ SQL (0.0ms) BEGIN
11843
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11844
+ SQL (0.0ms) COMMIT
11845
+ SQL (0.0ms) SHOW TABLES
11846
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11847
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11848
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11849
+ FROM counters
11850
+ 
11851
+ SQL (0.0ms)  UPDATE counters
11852
+ SET counter_last_monday = 2, counter_data = '---
11853
+ counter_last_monday_before_today: 3
11854
+ counter_last_tuesday_before_today: 2
11855
+ counter_last_day: 3
11856
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11857
+ counter_last_wednesday_before_today: 3
11858
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11859
+ counter_last_2_days: 1
11860
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11861
+ WHERE id = 1
11862
+ 
11863
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11864
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11865
+ SQL (0.2ms) BEGIN
11866
+ Counter Update (2.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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11867
+ SQL (0.6ms) COMMIT
11868
+ SQL (0.0ms) SHOW TABLES
11869
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11870
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11871
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11872
+ FROM counters
11873
+ 
11874
+ SQL (0.0ms)  UPDATE counters
11875
+ SET counter_last_monday = 2, counter_data = '---
11876
+ counter_last_monday_before_today: 4
11877
+ counter_last_tuesday_before_today: 4
11878
+ counter_last_day: 4
11879
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11880
+ counter_last_wednesday_before_today: 4
11881
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11882
+ counter_last_2_days: 4
11883
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11884
+ WHERE id = 1
11885
+ 
11886
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11887
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
11888
+ SQL (0.3ms) SHOW TABLES
11889
+ SQL (0.2ms) SELECT version FROM schema_migrations
11890
+ SQL (0.2ms) SHOW TABLES
11891
+ SQL (0.1ms) SELECT version FROM schema_migrations
11892
+ Migrating to Counters (1)
11893
+ SQL (0.2ms) SHOW TABLES
11894
+ SQL (0.1ms) SELECT version FROM schema_migrations
11895
+ SQL (0.2ms) SHOW TABLES
11896
+ SQL (0.1ms) SELECT version FROM schema_migrations
11897
+ Migrating to Counters (1)
11898
+ SQL (37.4ms) DROP TABLE `counters`
11899
+ SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '1'
11900
+ SQL (0.5ms) SHOW TABLES
11901
+ SQL (0.3ms) SELECT version FROM schema_migrations
11902
+ SQL (0.4ms) SHOW TABLES
11903
+ SQL (0.2ms) SELECT version FROM schema_migrations
11904
+ Migrating to Counters (1)
11905
+ SQL (2.7ms) 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
11906
+ SQL (1.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
11907
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
11908
+ SQL (0.0ms) BEGIN
11909
+ 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)
11910
+ SQL (0.0ms) COMMIT
11911
+ SQL (0.0ms) SHOW TABLES
11912
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11913
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11914
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11915
+ FROM counters
11916
+ 
11917
+ SQL (0.0ms)  UPDATE counters
11918
+ SET counter_last_monday = 1, counter_data = '---
11919
+ counter_last_monday_before_today: 0
11920
+ counter_last_tuesday_before_today: 1
11921
+ counter_last_day: 1
11922
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11923
+ counter_last_wednesday_before_today: 1
11924
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11925
+ counter_last_2_days: 1
11926
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
11927
+ WHERE id = 1
11928
+ 
11929
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11930
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11931
+ SQL (0.0ms) BEGIN
11932
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
11933
+ SQL (0.0ms) COMMIT
11934
+ SQL (0.0ms) SHOW TABLES
11935
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11936
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11937
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11938
+ FROM counters
11939
+ 
11940
+ SQL (0.0ms)  UPDATE counters
11941
+ SET counter_last_monday = 2, counter_data = '---
11942
+ counter_last_monday_before_today: 0
11943
+ counter_last_tuesday_before_today: 2
11944
+ counter_last_day: 1
11945
+ counter_last_day_at: 2010-06-14 00:00:00 Z
11946
+ counter_last_wednesday_before_today: 2
11947
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11948
+ counter_last_2_days: 1
11949
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
11950
+ WHERE id = 1
11951
+ 
11952
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11953
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11954
+ SQL (0.0ms) BEGIN
11955
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
11956
+ SQL (0.0ms) COMMIT
11957
+ SQL (0.0ms) SHOW TABLES
11958
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11959
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11960
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11961
+ FROM counters
11962
+ 
11963
+ SQL (0.0ms)  UPDATE counters
11964
+ SET counter_last_monday = 2, counter_data = '---
11965
+ counter_last_monday_before_today: 3
11966
+ counter_last_tuesday_before_today: 2
11967
+ counter_last_day: 3
11968
+ counter_last_day_at: 2010-06-15 00:00:00 Z
11969
+ counter_last_wednesday_before_today: 3
11970
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
11971
+ counter_last_2_days: 1
11972
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
11973
+ WHERE id = 1
11974
+ 
11975
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11976
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11977
+ SQL (0.1ms) BEGIN
11978
+ Counter Update (0.2ms) 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
11979
+ SQL (0.5ms) COMMIT
11980
+ SQL (0.0ms) SHOW TABLES
11981
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
11982
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
11983
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
11984
+ FROM counters
11985
+ 
11986
+ SQL (0.0ms)  UPDATE counters
11987
+ SET counter_last_monday = 2, counter_data = '---
11988
+ counter_last_monday_before_today: 4
11989
+ counter_last_tuesday_before_today: 4
11990
+ counter_last_day: 4
11991
+ counter_last_day_at: 2010-06-19 00:00:00 Z
11992
+ counter_last_wednesday_before_today: 4
11993
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
11994
+ counter_last_2_days: 4
11995
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
11996
+ WHERE id = 1
11997
+ 
11998
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
11999
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
12000
+ SQL (0.3ms) SHOW TABLES
12001
+ SQL (0.2ms) SELECT version FROM schema_migrations
12002
+ SQL (0.2ms) SHOW TABLES
12003
+ SQL (0.1ms) SELECT version FROM schema_migrations
12004
+ Migrating to Counters (1)
12005
+ SQL (0.2ms) SHOW TABLES
12006
+ SQL (0.1ms) SELECT version FROM schema_migrations
12007
+ SQL (0.2ms) SHOW TABLES
12008
+ SQL (0.1ms) SELECT version FROM schema_migrations
12009
+ Migrating to Counters (1)
12010
+ SQL (10.5ms) DROP TABLE `counters`
12011
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
12012
+ SQL (0.2ms) SHOW TABLES
12013
+ SQL (0.1ms) SELECT version FROM schema_migrations
12014
+ SQL (0.2ms) SHOW TABLES
12015
+ SQL (0.1ms) SELECT version FROM schema_migrations
12016
+ Migrating to Counters (1)
12017
+ SQL (38.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
12018
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
12019
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12020
+ SQL (0.0ms) BEGIN
12021
+ 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)
12022
+ SQL (0.0ms) COMMIT
12023
+ SQL (0.0ms) SHOW TABLES
12024
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12025
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12026
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12027
+ FROM counters
12028
+ 
12029
+ SQL (0.0ms)  UPDATE counters
12030
+ SET counter_last_monday = 1, counter_data = '---
12031
+ counter_last_monday_before_today: 0
12032
+ counter_last_tuesday_before_today: 1
12033
+ counter_last_day: 1
12034
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12035
+ counter_last_wednesday_before_today: 1
12036
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12037
+ counter_last_2_days: 1
12038
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12039
+ WHERE id = 1
12040
+ 
12041
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12042
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12043
+ SQL (0.0ms) BEGIN
12044
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12045
+ SQL (0.0ms) COMMIT
12046
+ SQL (0.0ms) SHOW TABLES
12047
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12048
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12049
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12050
+ FROM counters
12051
+ 
12052
+ SQL (0.0ms)  UPDATE counters
12053
+ SET counter_last_monday = 2, counter_data = '---
12054
+ counter_last_monday_before_today: 0
12055
+ counter_last_tuesday_before_today: 2
12056
+ counter_last_day: 1
12057
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12058
+ counter_last_wednesday_before_today: 2
12059
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12060
+ counter_last_2_days: 1
12061
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12062
+ WHERE id = 1
12063
+ 
12064
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12065
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12066
+ SQL (0.0ms) BEGIN
12067
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12068
+ SQL (0.0ms) COMMIT
12069
+ SQL (0.0ms) SHOW TABLES
12070
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12071
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12072
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12073
+ FROM counters
12074
+ 
12075
+ SQL (0.0ms)  UPDATE counters
12076
+ SET counter_last_monday = 2, counter_data = '---
12077
+ counter_last_monday_before_today: 3
12078
+ counter_last_tuesday_before_today: 2
12079
+ counter_last_day: 3
12080
+ counter_last_day_at: 2010-06-15 00:00:00 Z
12081
+ counter_last_wednesday_before_today: 3
12082
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12083
+ counter_last_2_days: 1
12084
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
12085
+ WHERE id = 1
12086
+ 
12087
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12088
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12089
+ SQL (0.1ms) BEGIN
12090
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12091
+ SQL (0.6ms) COMMIT
12092
+ SQL (0.0ms) SHOW TABLES
12093
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12094
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12095
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12096
+ FROM counters
12097
+ 
12098
+ SQL (0.0ms)  UPDATE counters
12099
+ SET counter_last_monday = 2, counter_data = '---
12100
+ counter_last_monday_before_today: 4
12101
+ counter_last_tuesday_before_today: 4
12102
+ counter_last_day: 4
12103
+ counter_last_day_at: 2010-06-19 00:00:00 Z
12104
+ counter_last_wednesday_before_today: 4
12105
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
12106
+ counter_last_2_days: 4
12107
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12108
+ WHERE id = 1
12109
+ 
12110
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12111
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
12112
+ SQL (0.3ms) SHOW TABLES
12113
+ SQL (0.2ms) SELECT version FROM schema_migrations
12114
+ SQL (0.2ms) SHOW TABLES
12115
+ SQL (0.1ms) SELECT version FROM schema_migrations
12116
+ Migrating to Counters (1)
12117
+ SQL (0.2ms) SHOW TABLES
12118
+ SQL (0.1ms) SELECT version FROM schema_migrations
12119
+ SQL (0.2ms) SHOW TABLES
12120
+ SQL (0.1ms) SELECT version FROM schema_migrations
12121
+ Migrating to Counters (1)
12122
+ SQL (39.5ms) DROP TABLE `counters`
12123
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
12124
+ SQL (0.2ms) SHOW TABLES
12125
+ SQL (0.1ms) SELECT version FROM schema_migrations
12126
+ SQL (0.2ms) SHOW TABLES
12127
+ SQL (0.1ms) SELECT version FROM schema_migrations
12128
+ Migrating to Counters (1)
12129
+ SQL (1.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
12130
+ SQL (0.4ms) INSERT INTO schema_migrations (version) VALUES ('1')
12131
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12132
+ SQL (0.0ms) BEGIN
12133
+ 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)
12134
+ SQL (0.0ms) COMMIT
12135
+ SQL (0.0ms) SHOW TABLES
12136
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12137
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12138
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12139
+ FROM counters
12140
+ 
12141
+ SQL (0.0ms)  UPDATE counters
12142
+ SET counter_last_monday = 1, counter_data = '---
12143
+ counter_last_monday_before_today: 0
12144
+ counter_last_tuesday_before_today: 1
12145
+ counter_last_day: 1
12146
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12147
+ counter_last_wednesday_before_today: 1
12148
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12149
+ counter_last_2_days: 1
12150
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12151
+ WHERE id = 1
12152
+ 
12153
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12154
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12155
+ SQL (0.0ms) BEGIN
12156
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12157
+ SQL (0.0ms) COMMIT
12158
+ SQL (0.0ms) SHOW TABLES
12159
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12160
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12161
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12162
+ FROM counters
12163
+ 
12164
+ SQL (0.0ms)  UPDATE counters
12165
+ SET counter_last_monday = 2, counter_data = '---
12166
+ counter_last_monday_before_today: 0
12167
+ counter_last_tuesday_before_today: 2
12168
+ counter_last_day: 1
12169
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12170
+ counter_last_wednesday_before_today: 2
12171
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12172
+ counter_last_2_days: 1
12173
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12174
+ WHERE id = 1
12175
+ 
12176
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12177
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12178
+ SQL (0.0ms) BEGIN
12179
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12180
+ SQL (0.0ms) COMMIT
12181
+ SQL (0.0ms) SHOW TABLES
12182
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12183
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12184
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12185
+ FROM counters
12186
+ 
12187
+ SQL (0.0ms)  UPDATE counters
12188
+ SET counter_last_monday = 2, counter_data = '---
12189
+ counter_last_monday_before_today: 3
12190
+ counter_last_tuesday_before_today: 2
12191
+ counter_last_day: 3
12192
+ counter_last_day_at: 2010-06-15 00:00:00 Z
12193
+ counter_last_wednesday_before_today: 3
12194
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12195
+ counter_last_2_days: 1
12196
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
12197
+ WHERE id = 1
12198
+ 
12199
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12200
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12201
+ SQL (0.1ms) BEGIN
12202
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12203
+ SQL (0.7ms) COMMIT
12204
+ SQL (0.0ms) SHOW TABLES
12205
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12206
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12207
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12208
+ FROM counters
12209
+ 
12210
+ SQL (0.0ms)  UPDATE counters
12211
+ SET counter_last_monday = 2, counter_data = '---
12212
+ counter_last_monday_before_today: 4
12213
+ counter_last_tuesday_before_today: 4
12214
+ counter_last_day: 4
12215
+ counter_last_day_at: 2010-06-19 00:00:00 Z
12216
+ counter_last_wednesday_before_today: 4
12217
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
12218
+ counter_last_2_days: 4
12219
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12220
+ WHERE id = 1
12221
+ 
12222
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12223
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
12224
+ SQL (0.4ms) SHOW TABLES
12225
+ SQL (0.2ms) SELECT version FROM schema_migrations
12226
+ SQL (0.2ms) SHOW TABLES
12227
+ SQL (0.1ms) SELECT version FROM schema_migrations
12228
+ Migrating to Counters (1)
12229
+ SQL (0.2ms) SHOW TABLES
12230
+ SQL (0.1ms) SELECT version FROM schema_migrations
12231
+ SQL (0.2ms) SHOW TABLES
12232
+ SQL (0.1ms) SELECT version FROM schema_migrations
12233
+ Migrating to Counters (1)
12234
+ SQL (10.5ms) DROP TABLE `counters`
12235
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
12236
+ SQL (0.2ms) SHOW TABLES
12237
+ SQL (0.1ms) SELECT version FROM schema_migrations
12238
+ SQL (0.2ms) SHOW TABLES
12239
+ SQL (0.1ms) SELECT version FROM schema_migrations
12240
+ Migrating to Counters (1)
12241
+ SQL (39.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
12242
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
12243
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12244
+ SQL (0.0ms) BEGIN
12245
+ 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)
12246
+ SQL (0.0ms) COMMIT
12247
+ SQL (0.0ms) SHOW TABLES
12248
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12249
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12250
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12251
+ FROM counters
12252
+ 
12253
+ SQL (0.0ms)  UPDATE counters
12254
+ SET counter_last_monday = 1, counter_data = '---
12255
+ counter_last_monday_before_today: 0
12256
+ counter_last_tuesday_before_today: 1
12257
+ counter_last_day: 1
12258
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12259
+ counter_last_wednesday_before_today: 1
12260
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12261
+ counter_last_2_days: 1
12262
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12263
+ WHERE id = 1
12264
+ 
12265
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12266
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12267
+ SQL (0.0ms) BEGIN
12268
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12269
+ SQL (0.0ms) COMMIT
12270
+ SQL (0.0ms) SHOW TABLES
12271
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12272
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12273
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12274
+ FROM counters
12275
+ 
12276
+ SQL (0.0ms)  UPDATE counters
12277
+ SET counter_last_monday = 2, counter_data = '---
12278
+ counter_last_monday_before_today: 0
12279
+ counter_last_tuesday_before_today: 2
12280
+ counter_last_day: 1
12281
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12282
+ counter_last_wednesday_before_today: 2
12283
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12284
+ counter_last_2_days: 1
12285
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12286
+ WHERE id = 1
12287
+ 
12288
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12289
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12290
+ SQL (0.0ms) BEGIN
12291
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12292
+ SQL (0.0ms) COMMIT
12293
+ SQL (0.0ms) SHOW TABLES
12294
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12295
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12296
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12297
+ FROM counters
12298
+ 
12299
+ SQL (0.0ms)  UPDATE counters
12300
+ SET counter_last_monday = 2, counter_data = '---
12301
+ counter_last_monday_before_today: 3
12302
+ counter_last_tuesday_before_today: 2
12303
+ counter_last_day: 3
12304
+ counter_last_day_at: 2010-06-15 00:00:00 Z
12305
+ counter_last_wednesday_before_today: 3
12306
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12307
+ counter_last_2_days: 1
12308
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
12309
+ WHERE id = 1
12310
+ 
12311
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12312
+ Counter Load (0.3ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12313
+ SQL (0.1ms) BEGIN
12314
+ 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12315
+ SQL (0.5ms) COMMIT
12316
+ SQL (0.0ms) SHOW TABLES
12317
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12318
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12319
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12320
+ FROM counters
12321
+ 
12322
+ SQL (0.0ms)  UPDATE counters
12323
+ SET counter_last_monday = 2, counter_data = '---
12324
+ counter_last_monday_before_today: 4
12325
+ counter_last_tuesday_before_today: 4
12326
+ counter_last_day: 4
12327
+ counter_last_day_at: 2010-06-19 00:00:00 Z
12328
+ counter_last_wednesday_before_today: 4
12329
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
12330
+ counter_last_2_days: 4
12331
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12332
+ WHERE id = 1
12333
+ 
12334
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12335
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
12336
+ SQL (0.3ms) SHOW TABLES
12337
+ SQL (0.2ms) SELECT version FROM schema_migrations
12338
+ SQL (0.2ms) SHOW TABLES
12339
+ SQL (0.2ms) SELECT version FROM schema_migrations
12340
+ Migrating to Counters (1)
12341
+ SQL (0.2ms) SHOW TABLES
12342
+ SQL (0.1ms) SELECT version FROM schema_migrations
12343
+ SQL (0.2ms) SHOW TABLES
12344
+ SQL (0.1ms) SELECT version FROM schema_migrations
12345
+ Migrating to Counters (1)
12346
+ SQL (22.3ms) DROP TABLE `counters`
12347
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
12348
+ SQL (0.3ms) SHOW TABLES
12349
+ SQL (0.1ms) SELECT version FROM schema_migrations
12350
+ SQL (0.2ms) SHOW TABLES
12351
+ SQL (0.1ms) SELECT version FROM schema_migrations
12352
+ Migrating to Counters (1)
12353
+ SQL (1.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
12354
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
12355
+ Counter Columns (0.0ms) SHOW FIELDS FROM `counters`
12356
+ SQL (0.0ms) BEGIN
12357
+ 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)
12358
+ SQL (0.0ms) COMMIT
12359
+ SQL (0.0ms) SHOW TABLES
12360
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12361
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12362
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12363
+ FROM counters
12364
+ 
12365
+ SQL (0.0ms)  UPDATE counters
12366
+ SET counter_last_monday = 1, counter_data = '---
12367
+ counter_last_monday_before_today: 0
12368
+ counter_last_tuesday_before_today: 1
12369
+ counter_last_day: 1
12370
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12371
+ counter_last_wednesday_before_today: 1
12372
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12373
+ counter_last_2_days: 1
12374
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 0
12375
+ WHERE id = 1
12376
+ 
12377
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12378
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12379
+ SQL (0.0ms) BEGIN
12380
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 1\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 2 WHERE `id` = 1
12381
+ SQL (0.0ms) COMMIT
12382
+ SQL (0.0ms) SHOW TABLES
12383
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12384
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12385
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12386
+ FROM counters
12387
+ 
12388
+ SQL (0.0ms)  UPDATE counters
12389
+ SET counter_last_monday = 2, counter_data = '---
12390
+ counter_last_monday_before_today: 0
12391
+ counter_last_tuesday_before_today: 2
12392
+ counter_last_day: 1
12393
+ counter_last_day_at: 2010-06-14 00:00:00 Z
12394
+ counter_last_wednesday_before_today: 2
12395
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12396
+ counter_last_2_days: 1
12397
+ ', counter_last_day = 1, counter_last_wednesday = 0, counter_last_tuesday = 0, counter_last_2_days = 1
12398
+ WHERE id = 1
12399
+ 
12400
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12401
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12402
+ SQL (0.0ms) BEGIN
12403
+ 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-14 00:00:00 Z\ncounter_last_wednesday_before_today: 2\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 3 WHERE `id` = 1
12404
+ SQL (0.0ms) COMMIT
12405
+ SQL (0.0ms) SHOW TABLES
12406
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12407
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12408
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12409
+ FROM counters
12410
+ 
12411
+ SQL (0.0ms)  UPDATE counters
12412
+ SET counter_last_monday = 2, counter_data = '---
12413
+ counter_last_monday_before_today: 3
12414
+ counter_last_tuesday_before_today: 2
12415
+ counter_last_day: 3
12416
+ counter_last_day_at: 2010-06-15 00:00:00 Z
12417
+ counter_last_wednesday_before_today: 3
12418
+ counter_last_2_days_at: 2010-06-14 00:00:00 Z
12419
+ counter_last_2_days: 1
12420
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 2
12421
+ WHERE id = 1
12422
+ 
12423
+ Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12424
+ Counter Load (0.2ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1
12425
+ SQL (0.1ms) BEGIN
12426
+ Counter Update (0.2ms) 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-15 00:00:00 Z\ncounter_last_wednesday_before_today: 3\ncounter_last_2_days: 1\ncounter_last_2_days_at: 2010-06-14 00:00:00 Z\n', `counter` = 4 WHERE `id` = 1
12427
+ SQL (0.7ms) COMMIT
12428
+ SQL (0.0ms) SHOW TABLES
12429
+ SQL (0.0ms) SHOW FIELDS FROM `counters`
12430
+ SQL (0.0ms) SHOW FIELDS FROM `schema_migrations`
12431
+ SQL (0.0ms)  SELECT id, counter, counter_data, counter_last_day, counter_last_2_days, counter_last_monday, counter_last_tuesday, counter_last_wednesday
12432
+ FROM counters
12433
+ 
12434
+ SQL (0.0ms)  UPDATE counters
12435
+ SET counter_last_monday = 2, counter_data = '---
12436
+ counter_last_monday_before_today: 4
12437
+ counter_last_tuesday_before_today: 4
12438
+ counter_last_day: 4
12439
+ counter_last_day_at: 2010-06-19 00:00:00 Z
12440
+ counter_last_wednesday_before_today: 4
12441
+ counter_last_2_days_at: 2010-06-19 00:00:00 Z
12442
+ counter_last_2_days: 4
12443
+ ', counter_last_day = 0, counter_last_wednesday = 0, counter_last_tuesday = 1, counter_last_2_days = 0
12444
+ WHERE id = 1
10562
12445
  
10563
12446
  Counter Load (0.0ms) SELECT * FROM `counters` ORDER BY counters.id DESC LIMIT 1