Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support filtering on project and environment fields for events (#…
…1801) * feat: support filtering on project and environment fields for events Co-authored-by: Nuno Góis <github@nunogois.com>
- Loading branch information
Showing
8 changed files
with
339 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/migrations/20220711084613-add-projects-and-environments-for-addons.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
exports.up = function (db, cb) { | ||
db.runSql( | ||
`ALTER TABLE addons | ||
ADD COLUMN | ||
projects jsonb DEFAULT '[]'::jsonb; | ||
ALTER TABLE addons | ||
ADD COLUMN environments jsonb DEFAULT '[]'::jsonb; | ||
`, | ||
cb, | ||
); | ||
}; | ||
|
||
exports.down = function (db, cb) { | ||
db.runSql( | ||
` | ||
ALTER TABLE addons DROP COLUMN projects; | ||
ALTER TABLE addons DROP COLUMN environments; | ||
`, | ||
cb, | ||
); | ||
}; |
Oops, something went wrong.