-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add option SPEEDING * Add legal arguments * Add input fields * Add recordedSpeed and speedLimit to db * Enable seedLimit update * Add validation * Update indictment description * Clear recorded speed and speed limit when removing speedig * Add error handling * Fix comment * Fix lint * Remove css * Make Icon position abs * Rec speed and speed limit is now number * Remove island-ui change * Improve validation * Use Number.isNaN instead of isNaN
- Loading branch information
1 parent
7b4b93e
commit fa02386
Showing
14 changed files
with
280 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
apps/judicial-system/backend/migrations/20250120150345-update-indictment-count.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
return queryInterface.sequelize.transaction((t) => | ||
Promise.all([ | ||
queryInterface.addColumn( | ||
'indictment_count', | ||
'recorded_speed', | ||
{ | ||
type: Sequelize.INTEGER, | ||
allowNull: true, | ||
}, | ||
{ transaction: t }, | ||
), | ||
queryInterface.addColumn( | ||
'indictment_count', | ||
'speed_limit', | ||
{ | ||
type: Sequelize.INTEGER, | ||
allowNull: true, | ||
}, | ||
{ transaction: t }, | ||
), | ||
]), | ||
) | ||
}, | ||
async down(queryInterface) { | ||
return queryInterface.sequelize.transaction((t) => | ||
Promise.all([ | ||
queryInterface.removeColumn('indictment_count', 'recorded_speed', { | ||
transaction: t, | ||
}), | ||
queryInterface.removeColumn('indictment_count', 'speed_limit', { | ||
transaction: t, | ||
}), | ||
]), | ||
) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.