Guest User

Untitled

a guest
Dec 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. module.exports = {
  2. up: (queryInterface, Sequelize) => {
  3. queryInterface.addColumn(
  4. ['category', 'products', 'orders', 'purchases'],
  5. 'isDeleted',
  6. {
  7. type: Sequelize.BOOLEAN,
  8. },
  9. )
  10. },
  11.  
  12. down: queryInterface =>
  13. queryInterface.removeColumn(
  14. ['category', 'products', 'orders', 'purchases'],
  15. 'isDeleted',
  16. ),
  17. }
  18.  
  19. == 20181212035825-add-column-for-deleted-items: migrating =======
  20.  
  21. ERROR: s.replace is not a function
Add Comment
Please, Sign In to add comment