$changelogGateway
$changelogGateway : \Dewdrop\Db\Dbdeploy\ChangelogGateway
The gateway object used to write to the changelog table.
Backfill the dbdeploy changelog without actually running SQL scripts. This can be useful if your DB schema is out of sync with your changelog table because someone, for example, applied a schema change manually rather than using dbdeploy's Apply command.
This command works on a single named changeset and will back fill up to a maximum revision number that you specify.
$changelogGateway : \Dewdrop\Db\Dbdeploy\ChangelogGateway
The gateway object used to write to the changelog table.
$revision : integer
The maximum revision number for which you'd like to backfill the log. For example, if you specify a revision of 7 and the log is currently at revision 2 for the given changeset, then revisions 3-7 will be added to the log, leaving revisions 8 and greater to be applied later.
__construct(\Dewdrop\Db\Dbdeploy\ChangelogGateway $changelogGateway, array $changesets, string $changesetName, integer $revision)
Note that $changsetName and $revision are required to run the backfill command.
\Dewdrop\Db\Dbdeploy\ChangelogGateway | $changelogGateway | |
array | $changesets | |
string | $changesetName | |
integer | $revision |