Skip to content

Commit

Permalink
fix: specs for redis_counters 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Napolskih committed Nov 13, 2017
1 parent 5641228 commit bd94a94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/internal/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
t.hstore :params
end

add_index :stats_by_days, [:record_id, :column_id, :date], unique: true
add_index :stats_by_days, [:record_id, :column_id, :date, :params], unique: true, name: :uq

create_table :stats_totals do |t|
t.integer :record_id, null: false
Expand All @@ -37,7 +37,7 @@
t.hstore :params
end

add_index :stats_totals, [:record_id, :column_id], unique: true
add_index :stats_totals, [:record_id, :column_id, :params], unique: true

create_table :stats_agg_totals do |t|
t.integer :record_id, null: false
Expand Down
1 change: 1 addition & 0 deletions spec/lib/redis_counters/dumpers/engine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
key_fields :record_id, :column_id, :params
increment_fields :hits
map :hits, to: :value
map :params, to: "COALESCE(params, '')"
end

destination do
Expand Down

0 comments on commit bd94a94

Please sign in to comment.