diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-04 15:25:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-04 15:25:02 +0200 |
commit | 0926af7acc130170feef43d5f6d39c68e479a033 (patch) | |
tree | 4939041ca1429b1fdd6d7b6266ee9ed9c8cbfff5 /server/models/video | |
parent | 1a893f9c704737e9e19d24cf9d9a7afb041302c3 (diff) | |
download | PeerTube-0926af7acc130170feef43d5f6d39c68e479a033.tar.gz PeerTube-0926af7acc130170feef43d5f6d39c68e479a033.tar.zst PeerTube-0926af7acc130170feef43d5f6d39c68e479a033.zip |
Add index to startDate in video view table
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-views.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-views.ts b/server/models/video/video-views.ts index 90ce671fd..fde5f7056 100644 --- a/server/models/video/video-views.ts +++ b/server/models/video/video-views.ts | |||
@@ -7,6 +7,9 @@ import * as Sequelize from 'sequelize' | |||
7 | indexes: [ | 7 | indexes: [ |
8 | { | 8 | { |
9 | fields: [ 'videoId' ] | 9 | fields: [ 'videoId' ] |
10 | }, | ||
11 | { | ||
12 | fields: [ 'startDate' ] | ||
10 | } | 13 | } |
11 | ] | 14 | ] |
12 | }) | 15 | }) |