mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
site views, hits needs bigint
This commit is contained in:
parent
8fdc30a88c
commit
d850559f36
1 changed files with 15 additions and 0 deletions
15
migrations/125_sites_stats_bigint.rb
Normal file
15
migrations/125_sites_stats_bigint.rb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Sequel.migration do
|
||||||
|
up {
|
||||||
|
alter_table(:sites) do
|
||||||
|
set_column_type :hits, :bigint
|
||||||
|
set_column_type :views, :bigint
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
down {
|
||||||
|
alter_table(:sites) do
|
||||||
|
set_column_type :hits, Integer
|
||||||
|
set_column_type :views, Integer
|
||||||
|
end
|
||||||
|
}
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue