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

Commit

Permalink
GH-501 adding migration scripts for PR check files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferit Topcu committed Apr 3, 2019
1 parent 84d77d0 commit 8e2d8a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions migrations/007-add-prmergecommit-enum-value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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()
}
7 changes: 7 additions & 0 deletions migrations/008-add-prmilestone-enum-value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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()
}

0 comments on commit 8e2d8a5

Please sign in to comment.