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

0675-p2p-enabled.ts 482 B

123456789101112131415161718192021
  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. await utils.queryInterface.renameColumn('user', 'webTorrentEnabled', 'p2pEnabled')
  9. await utils.sequelize.query('ALTER TABLE "user" ALTER COLUMN "p2pEnabled" DROP DEFAULT')
  10. }
  11. function down (options) {
  12. throw new Error('Not implemented.')
  13. }
  14. export {
  15. up,
  16. down
  17. }