mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
bigints for daily stats
This commit is contained in:
parent
2bac42078c
commit
7786320a94
1 changed files with 19 additions and 0 deletions
19
migrations/082_daily_stats_bigint.rb
Normal file
19
migrations/082_daily_stats_bigint.rb
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue