mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-18 20:15:14 +02:00
[pitboss] phase 21: Track M.3 — ScheduledJob + GraphQLResolver + WebSocket + Middleware + Migration
This commit is contained in:
parent
00b0fbaea9
commit
f9bd51c024
84 changed files with 5898 additions and 40 deletions
12
tests/dynamic_fixtures/migration/sequelize/benign.js
Normal file
12
tests/dynamic_fixtures/migration/sequelize/benign.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// 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'; };
|
||||
Loading…
Add table
Add a link
Reference in a new issue