Edgewall Software

Changes between Version 2 and Version 3 of GenericTrac


Ignore:
Timestamp:
Feb 7, 2007, 9:43:04 AM (17 years ago)
Author:
Christian Boos
Comment:

Note about #130

Legend:

Unmodified
Added
Removed
Modified
  • GenericTrac

    v2 v3  
    44 - TracDev/Proposals/DataModel
    55 - 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
    68
    79See also [googlegroups:trac-dev:8cf3f5fe0e476ce5 this mail].
    810
     11== Design Notes ==
     12
     13As 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
     15Each resource related table should probably get a `project` identifier field.
    916
    1017== Current Status ==
     
    3441--
    3542create table milestone_prop (
     43 project text,
    3644 id    text,
     45 --
    3746 name  text,
    3847 value text
     
    4352-- record Milestone change metadata
    4453--
    45 create table milestone_rev (
     54create table milestone_revision (
    4655 tid            int primary key,
     56 --
    4757 date           int,
    4858 authname       text,
     
    5262);
    5363
    54 create index milestone_date_idx on milestone_journal ( date );
    55 create index milestone_authname_idx on milestone_journal ( authname, authenticated );
     64create index milestone_date_idx on milestone_revision ( date );
     65create index milestone_authname_idx on milestone_revision ( authname, authenticated );
    5666
    5767-- Track changes of Milestone properties
    5868--
    59 create table milestone_history (
     69create table milestone_change (
    6070 tid   int,
     71 project text,
    6172 id    text,
     73 --
    6274 name  text,
    6375 value text,
    64  unique (tid, id)
     76 unique (tid, project, id)
    6577);
    6678
     
    6880--
    6981create table milestone_schema (
    70  name     text primary key,
     82 project  text,
     83 name     text,
     84 --
     85 revprop  char,
    7186 type     text,
    7287 detail   text,
    7388 value    text,
    7489 order    int,
    75  revprop  char
     90 unique (project, name)
    7691);
    7792}}}
     
    7994The existing `milestone` table can be kept, it will simply not be used anymore.
    8095This will allow to test the branch within existing environments.
     96
     97The `name` is not unique in `milestone_change`, to allow multiple values (#918)