mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Add indexes for timestamp to stats
This commit is contained in:
parent
fb31f2de57
commit
964b4493f8
1 changed files with 13 additions and 0 deletions
13
migrations/069_add_stat_created_indexes.rb
Normal file
13
migrations/069_add_stat_created_indexes.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
%i{stat_referrers stat_locations stat_paths} do |t|
|
||||
DB.add_index t, :created_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
%i{stat_referrers stat_locations stat_paths} do |t|
|
||||
DB.drop_index t, :created_at
|
||||
end
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue