mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
25 lines
553 B
JavaScript
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,
|
|
);
|
|
};
|