Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

fix: add milestone & merge checks to enum_checks_type #566

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions migrations/007-add-prmilestone-enum-value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports.up = function up(queryInterface) {
return queryInterface.sequelize.query(`ALTER TYPE zappr_data.enum_checks_type ADD VALUE IF NOT EXISTS 'pullrequestmilestone';`)
}

module.exports.down = function down() {
// there is no good downgrade
return Promise.resolve()
}
8 changes: 8 additions & 0 deletions migrations/008-add-prmergecommit-enum-value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports.up = function up(queryInterface) {
return queryInterface.sequelize.query(`ALTER TYPE zappr_data.enum_checks_type ADD VALUE IF NOT EXISTS 'pullrequestmergecommit';`)
}

module.exports.down = function down() {
// there is no good downgrade
return Promise.resolve()
}