Files
cloudron-box/migrations/20250626130733-apps-add-updateInfoJson.js
Girish Ramakrishnan 19c9d7d59d updateInfo: move updateInfo into apps table
this has many advantages:
* easy to deliver the updateInfo via the apps object
* after updating, the task can clear it
* when apps are deleted, the info is automatically gone

otherwise, it's a mess of deps between apps/updater/apptask/rest routes

box update info is still in a file
2025-06-26 15:47:15 +02:00

10 lines
239 B
JavaScript

'use strict';
exports.up = async function (db) {
await db.runSql('ALTER TABLE apps ADD COLUMN updateInfoJson TEXT NULL');
};
exports.down = async function (db) {
await db.runSql('ALTER TABLE apps DROP COLUMN updateInfoJson');
};