Clean up SQLStorage docstring to refer to the model

Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
Ying Li 2015-10-12 17:10:33 -07:00
parent 4eaf6dc15c
commit 85a447f701
1 changed files with 1 additions and 17 deletions

View File

@ -7,23 +7,7 @@ import (
)
// SQLStorage implements a versioned store using a relational database.
// The database table must look like:
// CREATE TABLE `tuf_files` (
// `id` INT AUTO_INCREMENT,
// `gun` VARCHAR(255) NOT NULL
// `role` VARCHAR(255) NOT NULL
// `version` INT
// `data` LONGBLOB
// PRIMARY KEY (`id`)
// UNIQUE INDEX (`gun`, `role`, `version`)
// ) DEFAULT CHARSET=utf8;
//
// CREATE TABLE `timestamp_keys` (
// `gun` VARCHAR(255),
// `cipher` VARCHAR(30),
// `public` BLOB NOT NULL,
// PRIMARY KEY (`gun`)
// ) DEFAULT CHARSET=utf8;
// See server/storage/models.go
type SQLStorage struct {
gorm.DB
}