mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #4493 from jaswilli/settings-migration
Fix updateConfigTheme method.
This commit is contained in:
commit
1a42f32561
2 changed files with 5 additions and 5 deletions
|
@ -37,10 +37,10 @@ var _ = require('lodash'),
|
|||
updateConfigTheme = function () {
|
||||
config.set({
|
||||
theme: {
|
||||
title: settingsCache.title.value || '',
|
||||
description: settingsCache.description.value || '',
|
||||
logo: settingsCache.logo.value || '',
|
||||
cover: settingsCache.cover.value || ''
|
||||
title: (settingsCache.title && settingsCache.title.value) || '',
|
||||
description: (settingsCache.description && settingsCache.description.value) || '',
|
||||
logo: (settingsCache.logo && settingsCache.logo.value) || '',
|
||||
cover: (settingsCache.cover && settingsCache.cover.value) || ''
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -48,7 +48,7 @@ addColumnCommands = function addColumnCommands(table, columns) {
|
|||
modifyUniqueCommands = function modifyUniqueCommands(table, indexes) {
|
||||
var columnKeys = _.keys(schema[table]);
|
||||
return _.map(columnKeys, function (column) {
|
||||
if (schema[table][column].unique && schema[table][column].unique === true) {
|
||||
if (schema[table][column].unique === true) {
|
||||
if (!_.contains(indexes, table + '_' + column + '_unique')) {
|
||||
return function () {
|
||||
logInfo('Adding unique on: ' + table + '.' + column);
|
||||
|
|
Loading…
Reference in a new issue