mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add email and lower(email) sites index
This commit is contained in:
parent
86e188f29f
commit
3aea4e8333
2 changed files with 18 additions and 0 deletions
9
migrations/109_add_email_lowercase_index.rb
Normal file
9
migrations/109_add_email_lowercase_index.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB['CREATE INDEX sites_email_lower_index ON sites (LOWER(email))'].first
|
||||
}
|
||||
|
||||
down {
|
||||
DB['DROP INDEX sites_email_lower_index'].first
|
||||
}
|
||||
end
|
9
migrations/110_add_sites_email_index.rb
Normal file
9
migrations/110_add_sites_email_index.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_index :sites, :email
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_index :sites, :email
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue