Fossil SCM
Attempt to set the repository application_id to 1598444364 (which is the same as '_FSL') before any changes to the repository.
Commit
822d6f0dab1fb7ea60e0171e5de7344cfcd8dcbe
Parent
96b09d89a1525bb…
2 files changed
+1
+4
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -164,10 +164,11 @@ | ||
| 164 | 164 | if( rollbackFlag ) db.doRollback = 1; |
| 165 | 165 | db.nBegin--; |
| 166 | 166 | if( db.nBegin==0 ){ |
| 167 | 167 | int i; |
| 168 | 168 | if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){ |
| 169 | + sqlite3_exec(g.db, "PRAGMA application_id=1598444364;", 0, 0, 0); | |
| 169 | 170 | while( db.nBeforeCommit ){ |
| 170 | 171 | db.nBeforeCommit--; |
| 171 | 172 | sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0); |
| 172 | 173 | sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]); |
| 173 | 174 | } |
| 174 | 175 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -164,10 +164,11 @@ | |
| 164 | if( rollbackFlag ) db.doRollback = 1; |
| 165 | db.nBegin--; |
| 166 | if( db.nBegin==0 ){ |
| 167 | int i; |
| 168 | if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){ |
| 169 | while( db.nBeforeCommit ){ |
| 170 | db.nBeforeCommit--; |
| 171 | sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0); |
| 172 | sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]); |
| 173 | } |
| 174 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -164,10 +164,11 @@ | |
| 164 | if( rollbackFlag ) db.doRollback = 1; |
| 165 | db.nBegin--; |
| 166 | if( db.nBegin==0 ){ |
| 167 | int i; |
| 168 | if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){ |
| 169 | sqlite3_exec(g.db, "PRAGMA application_id=1598444364;", 0, 0, 0); |
| 170 | while( db.nBeforeCommit ){ |
| 171 | db.nBeforeCommit--; |
| 172 | sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0); |
| 173 | sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]); |
| 174 | } |
| 175 |
+4
| --- src/schema.c | ||
| +++ src/schema.c | ||
| @@ -178,10 +178,14 @@ | ||
| 178 | 178 | @ CREATE TABLE concealed( |
| 179 | 179 | @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content |
| 180 | 180 | @ mtime DATE, -- Time created. Seconds since 1970 |
| 181 | 181 | @ content TEXT -- Content intended to be concealed |
| 182 | 182 | @ ); |
| 183 | +@ | |
| 184 | +@ -- The application ID helps the unix "file" command to identify the | |
| 185 | +@ -- database as a fossil repository. | |
| 186 | +@ PRAGMA application_id=1598444364; -- Equivalent to '_FSL' | |
| 183 | 187 | ; |
| 184 | 188 | |
| 185 | 189 | /* |
| 186 | 190 | ** The default reportfmt entry for the schema. This is in an extra |
| 187 | 191 | ** script so that (configure reset) can install the default report. |
| 188 | 192 |
| --- src/schema.c | |
| +++ src/schema.c | |
| @@ -178,10 +178,14 @@ | |
| 178 | @ CREATE TABLE concealed( |
| 179 | @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content |
| 180 | @ mtime DATE, -- Time created. Seconds since 1970 |
| 181 | @ content TEXT -- Content intended to be concealed |
| 182 | @ ); |
| 183 | ; |
| 184 | |
| 185 | /* |
| 186 | ** The default reportfmt entry for the schema. This is in an extra |
| 187 | ** script so that (configure reset) can install the default report. |
| 188 |
| --- src/schema.c | |
| +++ src/schema.c | |
| @@ -178,10 +178,14 @@ | |
| 178 | @ CREATE TABLE concealed( |
| 179 | @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content |
| 180 | @ mtime DATE, -- Time created. Seconds since 1970 |
| 181 | @ content TEXT -- Content intended to be concealed |
| 182 | @ ); |
| 183 | @ |
| 184 | @ -- The application ID helps the unix "file" command to identify the |
| 185 | @ -- database as a fossil repository. |
| 186 | @ PRAGMA application_id=1598444364; -- Equivalent to '_FSL' |
| 187 | ; |
| 188 | |
| 189 | /* |
| 190 | ** The default reportfmt entry for the schema. This is in an extra |
| 191 | ** script so that (configure reset) can install the default report. |
| 192 |