mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add missing indexes
This commit is contained in:
parent
50d0e9d4db
commit
c62e8fe12c
1 changed files with 10 additions and 0 deletions
10
migrations/035_add_missing_indexes.rb
Normal file
10
migrations/035_add_missing_indexes.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
Sequel.migration do
|
||||
change do
|
||||
alter_table(:events) { add_index :created_at }
|
||||
alter_table(:sites) { add_index :updated_at }
|
||||
alter_table(:comment_likes) { add_index :comment_id }
|
||||
alter_table(:comment_likes) { add_index :actioning_site_id }
|
||||
alter_table(:sites_tags) { add_index :tag_id }
|
||||
alter_table(:tags) { add_index :name }
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue