add missing indices on crawls

This commit is contained in:
Tao Bror Bojlén 2019-08-10 15:35:20 +03:00
parent 992ed6b9bb
commit 144a6e842f
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
2 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Added missing indices on crawls and crawl_interactions tables.
### Security
## [2.6.0 - 2019-08-10]

View file

@ -0,0 +1,9 @@
defmodule Backend.Repo.Migrations.AddCrawlsIndex do
use Ecto.Migration
def change do
create index(:crawls, [:instance_domain])
create index(:crawl_interactions, [:source_domain])
create index(:crawl_interactions, [:target_domain])
end
end