2015-06-17 14:20:43 -07:00
|
|
|
Sequel.migration do
|
|
|
|
up {
|
|
|
|
DB['create index stat_referrers_hash_multi on stat_referrers (site_id, md5(url))'].first
|
2022-11-05 12:46:43 -05:00
|
|
|
#DB.add_index :stat_locations, :site_id
|
|
|
|
#DB.add_index :stat_paths, :site_id
|
2015-06-17 14:20:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
down {
|
|
|
|
DB['drop index stat_referrers_hash_multi'].first
|
2022-11-05 12:46:43 -05:00
|
|
|
#DB.drop_index :stat_locations, :site_id
|
|
|
|
#DB.drop_index :stat_paths, :site_id
|
2015-06-17 14:20:43 -07:00
|
|
|
}
|
|
|
|
end
|