Skip to content

Commit

Permalink
Fix: add created at to environment type trends (#6437)
Browse files Browse the repository at this point in the history
Add created_at to environment_type_trends table for easy sorting

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
  • Loading branch information
andreas-unleash committed Mar 5, 2024
1 parent 86a795e commit dc7a715
Showing 1 changed file with 15 additions and 0 deletions.
@@ -0,0 +1,15 @@
'use strict';

exports.up = function(db, cb) {
db.runSql(
`
ALTER TABLE IF EXISTS environment_type_trends
ADD COLUMN created_at timestamp default now();
`,
cb,
);
};

exports.down = function(db, cb) {
db.runSql('ALTER TABLE IF EXISTS environment_type_trends DROP COLUMN IF EXISTS created_at;', cb);
};

0 comments on commit dc7a715

Please sign in to comment.