Change manifestJson column from VARCHAR to TEXT
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
dbm = dbm || require('db-migrate');
|
||||||
|
var type = dbm.dataType;
|
||||||
|
|
||||||
|
exports.up = function(db, callback) {
|
||||||
|
db.runSql('ALTER TABLE apps MODIFY manifestJson TEXT', [], function (error) {
|
||||||
|
if (error) console.error(error);
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function(db, callback) {
|
||||||
|
db.runSql('ALTER TABLE apps MODIFY manifestJson VARCHAR(2048)', [], function (error) {
|
||||||
|
if (error) console.error(error);
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -45,7 +45,7 @@ CREATE TABLE IF NOT EXISTS apps(
|
|||||||
runState VARCHAR(512),
|
runState VARCHAR(512),
|
||||||
health VARCHAR(128),
|
health VARCHAR(128),
|
||||||
containerId VARCHAR(128),
|
containerId VARCHAR(128),
|
||||||
manifestJson VARCHAR(2048),
|
manifestJson TEXT,
|
||||||
httpPort INTEGER, // this is the nginx proxy port and not manifest.httpPort
|
httpPort INTEGER, // this is the nginx proxy port and not manifest.httpPort
|
||||||
location VARCHAR(128) NOT NULL UNIQUE,
|
location VARCHAR(128) NOT NULL UNIQUE,
|
||||||
dnsRecordId VARCHAR(512),
|
dnsRecordId VARCHAR(512),
|
||||||
|
|||||||
Reference in New Issue
Block a user