mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
e3c9eaae3a
* feat: support filtering on project and environment fields for events Co-authored-by: Nuno Góis <github@nunogois.com>
22 lines
476 B
JavaScript
22 lines
476 B
JavaScript
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,
|
|
);
|
|
};
|