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

0775-add-user-is-email-public.ts 461 B

12345678910111213141516171819202122232425
  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. }