Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ResourceConnection $resourceConnection) | |
fixPatch ($patchName) | |
revertPatchFromHistory ($patchName) | |
isApplied ($patchName) | |
Data Fields | |
const | TABLE_NAME = 'patch_list' |
const | CLASS_NAME = "patch_name" |
const | SCHEMA_PATCH_TYPE = 'schema' |
const | DATA_PATCH_TYPE = 'data' |
This is registry of all patches, that are already applied on database
Definition at line 14 of file PatchHistory.php.
__construct | ( | ResourceConnection | $resourceConnection | ) |
PatchHistory constructor.
ResourceConnection | $resourceConnection |
Definition at line 50 of file PatchHistory.php.
fixPatch | ( | $patchName | ) |
Fix patch in patch table in order to avoid reapplying of patch
string | $patchName |
Definition at line 82 of file PatchHistory.php.
isApplied | ( | $patchName | ) |
Check whether patch was applied on the system or not
string | $patchName |
Definition at line 119 of file PatchHistory.php.
revertPatchFromHistory | ( | $patchName | ) |
Revert patch from history
$patchName |
Definition at line 98 of file PatchHistory.php.
const CLASS_NAME = "patch_name" |
Name of a patch
Definition at line 24 of file PatchHistory.php.
const DATA_PATCH_TYPE = 'data' |
Patch type for data patches
Definition at line 34 of file PatchHistory.php.
const SCHEMA_PATCH_TYPE = 'schema' |
Patch type for schema patches
Definition at line 29 of file PatchHistory.php.
const TABLE_NAME = 'patch_list' |
Table name where patche names will be persisted
Definition at line 19 of file PatchHistory.php.