mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-20 03:40:29 +05:00
18 lines
284 B
Go
18 lines
284 B
Go
package database
|
|
|
|
import (
|
|
"testing"
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
)
|
|
|
|
func TestMigrations(t *testing.T) {
|
|
initTestDatabase(t)
|
|
defer deleteTestDatabase(t)
|
|
|
|
// We should be able to call the function multiple times.
|
|
if err := ApplyMigrations(); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|