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:
parent
9b26bbd052
commit
5b8d023184
24
src/migrations/20230314131041-project-settings.js
Normal file
24
src/migrations/20230314131041-project-settings.js
Normal 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,
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user