Changeset 16872 for trunk/DataStoreServer/scripts/tabledefs.sql
- Timestamp:
- Mar 7, 2008, 12:06:52 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStoreServer/scripts/tabledefs.sql (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStoreServer/scripts/tabledefs.sql
r16762 r16872 5 5 6 6 # 7 # TODO: arguably we should put prod_col_n in another table, but since the 8 # number of products will be small, it is simpler to just keep them here 9 # 7 # 10 8 11 9 CREATE TABLE dsProduct ( … … 16 14 type VARCHAR(64), 17 15 description VARCHAR(255), 18 path_name VARCHAR(255), 19 prod_col_0 VARCHAR(64), # names of product specific columns 20 prod_col_1 VARCHAR(64), # shows up in the header list 16 prod_col_0 VARCHAR(64), # labels for product specific columns 17 prod_col_1 VARCHAR(64), # these appear in the header list 21 18 prod_col_2 VARCHAR(64), 22 19 prod_col_3 VARCHAR(64), … … 31 28 prod_id BIGINT(20), 32 29 fileset_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, 33 fileset_name VARCHAR(64) NOT NULL UNIQUE,30 fileset_name VARCHAR(64) NOT NULL, 34 31 reg_time datetime NOT NULL, 35 32 type VARCHAR(64), … … 65 62 66 63 # 67 # names of the type specific columns for a data store file type 68 # 69 # if not null, the cols will show up in the indexes 64 # labels for the type specific columns for each Data Store file type 70 65 # 71 66 … … 78 73 ) Engine=InnoDB DEFAULT CHARSET=latin1; 79 74 80 # type specific column sfor type chip75 # type specific column for type chip 81 76 INSERT INTO dsFileType (type, type_col_0) VALUES('chip', 'chipname'); 77 78 # none of these types have any type specific columns 82 79 INSERT INTO dsFileType (type) VALUES('psrequest'); 83 80 INSERT INTO dsFileType (type) VALUES('psresults'); 84 81 INSERT INTO dsFileType (type) VALUES('pstamp'); 85 86 INSERT INTO dsProduct (prod_id, prod_name, last_update, last_fs, type, description, path_name)87 VALUES (0, 'pstamprequest', UTC_TIMESTAMP(), NULL, 'psrequest', 'Postage Stamp Request',88 '/var/www/html/ds/dsroot');89 90 INSERT INTO dsProduct (prod_id, prod_name, last_update, last_fs, type, description, path_name)91 VALUES (0, 'sample', UTC_TIMESTAMP(), NULL, 'psresult', 'Postage Stamp Request', '/var/www/html/ds/dsroot');92 93 #94 # the width of the product specific column header strings should match the usual width of the columns95 # to make the fileset lists look neat (note 'telescope pointing')96 #97 98 INSERT INTO dsProduct VALUES (0, 'gpc1', UTC_TIMESTAMP(), NULL, 'image',99 'Gigapixel Camera 1', '/var/www/html/ds/dsroot', 'telescope pointing ', 'etime', 'f',100 'airm', 'comments', NULL, NULL, NULL);101 102 INSERT INTO dsFileset VALUES(1, 0, 'fileset1', UTC_TIMESTAMP(), 'PSTAMP');103 INSERT INTO dsFileset VALUES(1, 0, 'fileset2', UTC_TIMESTAMP(), 'PSTAMP');104 INSERT INTO dsFileset VALUES(1, 0, 'fileset13', UTC_TIMESTAMP(), 'PSTAMP');105 106 INSERT INTO dsFile VALUES(LAST_INSERT_ID(), 0, 'fileset13.fits', 8640, 'b8217dcb393de3af02d915d77025021d',107 'psrequest');108 109 110 111 112
Note:
See TracChangeset
for help on using the changeset viewer.
