Changes between Version 2 and Version 3 of GenericTrac
- Timestamp:
- Feb 7, 2007, 9:43:04 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenericTrac
v2 v3 4 4 - TracDev/Proposals/DataModel 5 5 - TracDev/Proposals/Journaling 6 - WikiContext are used as ''resource descriptors'' and have a `.resource` field 7 which enables one to fetch the corresponding data model instance 6 8 7 9 See also [googlegroups:trac-dev:8cf3f5fe0e476ce5 this mail]. 8 10 11 == Design Notes == 12 13 As this will be a major redesign of the data model, it will also be a good opportunity to tackle the ''[TracMultipleProjects multiple project support]'' in Trac (#130). 14 15 Each resource related table should probably get a `project` identifier field. 9 16 10 17 == Current Status == … … 34 41 -- 35 42 create table milestone_prop ( 43 project text, 36 44 id text, 45 -- 37 46 name text, 38 47 value text … … 43 52 -- record Milestone change metadata 44 53 -- 45 create table milestone_rev (54 create table milestone_revision ( 46 55 tid int primary key, 56 -- 47 57 date int, 48 58 authname text, … … 52 62 ); 53 63 54 create index milestone_date_idx on milestone_ journal( date );55 create index milestone_authname_idx on milestone_ journal( authname, authenticated );64 create index milestone_date_idx on milestone_revision ( date ); 65 create index milestone_authname_idx on milestone_revision ( authname, authenticated ); 56 66 57 67 -- Track changes of Milestone properties 58 68 -- 59 create table milestone_ history(69 create table milestone_change ( 60 70 tid int, 71 project text, 61 72 id text, 73 -- 62 74 name text, 63 75 value text, 64 unique (tid, id)76 unique (tid, project, id) 65 77 ); 66 78 … … 68 80 -- 69 81 create table milestone_schema ( 70 name text primary key, 82 project text, 83 name text, 84 -- 85 revprop char, 71 86 type text, 72 87 detail text, 73 88 value text, 74 89 order int, 75 revprop char90 unique (project, name) 76 91 ); 77 92 }}} … … 79 94 The existing `milestone` table can be kept, it will simply not be used anymore. 80 95 This will allow to test the branch within existing environments. 96 97 The `name` is not unique in `milestone_change`, to allow multiple values (#918)