Changeset 6663 for trunk/tools/database/CreateTables.sql
- Timestamp:
- Sep 6, 2001, 5:07:32 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/CreateTables.sql
r3916 r6663 1 -- $Id: CreateTables.sql,v 1.1 7 2000-08-02 01:22:34bird Exp $1 -- $Id: CreateTables.sql,v 1.18 2001-09-06 03:07:31 bird Exp $ 2 2 -- 3 3 -- Create all tables. … … 103 103 104 104 -- 105 -- This table holds design notes (per dll). 105 -- This table holds design notes (per module). 106 -- 107 -- seqnbrnote is a unique number used to order the 108 -- sections within a design note. 109 -- level is the nesting level of the section. 110 -- 0 is the top section in the note. 106 111 -- 107 112 CREATE TABLE designnote ( 108 refcode INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,113 refcode INTEGER NOT NULL AUTO_INCREMENT, 109 114 dll TINYINT NOT NULL, 110 115 file INTEGER NOT NULL, 111 seqnbrfile SMALLINT NOT NULL, 116 line INTEGER NOT NULL DEFAULT -1, 117 seqnbrnote SMALLINT NOT NULL, 118 level TINYINT NOT NULL, 112 119 seqnbr INTEGER NOT NULL, 113 line INTEGER NOT NULL DEFAULT -1, 114 title TEXT, 120 name TEXT, 115 121 note TEXT NOT NULL, 116 UNIQUE u1(refcode), 117 INDEX u2(file, seqnbrfile, seqnbr, dll) 122 PRIMARY KEY(refcode, seqnbrnote), 123 UNIQUE u1(refcode, seqnbrnote), 124 UNIQUE u2(refcode, seqnbrnote, level), 125 UNIQUE u3(dll, seqnbr, level, seqnbrnote, refcode), 126 INDEX i1(file, refcode) 118 127 ); 119 128
Note:
See TracChangeset
for help on using the changeset viewer.