mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
14 lines
402 B
JavaScript
14 lines
402 B
JavaScript
|
var commands = require('../../schema').commands,
|
||
|
db = require('../../db'),
|
||
|
|
||
|
table = 'client_trusted_domains';
|
||
|
|
||
|
module.exports = function addClientTrustedDomainsTable(logInfo) {
|
||
|
return db.knex.schema.hasTable(table).then(function (exists) {
|
||
|
if (!exists) {
|
||
|
logInfo('Creating table: ' + table);
|
||
|
return commands.createTable(table);
|
||
|
}
|
||
|
});
|
||
|
};
|