whitelabel-db 1.1.77 → 1.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,17 +24,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
24
24
|
allowNull: true,
|
|
25
25
|
});
|
|
26
26
|
console.log('All columns added successfully.');
|
|
27
|
-
// Add index
|
|
28
|
-
yield queryInterface.addIndex('users', {
|
|
29
|
-
fields: ['passwordResetToken'],
|
|
30
|
-
name: 'users_password_reset_token',
|
|
31
|
-
});
|
|
32
|
-
// Add index
|
|
33
|
-
yield queryInterface.addIndex('users', {
|
|
34
|
-
fields: ['passwordResetTokenExpiresAt'],
|
|
35
|
-
name: 'users_password_reset_token_expires_at',
|
|
36
|
-
});
|
|
37
|
-
console.log('All indexes added successfully.');
|
|
38
27
|
}
|
|
39
28
|
catch (error) {
|
|
40
29
|
console.error('Error while adding columns:', error.message);
|
|
@@ -47,11 +36,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
47
36
|
yield queryInterface.removeColumn('users', 'passwordResetToken');
|
|
48
37
|
yield queryInterface.removeColumn('users', 'passwordResetTokenExpiresAt');
|
|
49
38
|
console.log('All columns removed successfully.');
|
|
50
|
-
// Remove index
|
|
51
|
-
yield queryInterface.removeIndex('users', 'users_password_reset_token');
|
|
52
|
-
// Remove index
|
|
53
|
-
yield queryInterface.removeIndex('users', 'users_password_reset_token_expires_at');
|
|
54
|
-
console.log('All indexes removed successfully.');
|
|
55
39
|
}
|
|
56
40
|
catch (error) {
|
|
57
41
|
console.error('Error while removing columns:', error.message);
|
package/dist/models/User.js
CHANGED
|
@@ -129,7 +129,6 @@ __decorate([
|
|
|
129
129
|
__metadata("design:type", Boolean)
|
|
130
130
|
], User.prototype, "isVerified", void 0);
|
|
131
131
|
__decorate([
|
|
132
|
-
sequelize_typescript_1.Index,
|
|
133
132
|
(0, sequelize_typescript_1.Column)({
|
|
134
133
|
type: sequelize_typescript_1.DataType.STRING,
|
|
135
134
|
allowNull: true,
|