From 0e83e76ef4c9eecef5ef8d60557601d3d6ffbe93 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 17 Feb 2014 22:41:56 -0700 Subject: [PATCH] removed unused migration sample file --- pkg/build/git/git.go | 9 +++++++++ pkg/database/migrate/migrate_20150209.go | 19 ------------------- pkg/database/schema/schema.sql | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) delete mode 100644 pkg/database/migrate/migrate_20150209.go diff --git a/pkg/build/git/git.go b/pkg/build/git/git.go index 334977e7..36e67f13 100644 --- a/pkg/build/git/git.go +++ b/pkg/build/git/git.go @@ -7,7 +7,16 @@ const ( // Git stores the configuration details for // executing Git commands. type Git struct { + // Depth options instructs git to create a shallow + // clone with a history truncated to the specified + // number of revisions. Depth *int `yaml:"depth,omitempty"` + + // The name of a directory to clone into. + // TODO this still needs to be implemented. this field is + // critical for forked Go projects, that need to clone + // to a specific repository. + Path string `yaml:"path,omitempty"` } // GitDepth returns GitDefaultDepth diff --git a/pkg/database/migrate/migrate_20150209.go b/pkg/database/migrate/migrate_20150209.go deleted file mode 100644 index 92164eb8..00000000 --- a/pkg/database/migrate/migrate_20150209.go +++ /dev/null @@ -1,19 +0,0 @@ -package migrate - -import ( - "database/sql" -) - -type Change_20150209 struct{} - -func (Change_20150209) Up(tx *sql.Tx) error { - return nil -} - -func (Change_20150209) Down(tx *sql.Tx) error { - return nil -} - -func (Change_20150209) Revision() int64 { - return 20150209 -} diff --git a/pkg/database/schema/schema.sql b/pkg/database/schema/schema.sql index d0babf32..f3ec6f0e 100644 --- a/pkg/database/schema/schema.sql +++ b/pkg/database/schema/schema.sql @@ -51,7 +51,7 @@ CREATE TABLE repos ( ,private BOOLEAN ,disabled BOOLEAN ,disabled_pr BOOLEAN - ,priveleged BOOLEAN + ,privileged BOOLEAN ,timeout INTEGER ,scm VARCHAR(25)