Add Up command to create database and migrate

This commit is contained in:
Adrian Macneil 2015-11-27 10:34:42 -08:00
parent 1c4cf2c122
commit 164ec81370
5 changed files with 125 additions and 31 deletions

View file

@ -11,6 +11,7 @@ import (
// Driver provides top level database functions
type Driver interface {
Open(*url.URL) (*sql.DB, error)
DatabaseExists(*url.URL) (bool, error)
CreateDatabase(*url.URL) error
DropDatabase(*url.URL) error
CreateMigrationsTable(*sql.DB) error