From 5d67f289df4a68e35ad7e0af3c601c7db0dc7586 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Feb 2017 19:24:34 +0100 Subject: Server: add unique to unique indexes --- server/models/pod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/models/pod.js') diff --git a/server/models/pod.js b/server/models/pod.js index 6ae4b0999..575ebbc61 100644 --- a/server/models/pod.js +++ b/server/models/pod.js @@ -41,7 +41,8 @@ module.exports = function (sequelize, DataTypes) { { indexes: [ { - fields: [ 'host' ] + fields: [ 'host' ], + unique: true }, { fields: [ 'score' ] -- cgit v1.2.3