Compare commits
3 Commits
5056d0bcaa
...
7f54a7f12a
Author | SHA1 | Date |
---|---|---|
shoaibalmasi | 7f54a7f12a | 4 years ago |
shoaibalmasi | 9a7853dc82 | 4 years ago |
shoaibalmasi | 2345d0699d | 4 years ago |
8 changed files with 131 additions and 44 deletions
@ -0,0 +1,21 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = { |
||||
up: (queryInterface, Sequelize) => { |
||||
return Promise.all([ |
||||
queryInterface.addColumn('Users', 'healthCenter', { |
||||
type: Sequelize.STRING, |
||||
allowNull: true, |
||||
}), |
||||
queryInterface.addColumn('Users', 'healthCenterCity', { |
||||
type: Sequelize.STRING, |
||||
allowNull: true, |
||||
}), |
||||
]); |
||||
}, |
||||
|
||||
down: (queryInterface) => { |
||||
return Promise.all([queryInterface.removeColumn('Users', 'healthCenter'), |
||||
queryInterface.removeColumn('Users', 'healthCenterCity')]); |
||||
}, |
||||
}; |
@ -0,0 +1,15 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = { |
||||
up: (queryInterface, Sequelize) => { |
||||
return Promise.all([ |
||||
queryInterface.changeColumn('Users', 'codeMelli', { |
||||
type: Sequelize.STRING, |
||||
}), |
||||
]); |
||||
}, |
||||
|
||||
down: (queryInterface) => { |
||||
return Promise.all([queryInterface.changeColumn('Users', 'codeMelli')]); |
||||
}, |
||||
}; |
Binary file not shown.
Loading…
Reference in new issue