n8n
Version:
n8n Workflow Automation Tool
17 lines • 1.37 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntroducePinData1654089251344 = void 0;
class IntroducePinData1654089251344 {
async up({ queryRunner, tablePrefix }) {
await queryRunner.query(`ALTER TABLE \`${tablePrefix}workflow_entity\` ADD COLUMN "pinData" text`);
}
async down({ queryRunner, tablePrefix }) {
await queryRunner.query(`ALTER TABLE \`${tablePrefix}workflow_entity\` RENAME TO "temporary_workflow_entity"`);
await queryRunner.query(`CREATE TABLE \`${tablePrefix}workflow_entity\` (
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(128) NOT NULL, "active" boolean NOT NULL, "nodes" text NOT NULL, "connections" text NOT NULL, "createdAt" datetime NOT NULL, "updatedAt" datetime NOT NULL, "settings" text, "staticData" text`);
await queryRunner.query(`INSERT INTO \`${tablePrefix}workflow_entity\` ("id", "name", "active", "nodes", "connections", "createdAt", "updatedAt", "settings", "staticData") SELECT "id", "name", "active", "nodes", "connections", "createdAt", "updatedAt", "settings", "staticData" FROM "temporary_workflow_entity"`);
await queryRunner.query('DROP TABLE "temporary_workflow_entity"');
}
}
exports.IntroducePinData1654089251344 = IntroducePinData1654089251344;
//# sourceMappingURL=1654089251344-IntroducePinData.js.map