Skip to content

Commit

Permalink
feat: project settings migration (#3313)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 14, 2023
1 parent 9b26bbd commit 5b8d023
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/migrations/20230314131041-project-settings.js
@@ -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,
);
};

0 comments on commit 5b8d023

Please sign in to comment.