-
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.
feat(j-s): Store Subpoena PDF and HASH (#16235)
* Stores has and generated pdf for subpoenas * Improved undefined handling --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0e26000
commit 9af30c0
Showing
6 changed files
with
104 additions
and
12 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
apps/judicial-system/backend/migrations/20241002084126-update-subpoena.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,22 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
up(queryInterface, Sequelize) { | ||
return queryInterface.sequelize.transaction((transaction) => | ||
queryInterface.addColumn( | ||
'subpoena', | ||
'hash', | ||
{ type: Sequelize.STRING, allowNull: true }, | ||
{ transaction }, | ||
), | ||
) | ||
}, | ||
|
||
down(queryInterface) { | ||
return queryInterface.sequelize.transaction((transaction) => | ||
queryInterface.removeColumn('subpoena', 'hash', { | ||
transaction, | ||
}), | ||
) | ||
}, | ||
} |
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