1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

Fix: add created at to environment type trends (#6437)

Add created_at to environment_type_trends table for easy sorting

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2024-03-05 15:10:13 +02:00 committed by GitHub
parent 86a795e87c
commit dc7a715386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
};