mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Add more indexes
This commit is contained in:
parent
8e64a3c12c
commit
dcb224bf31
1 changed files with 11 additions and 0 deletions
11
migrations/010_add_more_indexes.rb
Normal file
11
migrations/010_add_more_indexes.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_index :sites, :created_at
|
||||
DB.add_index :sites, :hits
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_index :sites, :created_at
|
||||
DB.drop_index :sites, :hits
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue