Skip to content

Commit

Permalink
Merge pull request #3628 from OriginTrail/fix/add-commands-table-prun…
Browse files Browse the repository at this point in the history
…ing-migration

Add commands table pruning migration
  • Loading branch information
Mihajlo-Pavlovic authored Dec 26, 2024
2 parents f6ba031 + 1626119 commit 40ec733
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export async function up({ context: { queryInterface } }) {
await queryInterface.sequelize.query('TRUNCATE TABLE commands;');
}

export async function down() {
// No need to do anything in the down method for truncation
}

0 comments on commit 40ec733

Please sign in to comment.