mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
ff7be7696c
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
21 lines
496 B
JavaScript
21 lines
496 B
JavaScript
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`CREATE TABLE IF NOT EXISTS addons
|
|
(
|
|
id SERIAL PRIMARY KEY,
|
|
provider text not null,
|
|
description text,
|
|
enabled boolean default true,
|
|
parameters json,
|
|
events json,
|
|
created_at TIMESTAMP WITH TIME ZONE DEFAULT now()
|
|
);
|
|
`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql('DROP TABLE addons;', cb);
|
|
};
|