mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Cleanup
This commit is contained in:
parent
960a11150f
commit
0c545d5f2e
2 changed files with 0 additions and 2 deletions
|
@ -34,7 +34,6 @@ function getDatabaseVersion() {
|
||||||
// Check for the current version from the settings table
|
// Check for the current version from the settings table
|
||||||
if (exists) {
|
if (exists) {
|
||||||
// Temporary code to deal with old databases with currentVersion settings
|
// Temporary code to deal with old databases with currentVersion settings
|
||||||
// TODO: remove before release
|
|
||||||
return knex('settings')
|
return knex('settings')
|
||||||
.where('key', 'databaseVersion')
|
.where('key', 'databaseVersion')
|
||||||
.orWhere('key', 'currentVersion')
|
.orWhere('key', 'currentVersion')
|
||||||
|
|
|
@ -109,7 +109,6 @@ Settings = GhostBookshelf.Model.extend({
|
||||||
_.each(defaultSettings, function (defaultSetting, defaultSettingKey) {
|
_.each(defaultSettings, function (defaultSetting, defaultSettingKey) {
|
||||||
var isMissingFromDB = usedKeys.indexOf(defaultSettingKey) === -1;
|
var isMissingFromDB = usedKeys.indexOf(defaultSettingKey) === -1;
|
||||||
// Temporary code to deal with old databases with currentVersion settings
|
// Temporary code to deal with old databases with currentVersion settings
|
||||||
// TODO: remove before release
|
|
||||||
if (defaultSettingKey === 'databaseVersion' && usedKeys.indexOf('currentVersion') !== -1) {
|
if (defaultSettingKey === 'databaseVersion' && usedKeys.indexOf('currentVersion') !== -1) {
|
||||||
isMissingFromDB = false;
|
isMissingFromDB = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue