mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
bigint for views and hits
This commit is contained in:
parent
7d8ad81fd0
commit
2bac42078c
1 changed files with 15 additions and 0 deletions
15
migrations/081_stats_bigint.rb
Normal file
15
migrations/081_stats_bigint.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
alter_table(:stats) do
|
||||
set_column_type :hits, Bignum
|
||||
set_column_type :views, Bignum
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
alter_table(:stats) do
|
||||
set_column_type :hits, Integer
|
||||
set_column_type :views, Integer
|
||||
end
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue