ensure scheme in metadata table always be tms

This commit is contained in:
jingsam
2019-05-09 17:55:22 +08:00
parent 7fd30ff9ff
commit 0ecc36fc47
2 changed files with 4 additions and 1 deletions

View File

@@ -600,6 +600,9 @@ MBTiles.prototype.putInfo = function(data, callback) {
}
if (jsondata) stmt.run('json', JSON.stringify(jsondata));
// Ensure scheme in metadata table always be 'tms'
stmt.run('scheme', 'tms');
var mbtiles = this;
stmt.finalize(function(err) {
if (err) return callback(err);