Closed kofimokome closed 1 month ago
This pull request introduces two migration scripts for the "User" table in the database. The first script adds a new column named "accountBalance," while the second script removes this column. Additionally, modifications are made to the ConsoleController
class to change the parameter used for querying the DevConsoleUser
model from dcUserId
to id
, ensuring consistent identification of users without altering the overall functionality.
File Path | Change Summary |
---|---|
migrations/scripts/20240109164955-...-balance.js | Added migration script to add "accountBalance" column (FLOAT, NOT NULL, default 0) to "User" table. |
migrations/scripts/20241008150755-...-balance.js | Added migration script to remove "accountBalance" column from "User" table. |
src/controllers/console.js | Updated ConsoleController to use id instead of dcUserId for querying DevConsoleUser . |
In the database where changes flow,
A balance added, then let go.
With IDs now clear, we hop along,
In the console's code, we sing our song.
A migration dance, both swift and bright,
Keeping our schema neat and right! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores