diff --git a/libs/database/preQueries.js b/libs/database/preQueries.js index 7c3ba7a9..0726f896 100644 --- a/libs/database/preQueries.js +++ b/libs/database/preQueries.js @@ -46,7 +46,7 @@ module.exports = function(s,config){ {name: 'ke', length: 50, type: 'string'}, {name: 'mid', length: 100, type: 'string'}, {name: 'name', length: 100, type: 'string'}, - {name: 'size', type: 'integer'}, + {name: 'size', type: 'bigint'}, {name: 'details', type: 'text'}, {name: 'status', type: 'integer', length: 1, defaultTo: 0}, {name: 'archive', type: 'tinyint', length: 1, defaultTo: 0}, @@ -58,7 +58,7 @@ module.exports = function(s,config){ {name: 'ke', length: 50, type: 'string'}, {name: 'mid', length: 100, type: 'string'}, {name: 'ext', type: 'string', length: 10, defaultTo: 'mp4'}, - {name: 'size', type: 'integer'}, + {name: 'size', type: 'bigint'}, {name: 'status', type: 'tinyint', length: 1, defaultTo: 0}, {name: 'archive', type: 'tinyint', length: 1, defaultTo: 0}, {name: 'objects', length: 510, type: 'string'}, @@ -75,7 +75,7 @@ module.exports = function(s,config){ {name: 'ke', length: 50, type: 'string'}, {name: 'mid', length: 100, type: 'string'}, {name: 'href', length: 50, type: 'text'}, - {name: 'size', type: 'integer'}, + {name: 'size', type: 'bigint'}, {name: 'details', type: 'text'}, {name: 'status', type: 'integer', length: 1, defaultTo: 0}, {name: 'archive', type: 'tinyint', length: 1, defaultTo: 0}, @@ -112,7 +112,7 @@ module.exports = function(s,config){ {name: 'mid', length: 100, type: 'string'}, {name: 'filename', length: 50, type: 'string'}, {name: 'time', type: 'timestamp', defaultTo: currentTimestamp()}, - {name: 'size', type: 'integer'}, + {name: 'size', type: 'bigint'}, {name: 'archive', length: 1, type: 'tinyint', defaultTo: 0}, {name: 'saveDir', length: 255, type: 'string'}, {name: 'details', type: 'text'}, @@ -127,7 +127,7 @@ module.exports = function(s,config){ {name: 'href', type: 'text'}, {name: 'filename', length: 50, type: 'string'}, {name: 'time', type: 'timestamp', defaultTo: currentTimestamp()}, - {name: 'size', type: 'integer'}, + {name: 'size', type: 'bigint'}, {name: 'details', type: 'text'}, ]); await createTable('Logs',[