22 lines
647 B
SQL
22 lines
647 B
SQL
|
|
-- +goose Up
|
|
-- SQL in section 'Up' is executed when this migration is applied
|
|
|
|
DROP TABLE `sctReceipts`;
|
|
|
|
-- +goose Down
|
|
-- SQL section 'Down' is executed when this migration is rolled back
|
|
|
|
CREATE TABLE `sctReceipts` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`sctVersion` tinyint(1) NOT NULL,
|
|
`logID` varchar(255) NOT NULL,
|
|
`timestamp` bigint(20) NOT NULL,
|
|
`extensions` blob DEFAULT NULL,
|
|
`signature` blob DEFAULT NULL,
|
|
`certificateSerial` varchar(255) NOT NULL,
|
|
`LockCol` bigint(20) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `certificateSerial_logID` (`certificateSerial`,`logID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|