Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
d595be04
Commit
d595be04
authored
1 week ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
(NFC) SchemaTrait - Flag as deprecated
parent
1b6bf5a9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Extension/Upgrader/SchemaTrait.php
+16
-1
16 additions, 1 deletion
CRM/Extension/Upgrader/SchemaTrait.php
with
16 additions
and
1 deletion
CRM/Extension/Upgrader/SchemaTrait.php
+
16
−
1
View file @
d595be04
...
...
@@ -10,7 +10,22 @@
*/
/**
* The SchemaTrait provides utilities for altering tables during an upgrade.
* (Semi-Deprecated) The SchemaTrait provides utilities for altering tables during an upgrade.
* It may be useful for some niche refactorings, but it is not recommended for new code/functionality.
* For new code, use `E::schema()` (aka `SchemaHelper.php`).
*
* `SchemaTrait` and `E::schema()` both provide a list of helper functions, but `E::schema()`
* is more adaptable:
*
* - `E::schema()` can be called in more ways. It can be called by full-size Upgrader classes,
* by standalone lifecycle-hooks, and/or by sysadmin scripts [cv].
* - `E::schema()` is amenable to backports. `civix upgrade` can give you a new
* version of `E::schema()` even if the extension targets older `<ver>`sions of CiviCRM.
*
* `SchemaTrait` may have some niche uses when refactoring `CRM_Extension_Upgrader_Base` (or a
* comparable class). This kind of use-case should be extremely rare.
*
* @deprecated
*/
trait
CRM_Extension_Upgrader_SchemaTrait
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment