1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20230314131041-project-settings.js
2023-03-14 14:43:14 +01:00

25 lines
553 B
JavaScript

'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,
);
};