-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Database: add metadata with the version number of the database layout…
… and check it in the code This is aimed at detecting running a PROJ version against a proj.db that is not meant to work with it. This happens sometimes in complex setups mixing PROJ versions. Hopefully this will help spotting the issue earlier.
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
-- Version of the database structure. | ||
-- The major number indicates an incompatible change (e.g. table or column | ||
-- removed or renamed). | ||
-- The minor number is incremented if a backward compatible change done, that | ||
-- is the new database can still work with an older PROJ version. | ||
-- When updating those numbers, the DATABASE_LAYOUT_VERSION_MAJOR and | ||
-- DATABASE_LAYOUT_VERSION_MINOR constants in src/iso19111/factory.cpp must be | ||
-- updated as well. | ||
INSERT INTO "metadata" VALUES('DATABASE.LAYOUT.VERSION.MAJOR', 1); | ||
INSERT INTO "metadata" VALUES('DATABASE.LAYOUT.VERSION.MINOR', 0); | ||
|
||
INSERT INTO "metadata" VALUES('EPSG.VERSION', 'v10.007'); | ||
INSERT INTO "metadata" VALUES('EPSG.DATE', '2020-11-18'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters