From: Chocobozzz Date: Tue, 24 Sep 2019 08:35:36 +0000 (+0200) Subject: Add auto play next video migration X-Git-Tag: v2.0.0-rc.1~57 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=85c1df6ae899be2b1bdd9691b38a2a2b94bffdcf;p=oweals%2Fpeertube.git Add auto play next video migration --- 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 +}