Lines 3981-3989
CREATE TABLE biblio_metadata (
Link Here
|
3981 |
`format` VARCHAR(16) NOT NULL, |
3981 |
`format` VARCHAR(16) NOT NULL, |
3982 |
`marcflavour` VARCHAR(16) NOT NULL, |
3982 |
`marcflavour` VARCHAR(16) NOT NULL, |
3983 |
`metadata` LONGTEXT NOT NULL, |
3983 |
`metadata` LONGTEXT NOT NULL, |
|
|
3984 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, |
3984 |
PRIMARY KEY(id), |
3985 |
PRIMARY KEY(id), |
3985 |
UNIQUE KEY `biblio_metadata_uniq_key` (`biblionumber`,`format`,`marcflavour`), |
3986 |
UNIQUE KEY `biblio_metadata_uniq_key` (`biblionumber`,`format`,`marcflavour`), |
3986 |
CONSTRAINT `record_metadata_fk_1` FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE |
3987 |
CONSTRAINT `record_metadata_fk_1` FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
3988 |
KEY `timestamp` (`timestamp`) |
3987 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3989 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3988 |
|
3990 |
|
3989 |
-- |
3991 |
-- |
Lines 3997-4005
CREATE TABLE deletedbiblio_metadata (
Link Here
|
3997 |
`format` VARCHAR(16) NOT NULL, |
3999 |
`format` VARCHAR(16) NOT NULL, |
3998 |
`marcflavour` VARCHAR(16) NOT NULL, |
4000 |
`marcflavour` VARCHAR(16) NOT NULL, |
3999 |
`metadata` LONGTEXT NOT NULL, |
4001 |
`metadata` LONGTEXT NOT NULL, |
|
|
4002 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, |
4000 |
PRIMARY KEY(id), |
4003 |
PRIMARY KEY(id), |
4001 |
UNIQUE KEY `deletedbiblio_metadata_uniq_key` (`biblionumber`,`format`,`marcflavour`), |
4004 |
UNIQUE KEY `deletedbiblio_metadata_uniq_key` (`biblionumber`,`format`,`marcflavour`), |
4002 |
CONSTRAINT `deletedrecord_metadata_fk_1` FOREIGN KEY (biblionumber) REFERENCES deletedbiblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE |
4005 |
CONSTRAINT `deletedrecord_metadata_fk_1` FOREIGN KEY (biblionumber) REFERENCES deletedbiblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
4006 |
KEY `timestamp` (`timestamp`) |
4003 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
4007 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
4004 |
|
4008 |
|
4005 |
-- |
4009 |
-- |
4006 |
- |
|
|