UNPKG

@smallprod/models

Version:
16 lines (15 loc) 546 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const migrationtype_1 = __importDefault(require("./migrationtype")); class DropTable extends migrationtype_1.default { constructor(tableName) { super(tableName, 'droptable'); this.execute = async (model) => { await model.removeTable(this.tableName); }; } } exports.default = DropTable;