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

0505-user-last-login-date.ts 454 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. }): Promise<void> {
  7. {
  8. const field = {
  9. type: Sequelize.DATE,
  10. allowNull: true
  11. }
  12. await utils.queryInterface.addColumn('user', 'lastLoginDate', field)
  13. }
  14. }
  15. function down (options) {
  16. throw new Error('Not implemented.')
  17. }
  18. export {
  19. up,
  20. down
  21. }