diff options
Diffstat (limited to 'server/initializers/migrations/0010-email-user.ts')
-rw-r--r-- | server/initializers/migrations/0010-email-user.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/migrations/0010-email-user.ts b/server/initializers/migrations/0010-email-user.ts index 33d13ce55..37a7b0bb3 100644 --- a/server/initializers/migrations/0010-email-user.ts +++ b/server/initializers/migrations/0010-email-user.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import * as Promise from 'bluebird' | 2 | import * as Promise from 'bluebird' |
3 | import { Migration } from '../../models/migrations' | ||
3 | 4 | ||
4 | function up (utils: { | 5 | function up (utils: { |
5 | transaction: Sequelize.Transaction, | 6 | transaction: Sequelize.Transaction, |
@@ -12,7 +13,7 @@ function up (utils: { | |||
12 | type: Sequelize.STRING(400), | 13 | type: Sequelize.STRING(400), |
13 | allowNull: false, | 14 | allowNull: false, |
14 | defaultValue: '' | 15 | defaultValue: '' |
15 | } | 16 | } as Migration.String |
16 | return q.addColumn('Users', 'email', data) | 17 | return q.addColumn('Users', 'email', data) |
17 | .then(() => { | 18 | .then(() => { |
18 | const query = 'UPDATE "Users" SET "email" = CONCAT("username", \'@example.com\')' | 19 | const query = 'UPDATE "Users" SET "email" = CONCAT("username", \'@example.com\')' |