mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
assets and tier plans revamp
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
'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');
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user