diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 11:56:28 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 12:13:33 +0100 |
commit | 5804c0db337ecf492fc61b98a3de7b730a0d8ce3 (patch) | |
tree | 83c0e8d8f10ec0f9ca269624feaba48970a7a0e3 /server/models/user.js | |
parent | c1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de (diff) | |
download | PeerTube-5804c0db337ecf492fc61b98a3de7b730a0d8ce3.tar.gz PeerTube-5804c0db337ecf492fc61b98a3de7b730a0d8ce3.tar.zst PeerTube-5804c0db337ecf492fc61b98a3de7b730a0d8ce3.zip |
Server: fix migration scripts
Diffstat (limited to 'server/models/user.js')
-rw-r--r-- | server/models/user.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/user.js b/server/models/user.js index 35a98dd6b..24e710fa7 100644 --- a/server/models/user.js +++ b/server/models/user.js | |||
@@ -33,7 +33,7 @@ module.exports = function (sequelize, DataTypes) { | |||
33 | } | 33 | } |
34 | }, | 34 | }, |
35 | email: { | 35 | email: { |
36 | type: DataTypes.STRING, | 36 | type: DataTypes.STRING(400), |
37 | allowNull: false, | 37 | allowNull: false, |
38 | validate: { | 38 | validate: { |
39 | isEmail: true | 39 | isEmail: true |