ニジカ投稿局 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.
 
 
 
 
 

30 lines
566 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. db: any
  7. }): Promise<void> {
  8. const { transaction } = utils
  9. const data = {
  10. type: Sequelize.STRING,
  11. defaultValue: null,
  12. allowNull: true
  13. }
  14. await utils.queryInterface.addColumn('user', 'otpSecret', data, { transaction })
  15. }
  16. async function down (utils: {
  17. queryInterface: Sequelize.QueryInterface
  18. transaction: Sequelize.Transaction
  19. }) {
  20. }
  21. export {
  22. up,
  23. down
  24. }