1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: project settings migration (#3313)

This commit is contained in:
Mateusz Kwasniewski 2023-03-14 14:43:14 +01:00 committed by GitHub
parent 9b26bbd052
commit 5b8d023184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`
CREATE TABLE IF NOT EXISTS project_settings (
project VARCHAR(255) REFERENCES projects(id) ON DELETE CASCADE,
default_stickiness VARCHAR(100),
project_mode VARCHAR(100),
PRIMARY KEY(project)
);
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
DROP TABLE IF EXISTS project_settings;
`,
callback,
);
};