mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
6520aa1b0c
* feat: add impression data column * fix: add default value to impressionData * fix: allow client api to return impressionData * fix: add tests for impressionData * fix: reset server-dev * fix: add test for adding a toggle with impression data on a different project * fix: update tests
20 lines
341 B
JavaScript
20 lines
341 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE features ADD COLUMN "impression_data" BOOLEAN DEFAULT FALSE;
|
|
`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE features DROP COLUMN "impression_data";
|
|
`,
|
|
cb,
|
|
);
|
|
};
|