parent
6992ab47b4
commit
5056d0bcaa
5 changed files with 37 additions and 2 deletions
@ -0,0 +1,15 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = { |
||||
up: (queryInterface, Sequelize) => { |
||||
return Promise.all([ |
||||
queryInterface.addColumn('Users', 'deadlineUnit', { |
||||
type: Sequelize.STRING, |
||||
}), |
||||
]); |
||||
}, |
||||
|
||||
down: (queryInterface) => { |
||||
return Promise.all([queryInterface.removeColumn('Users', 'deadlineUnit')]); |
||||
}, |
||||
}; |
@ -0,0 +1,17 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = { |
||||
up: (queryInterface, Sequelize) => { |
||||
return Promise.all([ |
||||
queryInterface.changeColumn('Users', 'deadlineUnit', { |
||||
type: Sequelize.STRING, |
||||
defaultValue: 'روز' , |
||||
}), |
||||
]); |
||||
}, |
||||
|
||||
down: (queryInterface) => { |
||||
return Promise.all([queryInterface.changeColumn('Users', 'deadlineUnit')]); |
||||
}, |
||||
}; |
||||
|
Binary file not shown.
Loading…
Reference in new issue