Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2088, add dbSchemaVersion to /__version__
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Jan 18, 2017
1 parent 5148017 commit 575a62a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/dbschema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pgpatcher = require("pg-patcher");
const path = require("path");
const mozlog = require("mozlog")("dbschema");

const MAX_DB_LEVEL = 13;
const MAX_DB_LEVEL = exports.MAX_DB_LEVEL = 13;

exports.forceDbVersion = function (version) {
mozlog.info("forcing-db-version", {db: db.constr, version});
Expand Down
3 changes: 2 additions & 1 deletion server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,8 @@ app.get("/__version__", function (req, res) {
commit: linker.getGitRevision(),
contentOrigin: config.contentOrigin,
commitLog: `https://github.com/mozilla-services/pageshot/commits/${linker.getGitRevision()}`,
unincludedCommits: `https://github.com/mozilla-services/pageshot/compare/${linker.getGitRevision()}...master`
unincludedCommits: `https://github.com/mozilla-services/pageshot/compare/${linker.getGitRevision()}...master`,
dbSchemaVersion: dbschema.MAX_DB_LEVEL
};
res.header("Content-Type", "application/json; charset=utf-8");
res.send(JSON.stringify(response, null, ' '));
Expand Down

0 comments on commit 575a62a

Please sign in to comment.