20220122160900-add-status-to-schedules.ts 362 B

1234567891011121314
  1. import { QueryInterface, DataTypes } from "sequelize";
  2. module.exports = {
  3. up: (queryInterface: QueryInterface) => {
  4. return queryInterface.addColumn("Schedules", "status", {
  5. type: DataTypes.STRING,
  6. allowNull: true
  7. });
  8. },
  9. down: (queryInterface: QueryInterface) => {
  10. return queryInterface.removeColumn("Schedules", "status");
  11. }
  12. };