phoenix/database/migrations_test.go
Ivan R. 5aa2cee5b1
chore: migrate to database/sql
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.
2024-03-26 00:40:52 +05:00

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)
}
}