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
This commit is contained in:
Viktor Torstensson 2025-07-24 02:59:28 +02:00
parent ff0eaa9774
commit a5f727279f
No known key found for this signature in database
GPG key ID: 961CC8259AE675D4
2 changed files with 2 additions and 2 deletions

View file

@ -6,4 +6,4 @@ import (
)
//go:embed sqlc/migrations/*.*.sql
var sqlSchemas embed.FS
var SqlSchemas embed.FS

View file

@ -12,7 +12,7 @@ var (
LitdMigrationStream = sqldb.MigrationStream{
TrackingTableName: pgx.DefaultMigrationsTable,
SQLFileDirectory: "sqlc/migrations",
SQLFiles: sqlSchemas,
SQLFiles: SqlSchemas,
// LatestMigrationVersion is the latest migration version of the
// database. This is used to implement downgrade protection for