Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Change the UNVERSIONED table to use an INTEGER PRIMARY KEY with AUTOINCREMENT. This is a precondition to adding search to unversioned files. To rebuild legacy repos, first DROP the old unversioned table, then run "fossil sync -u". |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
08cbc7b2e4fc2f618826583198a25190 |
| User & Date: | drh 2016-08-30 16:34:39.194 |
Context
|
2016-08-30
| ||
| 17:06 | Fix incorrect encoding of hyperlinks in search results. ... (check-in: 9dba92f4a8 user: drh tags: trunk) | |
| 16:34 | Change the UNVERSIONED table to use an INTEGER PRIMARY KEY with AUTOINCREMENT. This is a precondition to adding search to unversioned files. To rebuild legacy repos, first DROP the old unversioned table, then run "fossil sync -u". ... (check-in: 08cbc7b2e4 user: drh tags: trunk) | |
| 15:49 | Fix overlength source lines in diff.c. Raise limits and fix inappropriate use of memcmp() in mkindex.c. ... (check-in: df80ab0ce9 user: drh tags: trunk) | |
Changes
Changes to src/unversioned.c.
| ︙ | ︙ | |||
29 30 31 32 33 34 35 | #include <time.h> /* ** SQL code to implement the tables needed by the unversioned. */ static const char zUnversionedInit[] = @ CREATE TABLE IF NOT EXISTS repository.unversioned( | > | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
#include <time.h>
/*
** SQL code to implement the tables needed by the unversioned.
*/
static const char zUnversionedInit[] =
@ CREATE TABLE IF NOT EXISTS repository.unversioned(
@ uvid INTEGER PRIMARY KEY AUTOINCREMENT, -- unique ID for this file
@ name TEXT UNIQUE, -- Name of the uv file
@ rcvid INTEGER, -- Where received from
@ mtime DATETIME, -- timestamp. Seconds since 1970.
@ hash TEXT, -- Content hash. NULL if a delete marker
@ sz INTEGER, -- size of content after decompression
@ encoding INT, -- 0: plaintext. 1: zlib compressed
@ content BLOB -- content of the file. NULL if oversized
@ );
;
/*
** Make sure the unversioned table exists in the repository.
*/
void unversioned_schema(void){
if( !db_table_exists("repository", "unversioned") ){
|
| ︙ | ︙ |