chore: add visibility migrate scripts

This commit is contained in:
Steven
2024-09-01 08:40:16 +08:00
parent f276c979fa
commit 3937abb17b
5 changed files with 108 additions and 4 deletions

View File

@ -13,5 +13,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) {
currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
require.NoError(t, err)
require.Equal(t, "1.0.0", currentSchemaVersion)
require.Equal(t, "1.0.1", currentSchemaVersion)
}

View File

@ -32,7 +32,7 @@ func GetTestingProfile(t *testing.T) *profile.Profile {
// Get a temporary directory for the test data.
dir := t.TempDir()
mode := "dev"
mode := "prod"
port := getUnusedPort()
driver := getDriverFromEnv()
dsn := os.Getenv("DSN")