Changeset c13a488
- Timestamp:
- 07/21/21 20:15:50 (19 months ago)
- Branches:
- master
- Children:
- 0b4a1d0
- Parents:
- a5dc5eb
- git-author:
- Philipp Spitzer <philipp@…> (07/21/21 19:54:38)
- git-committer:
- Philipp Spitzer <philipp@…> (07/21/21 20:15:50)
- Location:
- src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/db.qrc
ra5dc5eb rc13a488 1 1 <!DOCTYPE RCC><RCC version="1.0"> 2 2 <qresource> 3 <file>dbschema001.sql</file>4 3 <file>dbschema000to001.sql</file> 4 <file>dbschema001to002.sql</file> 5 <file>dbschema002.sql</file> 5 6 </qresource> 6 7 </RCC> 7 -
src/sql/sqlengine.cpp
ra5dc5eb rc13a488 92 92 93 93 94 bool SqlEngine::updateDbSchemaVersion001To002() { 95 return applySqlFile(":/dbschema001to002.sql"); 96 } 97 98 94 99 bool SqlEngine::createCurrentDbSchema() { 95 return applySqlFile(":/dbschema00 1.sql");100 return applySqlFile(":/dbschema002.sql"); 96 101 } 97 102 … … 110 115 return updateDbSchemaVersion000To001(); 111 116 case 1: 117 // db schema version 1 118 return updateDbSchemaVersion001To002(); 119 case 2: 112 120 // current schema 113 121 return true; -
src/sql/sqlengine.h
ra5dc5eb rc13a488 51 51 /// called by createOrUpdateDbSchema. Do not use directly. true for success. 52 52 bool updateDbSchemaVersion000To001(); 53 bool updateDbSchemaVersion001To002(); 53 54 /// called by createOrUpdateDbSchma. Do not use directly. true for success. 54 55 bool createCurrentDbSchema();
Note: See TracChangeset
for help on using the changeset viewer.