Skip to content

Commit

Permalink
chore: don't export migration table
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Dec 20, 2024
1 parent e404e1c commit eb1dbf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
// Use a custom table name so that we don't run into collisions when OpenFGA or other tools
// are using the same DB as JIMM in our Docker Compose setup.
const (
MigrationTableName = "jimm_schema_migrations"
migrationTableName = "jimm_schema_migrations"
)

// A Database provides access to the database model. A Database instance
Expand Down Expand Up @@ -95,7 +95,7 @@ func (d *Database) migrateFromSource(ctx context.Context, fs embed.FS, sqlPath s
return fmt.Errorf("failed to obtain DB conn: %w", err)
}

driver, err := postgres.WithConnection(ctx, conn, &postgres.Config{MigrationsTable: MigrationTableName})
driver, err := postgres.WithConnection(ctx, conn, &postgres.Config{MigrationsTable: migrationTableName})
if err != nil {
return fmt.Errorf("unable to create new driver instance: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions internal/db/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var (
OAuthKeyTag = oauthKeyTag
OAuthSessionStoreSecretTag = oauthSessionStoreSecretTag
NewUUID = &newUUID
MigrationTableName = migrationTableName
)

func (d *Database) MigrateFromSource(ctx context.Context, fs embed.FS, sqlPath string) error {
Expand Down

0 comments on commit eb1dbf7

Please sign in to comment.