mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
590 B
JavaScript
19 lines
590 B
JavaScript
'use strict';
|
|
|
|
// Standalone tier gate for Lessons, mirroring units.subscription (see
|
|
// 20270101000012-create-units.js) — null means open (or gated only via an
|
|
// attached unit/course). Full parity with the Unit-level gate added for the
|
|
// standalone Units/Lessons tier-gating extension.
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('lessons', 'subscription', {
|
|
type: Sequelize.STRING(50),
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn('lessons', 'subscription');
|
|
},
|
|
};
|