mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-20 03:40:29 +05:00
Ivan R.
5aa2cee5b1
Since I started simplifying, I decided to abandon ORM. I won’t say that this makes much sense, everything works more or less as before. Except that the size of the program has decreased slightly again, by about a megabyte.
17 lines
283 B
Go
17 lines
283 B
Go
package database
|
|
|
|
import (
|
|
_ "github.com/mattn/go-sqlite3"
|
|
"testing"
|
|
)
|
|
|
|
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)
|
|
}
|
|
}
|