twenty/packages
Pacifique LINJANJA ff77a4ee21
Feat/migrate password reset token to app token table (#5051)
# This PR

- Fix #5021 
- Migrates `passwordResetToken` and `passwordResetTokenExpiresAt` fields
from `core.users` to `core.appToken`
- Marks those fields as `deprecated` so we can remove them later if we
are happy with the transition -- I took this decision on my own,
@FellipeMTX let me know what you think about it, we can also remove them
straight away if you think it's better
- Fixed the `database:migration` script from the `twenty-server` to:
```json
    "database:migrate": {
      "executor": "nx:run-commands",
      "dependsOn": ["build"], // added this line
      "options": {
        "cwd": "packages/twenty-server",
        "commands": [
          "nx typeorm -- migration:run -d src/database/typeorm/metadata/metadata.datasource",
          "nx typeorm -- migration:run -d src/database/typeorm/core/core.datasource"
        ],
        "parallel": false
      }
    },
```
The migration script wasn't running because the builds were not executed
- [x] Added unit tests for the token.service file's changes

Looking forward to hearing feedback from you

cc: @charlesBochet

---------

Co-authored-by: Weiko <corentin@twenty.com>
2024-05-06 15:30:03 +02:00
..
twenty-chrome-extension chore: add nx/project.json to twenty-chrome-extension (#5217) 2024-05-06 11:33:48 +02:00
twenty-docker Feat/add postgres spilo (#5049) 2024-04-29 17:09:41 +02:00
twenty-docs Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-emails Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-front Feat/migrate password reset token to app token table (#5051) 2024-05-06 15:30:03 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server Feat/migrate password reset token to app token table (#5051) 2024-05-06 15:30:03 +02:00
twenty-ui fix: fix storybook:build memory allocation error in CI (#5284) 2024-05-03 19:19:21 +02:00
twenty-utils Improve website github sync (#4259) 2024-03-01 15:15:55 +01:00
twenty-website Bump versions to 0.11 (#5289) 2024-05-03 19:11:03 +02:00
twenty-zapier New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00