mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
19 lines
245 B
Go
19 lines
245 B
Go
package setup
|
|
|
|
import (
|
|
"github.com/iwind/TeaGo/dbs"
|
|
"testing"
|
|
)
|
|
|
|
func TestUpgradeSQLData(t *testing.T) {
|
|
db, err := dbs.Default()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
err = UpgradeSQLData(db)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log("ok")
|
|
}
|