Koha/marc/benchmarks/benchmarkschema
2002-05-30 19:55:18 +00:00

36 lines
1.2 KiB
Text

CREATE TABLE marc_subfield_table (
subfieldid bigint(20) unsigned NOT NULL auto_increment,
tagid bigint(20) NOT NULL default '0',
tag char(3) NOT NULL default '',
bibid bigint(20) NOT NULL default '0',
subfieldorder tinyint(4) NOT NULL default '0',
subfieldcode char(1) NOT NULL default '',
subfieldvalue varchar(255) default NULL,
valuebloblink bigint(20) default NULL,
PRIMARY KEY (subfieldid),
KEY (bibid,tagid,tag,subfieldcode),
KEY (bibid,tag,subfieldcode,subfieldvalue)
) TYPE=MyISAM;
CREATE TABLE marc_field_table_sergey (
fieldid bigint(20) unsigned NOT NULL auto_increment,
bibid bigint(20) NOT NULL default '0',
tagid bigint(20) NOT NULL default '0',
tag char(3) NOT NULL default '',
PRIMARY KEY (fieldid),
KEY (bibid),
KEY (tagid),
KEY (tag)
);
CREATE TABLE marc_subfield_table_sergey (
subfieldid bigint(20) unsigned NOT NULL auto_increment,
fieldid bigint(20),
subfieldorder tinyint(4) NOT NULL default '0',
subfieldcode char(1) NOT NULL default '',
subfieldvalue varchar(255) default NULL,
valuebloblink bigint(20) default NULL,
PRIMARY KEY (subfieldid),
KEY (fieldid)
);