Skip to content

Commit

Permalink
🐞 allow missing migration files when checking migration status
Browse files Browse the repository at this point in the history
We already pass `allow_missing_migration_files: true` when running
migrations. This flag is also required when checking if migrations are
current. It is now passed both places we call in to `Sequel::Migrator`.

Signed-off-by: Brian Upton <brian.upton@broadcom.com>
Signed-off-by: Joseph Palermo <joseph.palermo@broadcom.com>
  • Loading branch information
aramprice authored and ystros committed Nov 22, 2024
1 parent ef394ee commit 5f2c2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bosh-director/lib/db_migrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(database, options = {}, retry_interval = DEFAULT_RETRY_INTERVAL)
end

def current?
Sequel::Migrator.is_current?(@database, MIGRATIONS_DIR)
Sequel::Migrator.is_current?(@database, MIGRATIONS_DIR, @options)
end

def migrate
Expand Down

0 comments on commit 5f2c2ee

Please sign in to comment.