]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add index to startDate in video view table
authorChocobozzz <me@florianbigard.com>
Tue, 4 Sep 2018 13:25:02 +0000 (15:25 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 4 Sep 2018 13:25:02 +0000 (15:25 +0200)
server/models/video/video-views.ts

index 90ce671fd10857057ccfe506655469cbd0db6abf..fde5f7056a0182d1f7500f1747900eebd0ebacff 100644 (file)
@@ -7,6 +7,9 @@ import * as Sequelize from 'sequelize'
   indexes: [
     {
       fields: [ 'videoId' ]
+    },
+    {
+      fields: [ 'startDate' ]
     }
   ]
 })