mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
515 B
JavaScript
12 lines
515 B
JavaScript
// Phase 21 — Sequelize benign control.
|
|
const _NYX_ADAPTER_MARKER = "queryInterface.createTable";
|
|
|
|
module.exports.up = async function (queryInterface, Sequelize) {
|
|
const name = (process.env.NYX_PAYLOAD || 'users').replace(/[^A-Za-z0-9_]/g, '_');
|
|
if (queryInterface && typeof queryInterface.addColumn === 'function') {
|
|
await queryInterface.addColumn(name, 'description', { type: 'TEXT' });
|
|
}
|
|
return 'addColumn(' + name + ')';
|
|
};
|
|
|
|
module.exports.down = async function () { return 'noop'; };
|