From a5f727279fe082c38ffb44822ee4cc740cdcb58d Mon Sep 17 00:00:00 2001 From: Viktor Torstensson Date: Thu, 24 Jul 2025 02:59:28 +0200 Subject: [PATCH] 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 --- db/schemas.go | 2 +- db/sql_migrations.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/schemas.go b/db/schemas.go index 1a7a2096..dce7fa84 100644 --- a/db/schemas.go +++ b/db/schemas.go @@ -6,4 +6,4 @@ import ( ) //go:embed sqlc/migrations/*.*.sql -var sqlSchemas embed.FS +var SqlSchemas embed.FS diff --git a/db/sql_migrations.go b/db/sql_migrations.go index 34f0959b..9ad78628 100644 --- a/db/sql_migrations.go +++ b/db/sql_migrations.go @@ -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