Skip to content

Commit

Permalink
fix type bigint unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
ly-ue4-backend committed Jan 6, 2021
1 parent 6cc2180 commit f845828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema.js
Expand Up @@ -84,7 +84,7 @@ module.exports = class MysqlSchema extends Schema {
* @param {Mixed} value
*/
parseType(tinyType, value) {
if (tinyType === 'enum' || tinyType === 'set' || tinyType === 'bigint') return value;
if (tinyType === 'enum' || tinyType === 'set' || tinyType === 'bigint' || tinyType === 'bigint unsigned') return value;
if (tinyType.indexOf('int') > -1) return parseInt(value, 10) || 0;
if (['double', 'float', 'decimal'].indexOf(tinyType) > -1) return parseFloat(value, 10) || 0;
if (tinyType === 'bool') return value ? 1 : 0;
Expand Down

0 comments on commit f845828

Please sign in to comment.