From 7786320a94ed50c7e402f8c7e8587c75258ecc3e Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sat, 26 Dec 2015 16:13:22 -0600 Subject: [PATCH] bigints for daily stats --- migrations/082_daily_stats_bigint.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 migrations/082_daily_stats_bigint.rb diff --git a/migrations/082_daily_stats_bigint.rb b/migrations/082_daily_stats_bigint.rb new file mode 100644 index 00000000..5cefebed --- /dev/null +++ b/migrations/082_daily_stats_bigint.rb @@ -0,0 +1,19 @@ +Sequel.migration do + up { + alter_table(:daily_site_stats) do + set_column_type :hits, Bignum + set_column_type :views, Bignum + set_column_type :bandwidth, Bignum + set_column_type :site_updates, Bignum + end + } + + down { + alter_table(:daily_site_stats) do + set_column_type :hits, Integer + set_column_type :views, Integer + set_column_type :bandwidth, Integer + set_column_type :site_updates, Integer + end + } +end