0445-shared-inbox-optional.ts 468 B

1234567891011121314151617181920212223242526
  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. {
  9. const data = {
  10. type: Sequelize.STRING,
  11. allowNull: true
  12. }
  13. await utils.queryInterface.changeColumn('actor', 'sharedInboxUrl', data)
  14. }
  15. }
  16. function down (options) {
  17. throw new Error('Not implemented.')
  18. }
  19. export {
  20. up,
  21. down
  22. }