Skip to content

Commit

Permalink
fixed migrations and changed default value to null
Browse files Browse the repository at this point in the history
  • Loading branch information
larryrider committed Nov 9, 2023
1 parent 4e80ea1 commit 3633951
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 213 deletions.
21 changes: 0 additions & 21 deletions migrations/20230215131844-add-postgresql-uuid-extension.js

This file was deleted.

14 changes: 0 additions & 14 deletions migrations/20230215132330-add-uuid-column-to-folders.js

This file was deleted.

13 changes: 0 additions & 13 deletions migrations/20230215134347-add-folder-uuid-column-to-shares.js

This file was deleted.

15 changes: 0 additions & 15 deletions migrations/20230215134840-make-folder-uuid-unique.js

This file was deleted.

21 changes: 0 additions & 21 deletions migrations/20230215135015-add-folder-uuid-fk-to-shares.js

This file was deleted.

14 changes: 0 additions & 14 deletions migrations/20230215162543-create-index-folders-uuid.js

This file was deleted.

15 changes: 0 additions & 15 deletions migrations/20230215172420-add-file-uuid-column-to-files.js

This file was deleted.

14 changes: 0 additions & 14 deletions migrations/20230215183130-create-index-uuid-files.js

This file was deleted.

13 changes: 0 additions & 13 deletions migrations/20230215184308-add-folder-uuid-column-to-files.js

This file was deleted.

21 changes: 0 additions & 21 deletions migrations/20230215184843-add-folder-uuid-fk-to-files.js

This file was deleted.

14 changes: 0 additions & 14 deletions migrations/20230215194018-add-parent-folder-uuid-column-folders.js

This file was deleted.

13 changes: 0 additions & 13 deletions migrations/20230215200756-add-file-uuid-column-to-shares.js

This file was deleted.

21 changes: 0 additions & 21 deletions migrations/20230215200900-add-file-uuid-fk-to-shares.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('users', 'last_password_changed_at', {
type: Sequelize.DATE,
allowNull: false,
defaultValue: 0,
allowNull: true,
defaultValue: null,
});
},

Expand Down
4 changes: 2 additions & 2 deletions src/app/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ export default (database: Sequelize): UserModel => {
},
lastPasswordChangedAt: {
type: DataTypes.DATE,
defaultValue: new Date(),
allowNull: false,
allowNull: true,
defaultValue: null,
},
},
{
Expand Down

0 comments on commit 3633951

Please sign in to comment.