2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
This commit is contained in:
Hannah Wolfe 2013-09-19 08:51:01 +01:00
parent 960a11150f
commit 0c545d5f2e
2 changed files with 0 additions and 2 deletions

View file

@ -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')

View file

@ -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;
} }