parent
							
								
									c6b0168757
								
							
						
					
					
						commit
						6992ab47b4
					
				
				 4 changed files with 43 additions and 4 deletions
			
			
		@ -0,0 +1,15 @@ | 
				
			||||
'use strict'; | 
				
			||||
 | 
				
			||||
module.exports = { | 
				
			||||
  up: (queryInterface, Sequelize) => { | 
				
			||||
    return Promise.all([ | 
				
			||||
      queryInterface.changeColumn('Users', 'codeMelli', { | 
				
			||||
        type: Sequelize.BIGINT             , | 
				
			||||
      }), | 
				
			||||
    ]); | 
				
			||||
  }, | 
				
			||||
 | 
				
			||||
  down: (queryInterface) => { | 
				
			||||
    return Promise.all([queryInterface.changeColumn('Users', 'codeMelli')]); | 
				
			||||
  }, | 
				
			||||
}; | 
				
			||||
@ -0,0 +1,18 @@ | 
				
			||||
'use strict'; | 
				
			||||
 | 
				
			||||
module.exports = { | 
				
			||||
  up: (queryInterface, Sequelize) => { | 
				
			||||
    return Promise.all([ | 
				
			||||
      queryInterface.addColumn('Users', 'fileName', { | 
				
			||||
        type: Sequelize.STRING, | 
				
			||||
        allowNull: false, | 
				
			||||
        defaultValue: 'Hform4.docx' | 
				
			||||
      }), | 
				
			||||
    ]); | 
				
			||||
  }, | 
				
			||||
 | 
				
			||||
  down: (queryInterface) => { | 
				
			||||
    return Promise.all([queryInterface.removeColumn('Users', 'fileName')]); | 
				
			||||
  }, | 
				
			||||
}; | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue