home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / tools_install / cvsnt-2.5.03.2151.msi / cvsnt.cab / create_tables_mssql.sql < prev    next >
Encoding:
Text File  |  2005-11-14  |  1.2 KB  |  51 lines

  1. -- MS SQL specific configuration script
  2.  
  3. Create Table SessionLog (Id Integer Identity Primary Key Not Null,
  4.     Command nvarchar(32),
  5.     Date datetime,
  6.     Hostname nvarchar(256),
  7.     Username nvarchar(256),
  8.     SessionId nvarchar(32),
  9.     VirtRepos nvarchar(256),
  10.     PhysRepos nvarchar(256),
  11.     Client nvarchar(64));
  12.  
  13. Create Table CommitLog (Id Integer Identity Primary Key Not Null,
  14.     SessionId Integer,
  15.     Directory nvarchar(256),
  16.     Message text,
  17.     Type char(1),
  18.     Filename nvarchar(256),
  19.     Tag nvarchar(64),
  20.     BugId nvarchar(64),
  21.     OldRev nvarchar(64),
  22.     NewRev nvarchar(64),
  23.     Added Integer,
  24.     Removed Integer,
  25.     Diff text);
  26.  
  27. Create Index Commit_SessionId On CommitLog(SessionId);
  28.  
  29. Create Table HistoryLog (Id Integer Identity Primary Key Not Null,
  30.     SessionId Integer,
  31.     Type char(1),
  32.     WorkDir nvarchar(256),
  33.     Revs nvarchar(64),
  34.     Name nvarchar(256),
  35.     BugId nvarchar(64),
  36.     Message text);
  37.  
  38. Create Index History_SessionId on HistoryLog(SessionId);
  39.  
  40. Create Table TagLog (Id Integer Identity Primary Key Not Null,
  41.     SessionId Integer,
  42.     Directory nvarchar(256),
  43.     Filename nvarchar(256),
  44.     Tag nvarchar(64),
  45.     Revision nvarchar(64),
  46.     Message text,
  47.     Action nvarchar(32),
  48.     Type char(1));
  49.     
  50. Create Index Tag_SessionId on TagLog(SessionId);
  51.