aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0130-user-autoplay-video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations/0130-user-autoplay-video.ts')
-rw-r--r--server/initializers/migrations/0130-user-autoplay-video.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/initializers/migrations/0130-user-autoplay-video.ts b/server/initializers/migrations/0130-user-autoplay-video.ts
new file mode 100644
index 000000000..9f6878e39
--- /dev/null
+++ b/server/initializers/migrations/0130-user-autoplay-video.ts
@@ -0,0 +1,27 @@
1import * as Sequelize from 'sequelize'
2import * as Promise from 'bluebird'
3
4function up (utils: {
5 transaction: Sequelize.Transaction,
6 queryInterface: Sequelize.QueryInterface,
7 sequelize: Sequelize.Sequelize
8}): Promise<void> {
9 const q = utils.queryInterface
10
11 const data = {
12 type: Sequelize.BOOLEAN,
13 allowNull: false,
14 defaultValue: true
15 }
16
17 return q.addColumn('user', 'autoPlayVideo', data)
18}
19
20function down (options) {
21 throw new Error('Not implemented.')
22}
23
24export {
25 up,
26 down
27}