1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

feat: feedback table (#5721)

This commit is contained in:
Jaanus Sellin 2023-12-21 15:34:35 +02:00 committed by GitHub
parent 12100b3912
commit d57e26b8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,28 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`
CREATE TABLE IF NOT EXISTS feedback
(
id SERIAL PRIMARY KEY NOT NULL,
category TEXT NOT NULL,
user_type TEXT,
difficulty_score INTEGER,
positive TEXT,
areas_for_improvement TEXT,
created_at TIMESTAMP WITH TIME ZONE DEFAULT now()
);
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
DROP TABLE IF EXISTS feedback;
`,
callback,
);
};