JadeGit
DownloadsSource
0.14.0
0.14.0
  • Welcome
  • Developers
    • Getting Started
      • Repositories
      • Branches
      • Remotes
    • Making Changes
      • Adding Schemas
    • Deployments
      • Scripts
    • Platform Support
  • Troubleshooting
  • Deployment
    • Overview
    • Registry
  • Console
    • Overview
    • Install
      • Clone
      • Fetch
    • Open
      • Switch
    • Extract
      • Commit
      • Backfill
    • Registry
    • Build
  • Migration
    • Overview
Powered by GitBook
On this page
  1. Console
  2. Extract

Backfill

PreviousCommitNextRegistry

The backfill command provides the ability to capture code changes in a database, when compared to what has been tracked/deployed previously using JadeGit (stored in the ).

This command is useful for piloting JadeGit in conjunction with an existing change/deployment processes, with this command being run after an existing deployment process to capture/push what has just been deployed to the associated JadeGit repository (origin of which is stored in the registry).

The --access-token option can be used to supply a token for authorization purposes.

The --branch option is required to specify what remote branch needs to be updated.

The --commit-message option is required to specify the message to use when creating the commit for any changes detected.

The --user-name and --user-email options can be used to override the defaults otherwise used from the git config when creating the commit for any changes detected.

How It Works

When the backfill command is run, the following steps are performed:

  • Clone associated repository in a temporary folder (using the origin stored in the registry).

  • Switch to the branch specified.

  • Reset to the last known commit (stored in the registry).

  • If there's any changes:

    • Create a new commit using message specified.

    • Update registry to store new commit created.

  • Push branch back to the origin (forcefully), irrespective of new commit being created (resets remote branch to match what's stored in registry when there are no changes).

The repository clone is left in the temporary folder to act as a cache with it being updated when the backfill is run again (rather than cloning again from scratch). This can be removed if preferred, as it will be cloned again from scratch as needed.

The backfill command isn't available in the standalone variant.

Perform a deep of all schemas (excluding static/supplied schemas like CardSchema).

extract
registry