Fossil SCM

Modify the schema to allow additional space for hard-coded tag-ids. Updating to this version requires a "rebuild".

drh 2011-02-25 01:19 trunk
Commit f8b3d24759e0c085713087a7580f39b72e0d6d96
1 file changed +3 -2
+3 -2
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
4040
** a date) which can change frequently. When the content schema changes,
4141
** we have to execute special procedures to update the schema. When
4242
** the aux schema changes, all we need to do is rebuild the database.
4343
*/
4444
#define CONTENT_SCHEMA "1"
45
-#define AUX_SCHEMA "2011-01-28"
45
+#define AUX_SCHEMA "2011-02-25"
4646
4747
#endif /* INTERFACE */
4848
4949
5050
/*
@@ -390,13 +390,14 @@
390390
# define TAG_HIDDEN 5 /* Do not display or sync */
391391
# define TAG_PRIVATE 6 /* Display but do not sync */
392392
# define TAG_CLUSTER 7 /* A cluster */
393393
# define TAG_BRANCH 8 /* Value is name of the current branch */
394394
# define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
395
+# define TAG_PARENT 10 /* Change to parentage on a checkin */
395396
#endif
396397
#if EXPORT_INTERFACE
397
-# define MAX_INT_TAG 9 /* The largest pre-assigned tag id */
398
+# define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
398399
#endif
399400
400401
/*
401402
** The schema for the locate FOSSIL database file found at the root
402403
** of very check-out. This database contains the complete state of
403404
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2011-01-28"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -390,13 +390,14 @@
390 # define TAG_HIDDEN 5 /* Do not display or sync */
391 # define TAG_PRIVATE 6 /* Display but do not sync */
392 # define TAG_CLUSTER 7 /* A cluster */
393 # define TAG_BRANCH 8 /* Value is name of the current branch */
394 # define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
 
395 #endif
396 #if EXPORT_INTERFACE
397 # define MAX_INT_TAG 9 /* The largest pre-assigned tag id */
398 #endif
399
400 /*
401 ** The schema for the locate FOSSIL database file found at the root
402 ** of very check-out. This database contains the complete state of
403
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2011-02-25"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -390,13 +390,14 @@
390 # define TAG_HIDDEN 5 /* Do not display or sync */
391 # define TAG_PRIVATE 6 /* Display but do not sync */
392 # define TAG_CLUSTER 7 /* A cluster */
393 # define TAG_BRANCH 8 /* Value is name of the current branch */
394 # define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
395 # define TAG_PARENT 10 /* Change to parentage on a checkin */
396 #endif
397 #if EXPORT_INTERFACE
398 # define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
399 #endif
400
401 /*
402 ** The schema for the locate FOSSIL database file found at the root
403 ** of very check-out. This database contains the complete state of
404

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button