Skip to content

Commit 65ac971

Browse files
db: export the embed.FS SqlSchemas
In upcoming commits, other packages than the `db` package will need to be able to access the `SqlSchemas`. This commit exports it in preparation for those changes
1 parent 06b8f1c commit 65ac971

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/schemas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import (
66
)
77

88
//go:embed sqlc/migrations/*.*.sql
9-
var sqlSchemas embed.FS
9+
var SqlSchemas embed.FS

db/sql_migrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var (
1010
LitdMigrationStream = sqldb.MigrationStream{
1111
MigrateTableName: pgx.DefaultMigrationsTable,
1212
SQLFileDirectory: "sqlc/migrations",
13-
Schemas: sqlSchemas,
13+
Schemas: SqlSchemas,
1414

1515
// LatestMigrationVersion is the latest migration version of the
1616
// database. This is used to implement downgrade protection for

0 commit comments

Comments
 (0)