Skip to content

Commit 8e7951a

Browse files
committed
nit
1 parent 877acd0 commit 8e7951a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

dbos/system_database.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ func createDatabaseIfNotExists(ctx context.Context, databaseURL string, logger *
118118
//go:embed migrations/1_initial_dbos_schema.sql
119119
var migration1 string
120120

121+
type migrationFile struct {
122+
version int64
123+
sql string
124+
}
125+
121126
// migrations contains all migration files with their version numbers
122127
var migrations = []migrationFile{
123128
{version: 1, sql: migration1},
@@ -218,12 +223,6 @@ func runMigrations(databaseURL string) error {
218223
return nil
219224
}
220225

221-
type migrationFile struct {
222-
version int64
223-
sql string
224-
}
225-
226-
227226
// New creates a new SystemDatabase instance and runs migrations
228227
func newSystemDatabase(ctx context.Context, databaseURL string, logger *slog.Logger) (systemDatabase, error) {
229228
// Create the database if it doesn't exist

0 commit comments

Comments
 (0)