From c5cd9e53d7413ce960a2170eedb466073175bf80 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 8 Jun 2017 12:42:19 +0200 Subject: import 2.7.0 table changes --- models/player.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'models/player.js') diff --git a/models/player.js b/models/player.js index 3f0565b..ba20381 100644 --- a/models/player.js +++ b/models/player.js @@ -9,7 +9,7 @@ module.exports = function(sequelize, DataTypes) { autoIncrement: true }, shard_id: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(5), allowNull: false }, api_id: { @@ -19,7 +19,8 @@ module.exports = function(sequelize, DataTypes) { }, name: { type: DataTypes.STRING(191), - allowNull: false + allowNull: false, + defaultValue: "" }, last_match_created_date: { type: DataTypes.TIME, @@ -48,7 +49,7 @@ module.exports = function(sequelize, DataTypes) { skill_tier: { type: DataTypes.INTEGER(6), allowNull: true - }/*, + }, trueskill_mu: { type: "DOUBLE", allowNull: true @@ -56,7 +57,11 @@ module.exports = function(sequelize, DataTypes) { trueskill_sigma: { type: "DOUBLE", allowNull: true - }*/ + }, + elo: { + type: "DOUBLE", + allowNull: true + } }, { tableName: 'player', timestamps: false, -- cgit v1.3.1