ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
461 B

  1. import * as Sequelize from 'sequelize'
  2. async function up (utils: {
  3. transaction: Sequelize.Transaction
  4. queryInterface: Sequelize.QueryInterface
  5. sequelize: Sequelize.Sequelize
  6. }): Promise<void> {
  7. const data = {
  8. type: Sequelize.BOOLEAN,
  9. allowNull: false,
  10. defaultValue: false
  11. }
  12. await utils.queryInterface.addColumn('user', 'emailPublic', data)
  13. }
  14. function down (options) {
  15. throw new Error('Not implemented.')
  16. }
  17. export {
  18. up,
  19. down
  20. }