mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
Add client_applications table
This commit is contained in:
parent
5ad5127f81
commit
cf385534c8
@ -1,3 +1,20 @@
|
|||||||
|
/* eslint camelcase: "off" */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('../scripts/migration-runner').create('011-create-client-applications');
|
exports.up = function (db, cb) {
|
||||||
|
db.createTable('client_applications', {
|
||||||
|
app_name: { type: 'varchar', length: 255, primaryKey: true, notNull: true },
|
||||||
|
created_at: { type: 'timestamp', defaultValue: 'now()' },
|
||||||
|
updated_at: { type: 'timestamp', defaultValue: 'now()' },
|
||||||
|
seen_at: { type: 'timestamp' },
|
||||||
|
strategies: { type: 'json' },
|
||||||
|
description: { type: 'varchar', length: 255 },
|
||||||
|
icon: { type: 'varchar', length: 255 },
|
||||||
|
url: { type: 'varchar', length: 255 },
|
||||||
|
color: { type: 'varchar', length: 255 },
|
||||||
|
}, cb);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
return db.dropTable('client_applications', cb);
|
||||||
|
};
|
||||||
|
@ -1 +0,0 @@
|
|||||||
DROP TABLE client_applications;
|
|
@ -1,9 +0,0 @@
|
|||||||
CREATE TABLE client_applications (
|
|
||||||
app_name varchar(255) PRIMARY KEY NOT NULL,
|
|
||||||
created_at timestamp default now(),
|
|
||||||
updated_at timestamp default now(),
|
|
||||||
description varchar(255),
|
|
||||||
icon varchar(255),
|
|
||||||
url varchar(255),
|
|
||||||
color varchar(255)
|
|
||||||
);
|
|
Loading…
Reference in New Issue
Block a user