Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
f0566e68
Commit
f0566e68
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Creating class for migrating data after update
parent
9e1b62ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Feature multiclient
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Updates/MigrateData.php
+23
-1
23 additions, 1 deletion
Classes/Updates/MigrateData.php
ext_localconf.php
+4
-0
4 additions, 0 deletions
ext_localconf.php
with
27 additions
and
1 deletion
Classes/Updates/Migrate
SgMailTemplates
.php
→
Classes/Updates/Migrate
Data
.php
+
23
−
1
View file @
f0566e68
...
...
@@ -26,9 +26,31 @@ namespace SGalinski\SgMail\Updates;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use
TYPO3\CMS\Install\Updates\AbstractUpdate
;
/**
* Migrate template db entries to the correct root pages
*/
class
MigrateSgMailTemplates
{
class
MigrateData
extends
AbstractUpdate
{
/**
* Checks whether updates are required.
*
* @param string &$description The description for the update
* @return bool Whether an update is required (TRUE) or not (FALSE)
*/
public
function
checkForUpdate
(
&
$description
)
{
// TODO: Implement checkForUpdate() method.
}
/**
* Performs the accordant updates.
*
* @param array &$dbQueries Queries done in this update
* @param mixed &$customMessages Custom messages
* @return bool Whether everything went smoothly or not
*/
public
function
performUpdate
(
array
&
$dbQueries
,
&
$customMessages
)
{
// TODO: Implement performUpdate() method.
}
}
This diff is collapsed.
Click to expand it.
ext_localconf.php
+
4
−
0
View file @
f0566e68
...
...
@@ -35,6 +35,10 @@ $extPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sg_mail'
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'extbase'
][
'commandControllers'
][]
=
\SGalinski\SgMail\Command\SendMailCommandController
::
class
;
// add upgrade wizard for moving all db entries to the ele siteroot
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'ext/install'
][
'update'
][
'tx_sgmail_migrate_data'
]
=
\SGalinski\SgMail\Updates\MigrateData
::
class
;
if
(
TYPO3_MODE
===
'BE'
)
{
$tsPath
=
$extPath
.
'Configuration/TypoScript/'
;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::
addTypoScriptSetup
(
file_get_contents
(
$tsPath
.
'setup.ts'
));
...
...
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