Skip to main content

GravityKit\GravityMigrate\Migration\StateReset

Puts the site back to "no migration has happened here".

Not a tidy-up: it discards the record of a crashed import, which is the only description of data half-written into this site.

It does not touch the imported data. A form an import created stays; this clears the machinery's memory of the run, not its result.

Since: %ver%

Source: src/Migration/StateReset.php:26

Details

  • Kind: class
  • Namespace: GravityKit\GravityMigrate\Migration

Methods

MethodDescription
run()Clears it.

Method Reference

run()

public static function run( bool $delete_finished_bundles=true ): array

Clears it.

Parameters

NameTypeDefaultDescription
$delete_finished_bundlesbooltrueWhether to delete the export bundles waiting to be downloaded. True for the command, false for the abilities surface.

Returns

  • array{cleared:string} — What was cleared, for a surface to report.

Since: %ver%

Source: src/Migration/StateReset.php:39