You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.3/extension-dev-guide/declarative-schema/data-patches.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,16 @@ The declarative schema approach removes the version from the `setup_module` tabl
15
15
16
16
The sequence of installing patches is handled through a dependency-based approach. Patches can either be independent or dependent on other patches. Independent patches can be installed in any sequence. A dependent patch requires a minimal number of patches so that it can be installed successfully.
17
17
18
-
To define a dependency in a patch, make a static reference to the patch class. The class can be in any module.
18
+
To define a dependency in a patch, add the method `public static function getDependencies()`
19
+
to the patch class and return the class names of the patches this patch depends on. The dependency can be in any module.
0 commit comments