Skip to content

Commit 6d96184

Browse files
sg-gsjzunigax2
andauthored
Update migrations/20260108150853-create-optimum-index-files-updatedat-status.js
Co-authored-by: José Zúniga <125698953+jzunigax2@users.noreply.github.com>
1 parent b8baa7c commit 6d96184

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

migrations/20260108150853-create-optimum-index-files-updatedat-status.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ module.exports = {
88
ON files USING brin (updated_at)
99
WHERE status = 'DELETED';
1010
`);
11-
await queryInterface.sequelize.query(`DROP INDEX CONCURRENTLY files_status_updatedat_key;`);
11+
await queryInterface.sequelize.query(`
12+
DROP INDEX CONCURRENTLY IF EXISTS files_status_updatedat_key;
13+
`);
1214
},
1315

1416
async down (queryInterface, Sequelize) {

0 commit comments

Comments
 (0)