-
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.
* Adds civil demands to traffic violation indictments * Handles case strings in the backend only * Renames the case file interceptor * Adds civil demands to indictment pdf --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c2ab2f5
commit 7572adf
Showing
37 changed files
with
477 additions
and
293 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
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
50 changes: 50 additions & 0 deletions
50
apps/judicial-system/backend/migrations/20240909194458-rename-explanatory-comment.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,50 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
async up(queryInterface) { | ||
return queryInterface.sequelize.transaction(async (transaction) => | ||
queryInterface | ||
.renameTable('explanatory_comment', 'case_string', { | ||
transaction, | ||
}) | ||
.then(() => | ||
Promise.all([ | ||
queryInterface.renameColumn( | ||
'case_string', | ||
'comment_type', | ||
'string_type', | ||
{ transaction }, | ||
), | ||
queryInterface.renameColumn('case_string', 'comment', 'value', { | ||
transaction, | ||
}), | ||
]), | ||
), | ||
) | ||
}, | ||
|
||
async down(queryInterface) { | ||
return queryInterface.sequelize.transaction(async (transaction) => | ||
queryInterface | ||
.renameTable('case_string', 'explanatory_comment', { | ||
transaction, | ||
}) | ||
.then(() => | ||
Promise.all([ | ||
queryInterface.renameColumn( | ||
'explanatory_comment', | ||
'string_type', | ||
'comment_type', | ||
{ transaction }, | ||
), | ||
queryInterface.renameColumn( | ||
'explanatory_comment', | ||
'value', | ||
'comment', | ||
{ 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
Oops, something went wrong.