mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
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:
parent
ff0eaa9774
commit
a5f727279f
2 changed files with 2 additions and 2 deletions
|
|
@ -6,4 +6,4 @@ import (
|
|||
)
|
||||
|
||||
//go:embed sqlc/migrations/*.*.sql
|
||||
var sqlSchemas embed.FS
|
||||
var SqlSchemas embed.FS
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue