ports is REST API input . Map of env var to the host port portBinding is the database structure. Map of env var to host port, count, type etc also, rename portCount -> count in various places to keep things consistent
10 lines
269 B
JavaScript
10 lines
269 B
JavaScript
'use strict';
|
|
|
|
exports.up = async function(db) {
|
|
await db.runSql('UPDATE appPortBindings SET count=1 WHERE count IS NULL');
|
|
await db.runSql('ALTER TABLE appPortBindings MODIFY count INTEGER NOT NULL DEFAULT 1');
|
|
};
|
|
|
|
exports.down = async function(/* db */) {
|
|
};
|