From 85c1df6ae899be2b1bdd9691b38a2a2b94bffdcf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 Sep 2019 10:35:36 +0200 Subject: Add auto play next video migration --- .../my-account-video-settings.component.html | 2 ++ server/initializers/constants.ts | 2 +- .../migrations/0440-user-auto-play-next-video.ts | 27 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 server/initializers/migrations/0440-user-auto-play-next-video.ts diff --git a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html index 06fd9833a..84c78c457 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html @@ -47,7 +47,9 @@ inputName="autoPlayVideo" formControlName="autoPlayVideo" i18n-labelText labelText="Automatically plays video" > + +
{ + { + const data = { + type: Sequelize.BOOLEAN, + allowNull: false, + defaultValue: false + } + + await utils.queryInterface.addColumn('user', 'autoPlayNextVideo', data) + } +} + +function down (options) { + throw new Error('Not implemented.') +} + +export { + up, + down +} -- cgit v1.2.3