Skip to content

Commit

Permalink
increase the database version number
Browse files Browse the repository at this point in the history
  • Loading branch information
welkinwong committed Jul 10, 2017
1 parent d753010 commit 7746959
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/services/install.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ exports.install = function (options, callback) {
database.init(databaseDate, callback)
}],
connectDatabase: ['databaseInt', database.connect],
writeDatabaseVersion: ['connectDatabase', function (callback) {
new optionsModel({
name: 'database', value: 1
}).save(function (err) {
if (err) {
err.type = 'database';
return callback(err);
}

callback(err)
});
}],
writeSiteinfo: ['connectDatabase', function (callback) {
new optionsModel({
name: 'siteInfo',
Expand Down

0 comments on commit 7746959

Please sign in to comment.