git://repos.xcallymotion.com
/
motion.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Built motion from commit b33b832.|1.0.17
[motion.git]
/
server
/
models
/
tools_variable.js
diff --git
a/server/models/tools_variable.js
b/server/models/tools_variable.js
index
a874a6d
..
0989302
100644
(file)
--- a/
server/models/tools_variable.js
+++ b/
server/models/tools_variable.js
@@
-5,7
+5,7
@@
module.exports = function(sequelize, DataTypes) {
var Variable = sequelize.define('Variable', {
name: {
type: DataTypes.STRING,
- unique: true,
+ unique: 'name',
allowNull: false,
validate: {
notEmpty: true,