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

35 lines
667 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. {
  8. const data = {
  9. type: Sequelize.DATE,
  10. defaultValue: null,
  11. allowNull: true
  12. }
  13. await utils.queryInterface.addColumn('userRegistration', 'processedAt', data)
  14. }
  15. {
  16. const data = {
  17. type: Sequelize.DATE,
  18. defaultValue: null,
  19. allowNull: true
  20. }
  21. await utils.queryInterface.addColumn('abuse', 'processedAt', data)
  22. }
  23. }
  24. function down (options) {
  25. throw new Error('Not implemented.')
  26. }
  27. export {
  28. up,
  29. down
  30. }