Moved schema.go to schema Package

This commit is contained in:
Brad Rydzewski
2014-06-12 15:02:19 -07:00
parent 170135cb1d
commit 47ea0cbd29
7 changed files with 108 additions and 109 deletions

View File

@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/drone/drone/server/database"
"github.com/drone/drone/server/database/schema"
"github.com/drone/drone/server/database/testdata"
_ "github.com/mattn/go-sqlite3"
)
@@ -16,7 +16,7 @@ var db *sql.DB
// setup the test database and test fixtures
func setup() {
db, _ = sql.Open("sqlite3", ":memory:")
database.Load(db)
schema.Load(db)
testdata.Load(db)
}

View File

@@ -5,7 +5,7 @@ import (
//"strings"
"testing"
"github.com/drone/drone/server/database"
"github.com/drone/drone/server/database/schema"
"github.com/drone/drone/server/database/testdata"
"github.com/drone/drone/server/resource/repo"
"github.com/drone/drone/server/resource/user"
@@ -18,7 +18,7 @@ var db *sql.DB
// setup the test database and test fixtures
func setup() {
db, _ = sql.Open("sqlite3", ":memory:")
database.Load(db)
schema.Load(db)
testdata.Load(db)
}

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"testing"
"github.com/drone/drone/server/database"
"github.com/drone/drone/server/database/schema"
"github.com/drone/drone/server/database/testdata"
_ "github.com/mattn/go-sqlite3"
)
@@ -15,7 +15,7 @@ var db *sql.DB
// setup the test database and test fixtures
func setup() {
db, _ = sql.Open("sqlite3", ":memory:")
database.Load(db)
schema.Load(db)
testdata.Load(db)
}

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"testing"
"github.com/drone/drone/server/database"
"github.com/drone/drone/server/database/schema"
"github.com/drone/drone/server/database/testdata"
_ "github.com/mattn/go-sqlite3"
)
@@ -15,7 +15,7 @@ var db *sql.DB
// setup the test database and test fixtures
func setup() {
db, _ = sql.Open("sqlite3", ":memory:")
database.Load(db)
schema.Load(db)
testdata.Load(db)
}