memoryLimit has to be BIGINT

This commit is contained in:
Johannes Zellner
2016-02-05 15:03:45 +01:00
parent 3fc9bde4f4
commit 2d60901b6e
2 changed files with 2 additions and 2 deletions
@@ -1,7 +1,7 @@
dbm = dbm || require('db-migrate');
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN memoryLimit INTEGER DEFAULT 0', function (error) {
db.runSql('ALTER TABLE apps ADD COLUMN memoryLimit BIGINT DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
+1 -1
View File
@@ -64,7 +64,7 @@ CREATE TABLE IF NOT EXISTS apps(
accessRestrictionJson TEXT,
oauthProxy BOOLEAN DEFAULT 0,
createdAt TIMESTAMP(2) NOT NULL DEFAULT CURRENT_TIMESTAMP,
memoryLimit INTEGER DEFAULT 0,
memoryLimit BIGINT DEFAULT 0,
lastBackupId VARCHAR(128),
lastBackupConfigJson TEXT, // used for appstore and non-appstore installs. it's here so it's easy to do REST validation