Skip to content

Commit

Permalink
chore(j-s): Delete indictments before launch (#16536)
Browse files Browse the repository at this point in the history
* chore(j-s): Delete indictments before launch

* Update 20241023133561-update-case.js

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
unakb and kodiakhq[bot] authored Oct 25, 2024
1 parent 451fc26 commit 07db7b9
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

module.exports = {
up: (queryInterface) => {
return queryInterface.sequelize.transaction((transaction) =>
queryInterface.sequelize.query(
`UPDATE "case" SET state = 'DELETED'
WHERE type = 'INDICTMENT'
AND created < '2024-10-28 00:00:00.000+00'`,
{ transaction },
),
)
},

down: () => {
return Promise.resolve()
},
}

0 comments on commit 07db7b9

Please sign in to comment.